- introduce variable _BB_CONFIG_DEP to the new test harness.
This is used to see if given tests should be run (are available) or not.
Print "UNTESTED: descr" if the applet or feature is not available.
- add _BB_CONFIG_DEP to existing new.tests
- move old grep test to new test infrastructure and add a few more test for
grep.
diff --git a/testsuite/sort.tests b/testsuite/sort.tests
index b23cf43..04d75cf 100755
--- a/testsuite/sort.tests
+++ b/testsuite/sort.tests
@@ -7,6 +7,9 @@
if [ ${#COMMAND} -eq 0 ]; then COMMAND=sort; fi
. testing.sh
+# Depends on sort
+_BB_CONFIG_DEP=sort
+
# The basic tests. These should work even with the small busybox.
testing "sort" "input" "a\nb\nc\n" "c\na\nb\n" ""