From: knutroy Date: Mon, 3 Sep 2007 10:12:29 +0000 (+0000) Subject: * Added Makefile.PL to test framework. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4be0d334c040e81765de73cc4b42a866399645e8;p=varnish * Added Makefile.PL to test framework. * Moved varnish-regress.pl to subdirectory "bin". * Minor POD additions. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1932 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-tools/autobuild/autobuild.sh b/varnish-tools/autobuild/autobuild.sh index 2c62d0e7..fc86ffc1 100755 --- a/varnish-tools/autobuild/autobuild.sh +++ b/varnish-tools/autobuild/autobuild.sh @@ -85,7 +85,7 @@ fi ) > build.log 2>&1 # Run regression test framework. -PATH=/tmp/"$DIR"/sbin:"$PATH" trunk/varnish-tools/regress/varnish-regress.pl > regress.html 2> regress.log +PATH=/tmp/"$DIR"/sbin:"$PATH" trunk/varnish-tools/regress/bin/varnish-regress.pl > regress.html 2> regress.log # Update status file. grep -A 4 'Total' regress.html \ diff --git a/varnish-tools/regress/MANIFEST b/varnish-tools/regress/MANIFEST new file mode 100644 index 00000000..11d36c5d --- /dev/null +++ b/varnish-tools/regress/MANIFEST @@ -0,0 +1,23 @@ +bin/varnish-regress.pl +doc/README +doc/structure.dia +lib/Varnish/Test.pm +lib/Varnish/Test/Case.pm +lib/Varnish/Test/Case/LRU.pm +lib/Varnish/Test/Case/POST.pm +lib/Varnish/Test/Case/RePurge.pm +lib/Varnish/Test/Case/Ticket056.pm +lib/Varnish/Test/Case/Ticket102.pm +lib/Varnish/Test/Case/Ticket128.pm +lib/Varnish/Test/Case/Vary.pm +lib/Varnish/Test/Client.pm +lib/Varnish/Test/Engine.pm +lib/Varnish/Test/Report.pm +lib/Varnish/Test/Report/HTML.pm +lib/Varnish/Test/Report/report.html +lib/Varnish/Test/Server.pm +lib/Varnish/Test/Varnish.pm +Makefile.PL +MANIFEST +README +TODO diff --git a/varnish-tools/regress/Makefile.PL b/varnish-tools/regress/Makefile.PL new file mode 100644 index 00000000..92d02dab --- /dev/null +++ b/varnish-tools/regress/Makefile.PL @@ -0,0 +1,6 @@ +# $Id$ + +use ExtUtils::MakeMaker; + +WriteMakefile(NAME => 'Varnish::Test', + EXE_FILES => ['bin/varnish-regress.pl']); diff --git a/varnish-tools/regress/varnish-regress.pl b/varnish-tools/regress/bin/varnish-regress.pl similarity index 91% rename from varnish-tools/regress/varnish-regress.pl rename to varnish-tools/regress/bin/varnish-regress.pl index 3d2105b6..da9ea549 100755 --- a/varnish-tools/regress/varnish-regress.pl +++ b/varnish-tools/regress/bin/varnish-regress.pl @@ -28,11 +28,19 @@ # $Id$ # -use strict; +=head1 NAME + +varnish-regress.pl - run Varnish regression tests -use FindBin; +=cut + +use strict; -use lib "$FindBin::Bin/lib"; +eval { require Varnish::Test }; +if ($@) { + use FindBin; + use lib "$FindBin::Bin/../lib"; +} use Getopt::Long; use Varnish::Test; @@ -84,3 +92,9 @@ MAIN:{ my $report = new Varnish::Test::Report::HTML; $report->run($controller->results()); } + +=head1 SEE ALSO + +L + +=cut diff --git a/varnish-tools/regress/lib/Varnish/Test.pm b/varnish-tools/regress/lib/Varnish/Test.pm index 0a936265..ae506d5b 100644 --- a/varnish-tools/regress/lib/Varnish/Test.pm +++ b/varnish-tools/regress/lib/Varnish/Test.pm @@ -173,3 +173,12 @@ sub results($) { } 1; + +=head1 SEE ALSO + +L +L +L +L + +=cut