#1908: Create new testing target: 'make test' + more
---------------------+------------------------------------------------------
Reporter: jkeenan | Owner: jkeenan
Type: todo | Status: assigned
Priority: normal | Milestone:
Component: testing | Version: 2.10.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
---------------------+------------------------------------------------------
Changes (by jkeenan):
* cc: cotto, whiteknight (added)
Comment:
The patch below demonstrates new ''make'' target `make moretests`, which
consists of the standard test suite, the examples tests, and all coding
standards tests except ''perlcritic.t''. coke++ for the hint about how to
avoid running ''perlcritic''.
I conducted this work in the ''tt1908/moretests_target'' branch, which has
been pushed to github. Here is a diff of that branch against current
master.
{{{
$ git diff master...tt1908/moretests_target |cat
diff --git a/config/gen/makefiles/root.in b/config/gen/makefiles/root.in
index 927e648..792836f 100644
--- a/config/gen/makefiles/root.in
+++ b/config/gen/makefiles/root.in
@@ -789,6 +789,7 @@ help :
@echo " buildtools_tests: Test build tool pmc2c.pl."
@echo " manifest_tests: Test code underlying
mk_manifest_and_skip.pl."
@echo " examples_tests: Test the example scripts."
+ @echo " moretests: Run standard suite, examples and most
coding standards tests."
@echo ""
@echo "Smoke Testing:"
@echo " smolder_test: Run the test suite and send report to
the smolder server"
@@ -2108,6 +2109,9 @@ run_tests :
perl_tests :
$(PERL) t/harness $(PERL_TEST_FILES)
+nocritic_codetest :
+ PARROT_TEST_NO_PERLCRITIC=1 $(PERL) t/harness $(EXTRA_TEST_ARGS)
--code-tests
+
codetest :
$(PERL) t/harness $(EXTRA_TEST_ARGS) --code-tests
@@ -2128,6 +2132,12 @@ manifest_tests :
examples_tests : test_prep
$(PERL) t/harness $(EXAMPLES_TEST_FILES)
+# moretests: Good to use before branch merges
+moretests: test_prep \
+ test \
+ examples_tests \
+ nocritic_codetest
+
# benchmark tests
benchmark_tests : test_prep
$(PERL) t/harness $(BENCHMARK_TEST_FILES)
}}}
Please review. As the use of this target may be of benefit to the GCI
students in the remaining 11 days of that project, I would like to merge
it in to trunk more rapidly than I normally would.
Thank you very much.
kid51
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1908#comment:7>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets