| | #!/bin/sh |
| | |
| |
|
| | |
| |
|
| | |
| | |
| | |
| | |
| |
|
| | |
| | |
| | |
| | |
| |
|
| | |
| | |
| |
|
| | . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src |
| | print_ver_ od |
| |
|
| | echo abcdefg > in || framework_failure_ |
| | (od -An -N3 -c; od -An -N3 -c) < in > out |
| | cat <<EOF > exp || framework_failure_ |
| | a b c |
| | d e f |
| | EOF |
| | compare exp out || fail=1 |
| |
|
| | |
| | |
| | printf '%100s' | od -N100 -S1 > out || fail=1 |
| | printf '%07o %100s\n' 0 '' > exp || framework_failure_ |
| | compare exp out || fail=1 |
| |
|
| | |
| | printf '%100s' | od -N10 -S10 > out || fail=1 |
| | printf '%07o %10s\n' 0 '' > exp || framework_failure_ |
| | compare exp out || fail=1 |
| |
|
| | |
| | printf '%100s' | od -N10 -S1 > out || fail=1 |
| | printf '%07o %10s\n' 0 '' > exp || framework_failure_ |
| | compare exp out || fail=1 |
| |
|
| | |
| | printf '%10s\000' | od -N11 -S11 > out || fail=1 |
| | compare /dev/null out || fail=1 |
| | printf '%10s\000' | od -S11 > out || fail=1 |
| | compare /dev/null out || fail=1 |
| | printf '%10s' | od -S10 > out || fail=1 |
| | compare /dev/null out || fail=1 |
| | printf '\001%10s\000%10s\000' | od -S10 > out || fail=1 |
| | printf '%07o %10s\n' 1 '' 12 '' > exp || framework_failure_ |
| | compare exp out || fail=1 |
| |
|
| | Exit $fail |
| |
|