3
0

test.tests 646 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. # Copyright 2007 by Denys Vlasenko <vda.linux@googlemail.com>
  3. # Licensed under GPL v2, see file LICENSE for details.
  4. . testing.sh
  5. # testing "test name" "options" "expected result" "file input" "stdin"
  6. # file input will be file called "input"
  7. # test can create a file "actual" instead of writing to stdout
  8. # Need to call 'busybox test', otherwise shell builtin is used
  9. testing "test ! a = b -a ! c = c: should be false" \
  10. "busybox test ! a = b -a ! c = c; echo \$?" \
  11. "1\n" \
  12. "" \
  13. "" \
  14. testing "test ! a = b -a ! c = d: should be true" \
  15. "busybox test ! a = b -a ! c = d; echo \$?" \
  16. "0\n" \
  17. "" \
  18. "" \
  19. exit $FAILCOUNT