blob: 351d35565037beb7c9a67930a20d5ba809655ae4 [file] [log] [blame]
Denis Vlasenko1e2a7e42008-02-09 05:48:42 +00001#!/bin/sh
2
3# Copyright 2007 by Denys Vlasenko <vda.linux@googlemail.com>
4# Licensed under GPL v2, see file LICENSE for details.
5
6. testing.sh
7
8# testing "test name" "options" "expected result" "file input" "stdin"
9# file input will be file called "input"
10# test can create a file "actual" instead of writing to stdout
11
12# Need to call 'busybox test', otherwise shell builtin is used
13
14testing "test ! a = b -a ! c = c: should be false" \
15 "busybox test ! a = b -a ! c = c; echo \$?" \
16 "1\n" \
17 "" \
18 "" \
19
20testing "test ! a = b -a ! c = d: should be true" \
21 "busybox test ! a = b -a ! c = d; echo \$?" \
22 "0\n" \
23 "" \
24 "" \
25
26exit $FAILCOUNT