aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-02-19 17:56:01 -0600
committerRob Landley <rob@landley.net>2016-02-19 17:56:01 -0600
commit5ec9f52a39c0f5a631cd60f12560698033eba7dc (patch)
tree398d5c739e130eadee26f42ddbd8e42eff0c859c
parent137f5c9b0937dfa204ea2580e58430c7180a79c5 (diff)
downloadtoybox-5ec9f52a39c0f5a631cd60f12560698033eba7dc.tar.gz
Add test_COMMAND for each command, update "make help" to describe TEST_HOST
and VERBOSE=fail, and fix a quote mismatch.
-rw-r--r--Makefile7
-rwxr-xr-xscripts/genconfig.sh1
2 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fe54865d..677bbb06 100644
--- a/Makefile
+++ b/Makefile
@@ -66,11 +66,14 @@ tests:
help::
@echo ' toybox - Build toybox.'
@echo ' COMMANDNAME - Build individual toybox command as a standalone binary.'
- @echo ' list - List COMMANDNAMEs (also list_working and list_pending)."
+ @echo ' list - List COMMANDNAMEs (also list_working and list_pending).'
@echo ' change - Build each command standalone under change/.'
@echo ' baseline - Create toybox_old for use by bloatcheck.'
@echo ' bloatcheck - Report size differences between old and current versions'
- @echo ' test - Run test suite against compiled commands.'
+ @echo ' test_COMMAND - Run tests for COMMAND (test_ps, test_cat, etc.)
+ @echo ' test - Run test suite against all compiled commands.'
+ @echo ' export TEST_HOST=1 to test host command, VERBOSE=1'
+ @echo ' to show diff, VERBOSE=fail to stop after first failure.'
@echo ' clean - Delete temporary files.'
@echo " distclean - Delete everything that isn't shipped."
@echo ' install_flat - Install toybox into $$PREFIX directory.'
diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh
index c0ac56d2..5b0715f4 100755
--- a/scripts/genconfig.sh
+++ b/scripts/genconfig.sh
@@ -135,6 +135,7 @@ do
[ "$NAME" == help ] && continue
[ "$NAME" == install ] && continue
echo -e "$NAME: $FILE *.[ch] lib/*.[ch]\n\tscripts/single.sh $NAME\n"
+ echo -e "test_$NAME:\n\tscripts/test.sh $NAME\n"
[ "${FILE/pending//}" != "$FILE" ] &&
PENDING="$PENDING $NAME" ||
WORKING="$WORKING $NAME"