blob: 7a9da3e9722308375a348c8d5644fa08d4456d6a [file] [log] [blame]
Denis Vlasenko7089c312008-04-14 19:50:06 +00001#!/bin/sh
2# Copyright 2008 by Denys Vlasenko
Denys Vlasenko0ef64bd2010-08-16 20:14:46 +02003# Licensed under GPLv2, see file LICENSE in this source tree.
Denis Vlasenko7089c312008-04-14 19:50:06 +00004
Mike Frysingercaa79402009-11-04 18:41:22 -05005. ./testing.sh
Denis Vlasenko7089c312008-04-14 19:50:06 +00006
Denys Vlasenko5c10fa52011-05-21 17:43:06 +02007# testing "test name" "commands" "expected result" "file input" "stdin"
Denis Vlasenko7089c312008-04-14 19:50:06 +00008
Denys Vlasenkobfa1b2e2010-05-11 03:53:57 +02009optional DESKTOP
Denis Vlasenko7089c312008-04-14 19:50:06 +000010testing "od -b" \
Denis Vlasenko3cfebe42008-04-14 19:56:46 +000011 "od -b" \
Denis Vlasenko7089c312008-04-14 19:50:06 +000012"\
Denis Vlasenko3cfebe42008-04-14 19:56:46 +0000130000000 110 105 114 114 117
Denys Vlasenko6ae64262009-07-18 16:22:26 +0200140000005
Denis Vlasenko7089c312008-04-14 19:50:06 +000015" \
16 "" "HELLO"
Denys Vlasenkobfa1b2e2010-05-11 03:53:57 +020017SKIP=
Denis Vlasenko7089c312008-04-14 19:50:06 +000018
Denys Vlasenkob47b3ce2011-08-10 00:51:29 +020019optional DESKTOP LONG_OPTS
Denys Vlasenko5c10fa52011-05-21 17:43:06 +020020testing "od -b --traditional" \
21 "od -b --traditional" \
22"\
230000000 110 105 114 114 117
240000005
25" \
26 "" "HELLO"
27SKIP=
28
Denys Vlasenkob47b3ce2011-08-10 00:51:29 +020029optional DESKTOP LONG_OPTS
Denys Vlasenko5c10fa52011-05-21 17:43:06 +020030testing "od -b --traditional FILE" \
31 "od -b --traditional input" \
32"\
330000000 110 105 114 114 117
340000005
35" \
36 "HELLO" ""
37SKIP=
38
Denis Vlasenko7089c312008-04-14 19:50:06 +000039exit $FAILCOUNT