[Cpan-forum-commit] rev 139 - in trunk: bin t/lib/CPAN/Forum
svn at pti.co.il
svn at pti.co.il
Thu Mar 24 08:28:09 IST 2005
Author: gabor
Date: 2005-03-24 08:28:08 +0200 (Thu, 24 Mar 2005)
New Revision: 139
Modified:
trunk/bin/setup.pl
trunk/t/lib/CPAN/Forum/Test.pm
Log:
enable Build and test suit to use the schema.sql file
Modified: trunk/bin/setup.pl
===================================================================
--- trunk/bin/setup.pl 2005-03-24 06:22:53 UTC (rev 138)
+++ trunk/bin/setup.pl 2005-03-24 06:28:08 UTC (rev 139)
@@ -34,7 +34,7 @@
unlink $dbfile if -e $dbfile;
mkdir $dir if not -e $dir;
CPAN::Forum::DBI->myinit($dbfile);
-CPAN::Forum::DBI->init_db("$Bin/../schema/schema.sql", $dbfile);
+CPAN::Forum::DBI->init_db("schema/schema.sql", $dbfile);
chmod 0755, $dbfile;
Modified: trunk/t/lib/CPAN/Forum/Test.pm
===================================================================
--- trunk/t/lib/CPAN/Forum/Test.pm 2005-03-24 06:22:53 UTC (rev 138)
+++ trunk/t/lib/CPAN/Forum/Test.pm 2005-03-24 06:28:08 UTC (rev 139)
@@ -20,6 +20,8 @@
sub setup_database {
chdir "blib";
copy "../t/CONFIG", ".";
+ mkdir "schema";
+ copy "../schema/schema.sql", "schema";
system "$^X bin/setup.pl";
system "$^X bin/populate.pl ../t/02packages.details.txt";
More information about the Cpan-forum-commit
mailing list