Commit 8f6d9166 authored by sikeda's avatar sikeda
Browse files

[dev] Added test harness for unit tests under t/. Since olver versions of...

[dev] Added test harness for unit tests under t/.  Since olver versions of automake won't support such as LOG_DRIVER, Test::Harness will be used instead.


git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-6.2-branch@10310 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent 569b5cd0
......@@ -23,13 +23,21 @@
SUBDIRS = src wwsympa soap web_tt2 mail_tt2 doc po po-wwsympa
check_SCRIPTS = t/LockedFile.t
EXTRA_DIST = important_changes.pl \
sympa.spec.in \
sympa.spec \
README.charset \
etc_README
etc_README \
$(check_SCRIPTS)
CLEANFILES = previous_sympa_version
check-local:
@PERL5LIB=src/lib:wwsympa:soap; export PERL5LIB; \
$(PERL) -Mstrict -Mwarnings -MTest::Harness -e 'runtests(@ARGV)' \
$(check_SCRIPTS)
install-data-hook: installdir installconfig nextstep importantchanges
installdir:
......
......@@ -61,6 +61,9 @@ make DESTDIR=%{buildroot}
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
%check
make check
%clean
rm -rf %{buildroot}
......
#-*- perl -*-
use strict;
use FindBin qw($Bin);
use lib "$Bin/../src/lib";
use File::Temp;
use Test::More;
......@@ -78,7 +73,6 @@ exit \$lock + 0;
EOF
my @command = (
$^X,
"-I", "$Bin/../src/lib",
"-MSympa::LockedFile",
"-e", $code
);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment