From 84826d21de00eb56c2bbd7a4369df453a6d30ecd Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 30 Oct 2012 13:39:15 +0100 Subject: [PATCH] =?utf8?q?Aufruf=20einzelner=20Test-Scripts=20via=20Test::?= =?utf8?q?Harness=20erm=C3=B6glichen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Syntax ist trivialerweise: Um alle Tests auszuführen: ./t/test.sh Um nur bestimmte auszuführen: ./t/test.sh t/unicorns/charlie.t t/chunky/bacon.t --- t/test.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/t/test.sh b/t/test.sh index 761f9021f..f5b031a59 100755 --- a/t/test.sh +++ b/t/test.sh @@ -1 +1,9 @@ -find t | grep "\.t$" | grep -v '^t/old' | HARNESS_OPTIONS=j:c xargs perl -Imodules/override -MTest::Harness -e 'BEGIN { push @INC, "modules/fallback" } runtests(@ARGV)' +#!/bin/bash + +{ + if [[ -z $1 ]]; then + find t -type f -name '*.t' + else + echo -- "$@" + fi +} | HARNESS_OPTIONS=j:c xargs perl -Imodules/override -MTest::Harness -e 'BEGIN { push @INC, "modules/fallback" } runtests(@ARGV)' -- 2.20.1