aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-02-02 07:29:09 -0600
committerRob Landley <rob@landley.net>2012-02-02 07:29:09 -0600
commit9201a01813920f8cfe674dc25c2454b9f0369494 (patch)
tree4ca5c8fe8607ada90a1a6a53bc301ef3e7c10ab8
parentee64a2958b7d063ee304127d8ec12647716e00bb (diff)
downloadtoybox-9201a01813920f8cfe674dc25c2454b9f0369494.tar.gz
Test suite comment tweaks.
-rwxr-xr-xscripts/test/sort.test7
-rw-r--r--scripts/test/testing.sh2
2 files changed, 5 insertions, 4 deletions
diff --git a/scripts/test/sort.test b/scripts/test/sort.test
index 389b9fd7..cb82dc07 100755
--- a/scripts/test/sort.test
+++ b/scripts/test/sort.test
@@ -1,10 +1,9 @@
#!/bin/bash
-# SUSv3 compliant sort tests.
-# Copyright 2005 by Rob Landley <rob@landley.net>
-# Licensed under GPL v2, see file LICENSE for details.
+# SUSv4 compliant sort tests.
+# Copyright 2005, 2012 by Rob Landley <rob@landley.net>
-. testing.sh
+[ -f testing.sh ] && . testing.sh
# The basic tests. These should work even with the small config.
diff --git a/scripts/test/testing.sh b/scripts/test/testing.sh
index fd233697..0f72bce4 100644
--- a/scripts/test/testing.sh
+++ b/scripts/test/testing.sh
@@ -34,6 +34,8 @@ export SKIP=
# Helper functions
+# Check config to see if option is enabled, set SKIP if not.
+
optional()
{
option=`echo "$OPTIONFLAGS" | egrep "(^|:)$1(:|\$)"`