diff options
| author | Jan Sucan <jan@jansucan.com> | 2024-12-28 11:52:13 +0100 |
|---|---|---|
| committer | Ján Sučan <jan@jansucan.com> | 2024-12-31 08:26:48 +0100 |
| commit | e34296bbaa3b80a9c5c1bf6dba3ada28016f03de (patch) | |
| tree | 88c4302c93ee9c0ef8946a0fc305774c4d7d22be /tests/300-incorrect_reference_file.sh | |
| parent | 9280ff2c747a5a59f0a6e0cc6335b24de62cacc9 (diff) | |
Use options instead of positional arguments for file paths
Diffstat (limited to 'tests/300-incorrect_reference_file.sh')
| -rw-r--r-- | tests/300-incorrect_reference_file.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/300-incorrect_reference_file.sh b/tests/300-incorrect_reference_file.sh index b15ee12..c250541 100644 --- a/tests/300-incorrect_reference_file.sh +++ b/tests/300-incorrect_reference_file.sh @@ -6,11 +6,11 @@ PROGRAM_EXEC="$1" rm -f diff out touch diff out -assert "" "diff file is empty" 1 $PROGRAM_EXEC restore diff out +assert "" "diff file is empty" 1 $PROGRAM_EXEC restore -d diff -o out dd if=/dev/zero of=diff bs=513 count=1 1>/dev/null 2>&1 assert "" "diff file has size that cannot contain valid diff data" \ - 1 $PROGRAM_EXEC restore -s 512 diff out + 1 $PROGRAM_EXEC restore -S 512 -d diff -o out rm -f diff out dd if=/dev/zero of=out bs=512 count=2 1>/dev/null 2>&1 @@ -21,7 +21,7 @@ printf '\x02' | dd of=diff bs=1 count=1 seek=0 conv=notrunc 1>/dev/null 2>&1 # The second offset will be 1 printf '\x01' | dd of=diff bs=1 count=1 seek=520 conv=notrunc 1>/dev/null 2>&1 assert "" "a sector offset points behind the previous offset" \ - 1 $PROGRAM_EXEC restore -s 512 diff out + 1 $PROGRAM_EXEC restore -S 512 -d diff -o out rm -f diff out dd if=/dev/zero of=out bs=512 count=1 1>/dev/null 2>&1 @@ -30,7 +30,7 @@ dd if=/dev/zero of=diff bs=$(( 512 + 8 )) count=2 1>/dev/null 2>&1 # The first offset will be 1 printf '\x01' | dd of=diff bs=1 count=1 seek=0 conv=notrunc 1>/dev/null 2>&1 assert "" "a sector offset points past the end of the output file" \ - 1 $PROGRAM_EXEC restore -s 512 diff out + 1 $PROGRAM_EXEC restore -S 512 -d diff -o out rm -f diff out |
