Lines Matching full:bin
1 #!/usr/bin/env bash
7 # $2 - path to this example's built binary file (parttool.bin), by default $PWD/build/parttool.bin
20 BINARY=build/parttool.bin
37 $PARTTOOL_PY read_partition --partition-type=app --partition-subtype=factory --output=app.bin
38 assert_file_same app.bin $BINARY "Device app binary does not match built binary"
46 head -c $(($size)) /dev/urandom > write.bin
50 $PARTTOOL_PY write_partition --partition-name=storage --input write.bin
54 $PARTTOOL_PY read_partition --partition-name=storage --output read.bin
56 assert_file_same write.bin read.bin "Read contents of storage partition does not match source file …
64 $PARTTOOL_PY read_partition --partition-name=storage --output read.bin
67 $GEN_EMPTY_PARTITION_PY $(($size)) blank.bin
69 assert_file_same read.bin blank.bin "Contents of storage partition not fully erased"
73 rm -rf app.bin read.bin blank.bin write.bin