File: mysmoke

package info (click to toggle)
libapache2-mod-perl2 2.0.13-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,016 kB
  • sloc: perl: 97,771; ansic: 14,493; makefile: 51; sh: 18
file content (25 lines) | stat: -rw-r--r-- 492 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
set -e
T=$(mktemp -d)
cp -a t/ $T
cp debian/apache2.conf $T

mkdir $T/t/logs

# some tests use the top level Makefile as data, but we don't have it
# so we cheat a bit...
cp LICENSE $T/Makefile

cat > $T/t/TEST <<EOF
#!/usr/bin/perl
use strict;
use warnings FATAL => 'all';
use lib "$T/t/lib";
use ModPerl::TestRun ();
ModPerl::TestRun->new->run(@ARGV);
EOF
chmod +x $T/t/TEST

$T/t/TEST -httpd_conf $T/apache2.conf -apxs /usr/bin/apxs -servername 127.0.0.1 -port select

rm -rf $T