Mercurial > hg > rhino-tests
changeset 15:6c5e550a5579 draft
Added new targets generated dynamically which can be
used to run just one selected test.
Added target "listtests" to list all tests.
author | Pavel Tisnovsky <ptisnovs@redhat.com> |
---|---|
date | Tue, 24 Jul 2012 13:30:43 +0200 |
parents | 25d5ea98c051 |
children | 60e68ea5a35f |
files | ChangeLog Makefile README |
diffstat | 3 files changed, 36 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Jul 19 12:31:34 2012 +0200 +++ b/ChangeLog Tue Jul 24 13:30:43 2012 +0200 @@ -1,3 +1,11 @@ +2012-07-24 Pavel Tisnovsky <ptisnovs@redhat.com> + + * Makefile: + Added new targets generated dynamically which can be + used to run just one selected test. + Added target "listtests" to list all tests. + * README: Mention new functionality. + 2012-07-19 Pavel Tisnovsky <ptisnovs@redhat.com> * src/org/RhinoTests/SimpleScriptContextClassTest.java:
--- a/Makefile Thu Jul 19 12:31:34 2012 +0200 +++ b/Makefile Tue Jul 24 13:30:43 2012 +0200 @@ -116,6 +116,19 @@ $(JAVA) -cp $(BUILD_DIR) org.RhinoTests.$$tst 2>&1 | tee $(LOGS_DIR)/$(DATE)/$$tst.log ; \ done +# targets for all test suites +TESTSUITES = $(shell ls -1 $(SOURCE_DIR)/$(TEST_PACKAGE) | sed -n -e 's/\([A-Za-z0-9]*\)\.java/\1/p') + +$(TESTSUITES): build + mkdir -p $(LOGS_DIR) + mkdir -p $(LOGS_DIR)/$(DATE) + $(JAVA) -cp $(BUILD_DIR) $(TEST_PACKAGE).$@ 2>&1 | tee $(LOGS_DIR)/$(DATE)/$@.log + +listtests: + for tst in $(TESTS); do \ + echo $$tst ; \ + done + report: $(ALL_CLASSES) mkdir -p $(REPORT_DIR) cp -u $(TEMPLATE_DIR)/style.css $(REPORT_DIR)/style.css
--- a/README Thu Jul 19 12:31:34 2012 +0200 +++ b/README Tue Jul 24 13:30:43 2012 +0200 @@ -36,3 +36,18 @@ make runtests > test_results + + +Running just one selected Rhino test +==================================== + +It is also possible to run just one selected Rhino test. To do this +use following command: + +make test_name + +It's possible to run following command to get a list of all tests: + +make listtests + +