We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c54b643 commit c571f5dCopy full SHA for c571f5d
test/FATSTAT/test.sh
@@ -0,0 +1,16 @@
1
+#!/usr/bin/env sh
2
+
3
+INTERP=${INTERP:-lua}
4
+TEST="FATSTAT"
5
+SCRIPT="FATSTAT.LUA"
6
7
+mformat -i test.ima -C -f 160
8
+CHASH=$(sha256sum test.ima)
9
+# Insert junk data to wipe
10
+dd if=/dev/random of=test.ima bs=512 count=2 seek=300 status=none
11
+RHASH=$(sha256sum test.ima)
12
+if [ "$CHASH" = "$RHASH" ]; then die; fi
13
+$INTERP $SCRIPT -z test.ima
14
+ZHASH=$(sha256sum test.ima)
15
+rm test.ima
16
+if [ "$CHASH" = "$ZHASH" ]; then echo "$TEST: PASS"; else echo "$TEST: FAIL"; fi
0 commit comments