Browse Source

switch to LigtyTest module

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@394 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.3.14 lighttpd-1.3.14
Jan Kneschke 17 years ago
parent
commit
877161c067
  1. 5
      tests/LightyTest.pm
  2. 12
      tests/Makefile.am
  3. 6
      tests/core-request.t
  4. 7
      tests/core-response.t
  5. 7
      tests/core.t
  6. 6
      tests/mod-access.t
  7. 6
      tests/mod-auth.t
  8. 6
      tests/mod-cgi.t
  9. 6
      tests/mod-compress.t
  10. 6
      tests/mod-fastcgi.t
  11. 6
      tests/mod-proxy.t
  12. 6
      tests/mod-redirect.t
  13. 6
      tests/mod-rewrite.t
  14. 6
      tests/mod-userdir.t
  15. 6
      tests/request.t

5
tests/LightyTest.pm

@ -71,8 +71,11 @@ sub start_proc {
unlink($self->{LIGHTTPD_PIDFILE});
system($self->{LIGHTTPD_PATH}." -f /tmp/cfg.file");
# system("valgrind --tool=memcheck --show-reachable=yes --leak-check=yes --logfile=foo ".$lighttpd_path." -D -f /tmp/cfg.file &");
#
select(undef, undef, undef, 0.1);
sleep(1);
# sleep(1);
unlink("/tmp/cfg.file");

12
tests/Makefile.am

@ -12,9 +12,9 @@ fcgi_responder_LDADD=-lfcgi
endif
TESTS=\
prepare.sh \
run-tests.pl \
cleanup.sh
prepare.sh \
run-tests.pl \
cleanup.sh
CONFS=fastcgi-10.conf \
fastcgi-auth.conf \
@ -33,15 +33,17 @@ CONFS=fastcgi-10.conf \
mod-redirect.t \
mod-userdir.t \
mod-rewrite.t \
request.t
request.t \
LightyTest.pm
TESTS_ENVIRONMENT=$(srcdir)/wrapper.sh $(srcdir) $(top_builddir)
TESTS_ENVIRONMENT=$(srcdir)/wrapper.sh $(srcdir) $(top_builddir)
EXTRA_DIST=wrapper.sh lighttpd.conf \
lighttpd.user \
$(CONFS) \
$(TESTS)
SUBDIRS=docroot
leak-check:

6
tests/core-request.t

@ -1,4 +1,10 @@
#! /usr/bin/perl -w
BEGIN {
# add current source dir to the include-path
# we need this for make distcheck
(my $srcdir = $0) =~ s#/[^/]+$#/#;
unshift @INC, $srcdir;
}
use strict;
use IO::Socket;

7
tests/core-response.t

@ -1,5 +1,12 @@
#! /usr/bin/perl -w
BEGIN {
# add current source dir to the include-path
# we need this for make distcheck
(my $srcdir = $0) =~ s#/[^/]+$#/#;
unshift @INC, $srcdir;
}
use strict;
use IO::Socket;
use Test::More tests => 12;

7
tests/core.t

@ -1,5 +1,12 @@
#! /usr/bin/perl -w
BEGIN {
# add current source dir to the include-path
# we need this for make distcheck
(my $srcdir = $0) =~ s#/[^/]+$#/#;
unshift @INC, $srcdir;
}
use strict;
use IO::Socket;
use Test::More tests => 15;

6
tests/mod-access.t

@ -1,4 +1,10 @@
#! /usr/bin/perl -w
BEGIN {
# add current source dir to the include-path
# we need this for make distcheck
(my $srcdir = $0) =~ s#/[^/]+$#/#;
unshift @INC, $srcdir;
}
use strict;
use IO::Socket;

6
tests/mod-auth.t

@ -1,4 +1,10 @@
#! /usr/bin/perl -w
BEGIN {
# add current source dir to the include-path
# we need this for make distcheck
(my $srcdir = $0) =~ s#/[^/]+$#/#;
unshift @INC, $srcdir;
}
use strict;
use IO::Socket;

6
tests/mod-cgi.t

@ -1,4 +1,10 @@
#! /usr/bin/perl -w
BEGIN {
# add current source dir to the include-path
# we need this for make distcheck
(my $srcdir = $0) =~ s#/[^/]+$#/#;
unshift @INC, $srcdir;
}
use strict;
use IO::Socket;

6
tests/mod-compress.t

@ -1,4 +1,10 @@
#! /usr/bin/perl -w
BEGIN {
# add current source dir to the include-path
# we need this for make distcheck
(my $srcdir = $0) =~ s#/[^/]+$#/#;
unshift @INC, $srcdir;
}
use strict;
use IO::Socket;

6
tests/mod-fastcgi.t

@ -1,4 +1,10 @@
#! /usr/bin/perl -w
BEGIN {
# add current source dir to the include-path
# we need this for make distcheck
(my $srcdir = $0) =~ s#/[^/]+$#/#;
unshift @INC, $srcdir;
}
use strict;
use Test::More tests => 40;

6
tests/mod-proxy.t

@ -1,4 +1,10 @@
#! /usr/bin/perl -w
BEGIN {
# add current source dir to the include-path
# we need this for make distcheck
(my $srcdir = $0) =~ s#/[^/]+$#/#;
unshift @INC, $srcdir;
}
use strict;
use IO::Socket;

6
tests/mod-redirect.t

@ -1,4 +1,10 @@
#! /usr/bin/perl -w
BEGIN {
# add current source dir to the include-path
# we need this for make distcheck
(my $srcdir = $0) =~ s#/[^/]+$#/#;
unshift @INC, $srcdir;
}
use strict;
use IO::Socket;

6
tests/mod-rewrite.t

@ -1,4 +1,10 @@
#! /usr/bin/perl -w
BEGIN {
# add current source dir to the include-path
# we need this for make distcheck
(my $srcdir = $0) =~ s#/[^/]+$#/#;
unshift @INC, $srcdir;
}
use strict;
use IO::Socket;

6
tests/mod-userdir.t

@ -1,4 +1,10 @@
#! /usr/bin/perl -w
BEGIN {
# add current source dir to the include-path
# we need this for make distcheck
(my $srcdir = $0) =~ s#/[^/]+$#/#;
unshift @INC, $srcdir;
}
use strict;
use IO::Socket;

6
tests/request.t

@ -1,4 +1,10 @@
#! /usr/bin/perl -w
BEGIN {
# add current source dir to the include-path
# we need this for make distcheck
(my $srcdir = $0) =~ s#/[^/]+$#/#;
unshift @INC, $srcdir;
}
use strict;
use IO::Socket;

Loading…
Cancel
Save