Denis Vlasenko | 7089c31 | 2008-04-14 19:50:06 +0000 | [diff] [blame] | 1 | #!/bin/sh |
2 | # Copyright 2008 by Denys Vlasenko | ||||
Denys Vlasenko | 0ef64bd | 2010-08-16 20:14:46 +0200 | [diff] [blame] | 3 | # Licensed under GPLv2, see file LICENSE in this source tree. |
Denis Vlasenko | 7089c31 | 2008-04-14 19:50:06 +0000 | [diff] [blame] | 4 | |
Mike Frysinger | caa7940 | 2009-11-04 18:41:22 -0500 | [diff] [blame] | 5 | . ./testing.sh |
Denis Vlasenko | 7089c31 | 2008-04-14 19:50:06 +0000 | [diff] [blame] | 6 | |
Denys Vlasenko | 5c10fa5 | 2011-05-21 17:43:06 +0200 | [diff] [blame] | 7 | # testing "test name" "commands" "expected result" "file input" "stdin" |
Denis Vlasenko | 7089c31 | 2008-04-14 19:50:06 +0000 | [diff] [blame] | 8 | |
Denys Vlasenko | bfa1b2e | 2010-05-11 03:53:57 +0200 | [diff] [blame] | 9 | optional DESKTOP |
Denis Vlasenko | 7089c31 | 2008-04-14 19:50:06 +0000 | [diff] [blame] | 10 | testing "od -b" \ |
Denis Vlasenko | 3cfebe4 | 2008-04-14 19:56:46 +0000 | [diff] [blame] | 11 | "od -b" \ |
Denis Vlasenko | 7089c31 | 2008-04-14 19:50:06 +0000 | [diff] [blame] | 12 | "\ |
Denis Vlasenko | 3cfebe4 | 2008-04-14 19:56:46 +0000 | [diff] [blame] | 13 | 0000000 110 105 114 114 117 |
Denys Vlasenko | 6ae6426 | 2009-07-18 16:22:26 +0200 | [diff] [blame] | 14 | 0000005 |
Denis Vlasenko | 7089c31 | 2008-04-14 19:50:06 +0000 | [diff] [blame] | 15 | " \ |
16 | "" "HELLO" | ||||
Denys Vlasenko | bfa1b2e | 2010-05-11 03:53:57 +0200 | [diff] [blame] | 17 | SKIP= |
Denis Vlasenko | 7089c31 | 2008-04-14 19:50:06 +0000 | [diff] [blame] | 18 | |
Ron Yorston | a165603 | 2017-07-19 10:43:10 +0100 | [diff] [blame] | 19 | optional DESKTOP |
20 | testing "od -f" \ | ||||
21 | "od -f" \ | ||||
22 | "\ | ||||
23 | 0000000 0.0000000e+00 0.0000000e+00 | ||||
24 | 0000010 | ||||
25 | " \ | ||||
26 | "" "\x00\x00\x00\x00\x00\x00\x00\x00" | ||||
27 | SKIP= | ||||
28 | |||||
Denys Vlasenko | b47b3ce | 2011-08-10 00:51:29 +0200 | [diff] [blame] | 29 | optional DESKTOP LONG_OPTS |
Denys Vlasenko | 5c10fa5 | 2011-05-21 17:43:06 +0200 | [diff] [blame] | 30 | testing "od -b --traditional" \ |
31 | "od -b --traditional" \ | ||||
32 | "\ | ||||
33 | 0000000 110 105 114 114 117 | ||||
34 | 0000005 | ||||
35 | " \ | ||||
36 | "" "HELLO" | ||||
37 | SKIP= | ||||
38 | |||||
Denys Vlasenko | b47b3ce | 2011-08-10 00:51:29 +0200 | [diff] [blame] | 39 | optional DESKTOP LONG_OPTS |
Denys Vlasenko | 5c10fa5 | 2011-05-21 17:43:06 +0200 | [diff] [blame] | 40 | testing "od -b --traditional FILE" \ |
41 | "od -b --traditional input" \ | ||||
42 | "\ | ||||
43 | 0000000 110 105 114 114 117 | ||||
44 | 0000005 | ||||
45 | " \ | ||||
46 | "HELLO" "" | ||||
47 | SKIP= | ||||
48 | |||||
Denis Vlasenko | 7089c31 | 2008-04-14 19:50:06 +0000 | [diff] [blame] | 49 | exit $FAILCOUNT |