ash: builtin: Mark more regular built-ins
[oweals/busybox.git] / testsuite / od.tests
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
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
29 optional DESKTOP LONG_OPTS
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
39 optional DESKTOP LONG_OPTS
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
49 exit $FAILCOUNT