[Rt-commit] [rtir] 01/01: Provide a parallel-test target

Kevin Falcone falcone at bestpractical.com
Tue Jan 28 16:59:45 EST 2014


This is an automated email from the git hooks/post-receive script.

falcone pushed a commit to branch 3.0-trunk
in repository rtir.

commit 9b49c1b6526ec5d8d45d1a88fd53d579aad2791b
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Tue Jan 28 16:54:33 2014 -0500

    Provide a parallel-test target
    
    This clones RT's incant (minus the configuration for the hardcoded 5).
    I admit that this is largely so my shell aliases that work on RT also
    work on RTIR so that I can run the test suite quickly.
---
 Makefile.PL | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/Makefile.PL b/Makefile.PL
index 11bf791..25dd71f 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -52,7 +52,7 @@ substitute( {
 
 tests("t/*.t t/*/*.t");
 
-postamble('
+postamble(<<POSTAMBLE
 snapshot: dist sign-dist dist-shasums
 
 sign-dist:
@@ -60,6 +60,12 @@ sign-dist:
 
 dist-shasums:
 	sha1sum $(DISTVNAME).tar.gz*
-');
+
+parallel-test: test-parallel
+
+test-parallel:
+	RT_TEST_PARALLEL=1 \$(FULLPERLRUN) "-MApp::Prove" -e 'my \$\$p = App::Prove->new(); \$\$p->process_args("-wlrj5","--state=slow,save", "t"); exit( \$\$p->run() ? 0 : 1 )'
+POSTAMBLE
+);
 
 WriteAll();

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list