Update of /cvsroot/lxr/lxr-tools
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20620
Modified Files:
makerelease.pl
Log Message:
Update to reflect new location of tests
Index: makerelease.pl
===================================================================
RCS file: /cvsroot/lxr/lxr-tools/makerelease.pl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- makerelease.pl 25 Mar 2009 16:49:49 -0000 1.2
+++ makerelease.pl 22 Apr 2009 15:38:35 -0000 1.3
@@ -51,6 +51,7 @@
--noex Do not do any action that alters SF state (useful for
seeing what will happen)
--tag Use the supplied string as the release tag name
+ --nottext Do not run the tests from lxr-tools
END_HELP
@@ -180,11 +181,15 @@
# Run the tests and make sure they pass
sub run_tests {
print "Running tests...";
- chdir("tests");
+ if (! -d "../lxr-tools/tests") {
+ die "Can't find the lxr-tools directory with tests in ../lxr-tools";
+ }
+
+ chdir("../lxr-tools/tests");
my ($fileh, $rtn);
- $rtn = open($fileh, "-|", "./TestRunner.pl AllTests.pm 2>&1");
+ $rtn = open($fileh, "-|", "perl ./TestRunner.pl AllTests.pm 2>&1");
die "Failed to start tests" unless $rtn;
while (<$fileh>) {
if (/^Test was not successful\.$/) {
|