]> err.no Git - varnish/commitdiff
* Added Makefile.PL to test framework.
authorknutroy <knutroy@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 3 Sep 2007 10:12:29 +0000 (10:12 +0000)
committerknutroy <knutroy@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 3 Sep 2007 10:12:29 +0000 (10:12 +0000)
* 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

varnish-tools/autobuild/autobuild.sh
varnish-tools/regress/MANIFEST [new file with mode: 0644]
varnish-tools/regress/Makefile.PL [new file with mode: 0644]
varnish-tools/regress/bin/varnish-regress.pl [moved from varnish-tools/regress/varnish-regress.pl with 91% similarity]
varnish-tools/regress/lib/Varnish/Test.pm

index 2c62d0e740956a5bbd4ffbaf4e7a59168898ae57..fc86ffc15dd1624f9ef027be610415a6531689f9 100755 (executable)
@@ -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 '<th class="name">Total</th>' regress.html \
diff --git a/varnish-tools/regress/MANIFEST b/varnish-tools/regress/MANIFEST
new file mode 100644 (file)
index 0000000..11d36c5
--- /dev/null
@@ -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 (file)
index 0000000..92d02da
--- /dev/null
@@ -0,0 +1,6 @@
+# $Id$
+
+use ExtUtils::MakeMaker;
+
+WriteMakefile(NAME => 'Varnish::Test',
+             EXE_FILES => ['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 3d2105b6bfd80455004206097d37022848be2fa8..da9ea5497e11e2af1140fb0892b469fd121c9853 100755 (executable)
 # $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<Varnish::Test>
+
+=cut
index 0a936265a25ac56698b2541d3d2871da0f9b5190..ae506d5bb0488565b8c43fc783675a4fe0867e02 100644 (file)
@@ -173,3 +173,12 @@ sub results($) {
 }
 
 1;
+
+=head1 SEE ALSO
+
+L<Varnish::Test::Engine>
+L<Varnish::Test::Varnish>
+L<Varnish::Test::Server>
+L<Varnish::Test::Case>
+
+=cut