7 # should fail if no arguments given.
13 test `wc -c <tmp.1` -eq 0
14 test `wc -l <tmp.2` -eq 1
15 grep 'no risc os executable specified' tmp
.2 >/dev
/null
17 # check version number is correct and that long arguments are working.
18 for a
in -V --version; do
24 test `wc -l <tmp.1` -eq 1
25 test `wc -c <tmp.2` -eq 0
26 grep "version $VERSION"\$ tmp
.1 >/dev
/null
35 test `wc -l <tmp.1` -gt 5
36 test `wc -c <tmp.2` -eq 0
37 sed 1q tmp
.1 |
grep 'usage: riscose ' >/dev
/null
38 awk '/^ -/ {i++} END {i < 5}' tmp
.1
47 test `wc -c <tmp.1` -eq 0
48 test `wc -l <tmp.2` -eq 1
49 grep '^riscose: error: file "tmp" not found$' tmp
.2 >/dev
/null
51 # binary can't be an empty file.
58 test `wc -c <tmp.1` -eq 0
59 test `wc -l <tmp.2` -eq 1
60 grep '^riscose: error: file "tmp" is empty$' tmp
.2 >/dev
/null