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 9optional DESKTOP 10testing "od -b" \ 11 "od -b" \ 12"\ 130000000 110 105 114 114 117 140000005 15" \ 16 "" "HELLO" 17SKIP= 18 19optional DESKTOP 20testing "od -f" \ 21 "od -f" \ 22"\ 230000000 0.0000000e+00 0.0000000e+00 240000010 25" \ 26 "" "\x00\x00\x00\x00\x00\x00\x00\x00" 27SKIP= 28 29optional DESKTOP LONG_OPTS 30testing "od -b --traditional" \ 31 "od -b --traditional" \ 32"\ 330000000 110 105 114 114 117 340000005 35" \ 36 "" "HELLO" 37SKIP= 38 39optional DESKTOP LONG_OPTS 40testing "od -b --traditional FILE" \ 41 "od -b --traditional input" \ 42"\ 430000000 110 105 114 114 117 440000005 45" \ 46 "HELLO" "" 47SKIP= 48 49exit $FAILCOUNT 50