blob: 7a9da3e9722308375a348c8d5644fa08d4456d6a
1 | #!/bin/sh |
2 | # Copyright 2008 by Denys Vlasenko |
3 | # Licensed under GPLv2, see file LICENSE in this source tree. |
4 | |
5 | . ./testing.sh |
6 | |
7 | # testing "test name" "commands" "expected result" "file input" "stdin" |
8 | |
9 | optional DESKTOP |
10 | testing "od -b" \ |
11 | "od -b" \ |
12 | "\ |
13 | 0000000 110 105 114 114 117 |
14 | 0000005 |
15 | " \ |
16 | "" "HELLO" |
17 | SKIP= |
18 | |
19 | optional DESKTOP LONG_OPTS |
20 | testing "od -b --traditional" \ |
21 | "od -b --traditional" \ |
22 | "\ |
23 | 0000000 110 105 114 114 117 |
24 | 0000005 |
25 | " \ |
26 | "" "HELLO" |
27 | SKIP= |
28 | |
29 | optional DESKTOP LONG_OPTS |
30 | testing "od -b --traditional FILE" \ |
31 | "od -b --traditional input" \ |
32 | "\ |
33 | 0000000 110 105 114 114 117 |
34 | 0000005 |
35 | " \ |
36 | "HELLO" "" |
37 | SKIP= |
38 | |
39 | exit $FAILCOUNT |
40 |