summaryrefslogtreecommitdiff
path: root/testsuite/test.tests
blob: 351d35565037beb7c9a67930a20d5ba809655ae4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

# Copyright 2007 by Denys Vlasenko <vda.linux@googlemail.com>
# Licensed under GPL v2, see file LICENSE for details.

. testing.sh

# testing "test name" "options" "expected result" "file input" "stdin"
#   file input will be file called "input"
#   test can create a file "actual" instead of writing to stdout

# Need to call 'busybox test', otherwise shell builtin is used

testing "test ! a = b -a ! c = c: should be false" \
	"busybox test ! a = b -a ! c = c; echo \$?" \
	"1\n" \
	"" \
	"" \

testing "test ! a = b -a ! c = d: should be true" \
	"busybox test ! a = b -a ! c = d; echo \$?" \
	"0\n" \
	"" \
	"" \

exit $FAILCOUNT