summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Albertson <ramereth@gentoo.org>2010-03-07 23:39:41 +0000
committerLance Albertson <ramereth@gentoo.org>2010-03-07 23:39:41 +0000
commite4df8cc577fde1b5aa2dbf276dfdcfae6041fe35 (patch)
tree65842f241582ba6e84c305b4db11afe31e207a7b /dev-db/mongodb/files/mongodb-1.2-modify-testing.patch
parentcorrected problem with prefix stuff (diff)
downloadhistorical-e4df8cc577fde1b5aa2dbf276dfdcfae6041fe35.tar.gz
historical-e4df8cc577fde1b5aa2dbf276dfdcfae6041fe35.tar.bz2
historical-e4df8cc577fde1b5aa2dbf276dfdcfae6041fe35.zip
Import ebuild from the sunrise overlay and apply various fixes. Resolves #273259
Package-Manager: portage-2.1.7.16/cvs/Linux x86_64
Diffstat (limited to 'dev-db/mongodb/files/mongodb-1.2-modify-testing.patch')
-rw-r--r--dev-db/mongodb/files/mongodb-1.2-modify-testing.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-db/mongodb/files/mongodb-1.2-modify-testing.patch b/dev-db/mongodb/files/mongodb-1.2-modify-testing.patch
new file mode 100644
index 000000000000..31bda47c0ce7
--- /dev/null
+++ b/dev-db/mongodb/files/mongodb-1.2-modify-testing.patch
@@ -0,0 +1,44 @@
+--- SConstruct.old 2009-10-17 15:26:14.000000000 +0200
++++ SConstruct 2009-10-17 15:29:52.000000000 +0200
+@@ -995,15 +995,17 @@
+ Exit( 1 )
+
+ def ensureTestDirs():
+- ensureDir( "/tmp/unittest/" )
+- ensureDir( "/data/" )
+- ensureDir( "/data/db/" )
++ ensureDir( "testdir/" )
++ ensureDir( "testdir/tmp/" )
++ ensureDir( "testdir/tmp/unittest/" )
++ ensureDir( "testdir/data/" )
++ ensureDir( "testdir/data/db/" )
+
+ def testSetup( env , target , source ):
+ ensureTestDirs()
+
+ if len( COMMAND_LINE_TARGETS ) == 1 and str( COMMAND_LINE_TARGETS[0] ) == "test":
+- ensureDir( "/tmp/unittest/" );
++ ensureDir( "testdir/tmp/unittest/" );
+
+ addSmoketest( "smoke", [ add_exe( "test" ) ] , [ test[ 0 ].abspath ] )
+ addSmoketest( "smokePerf", [ "perftest" ] , [ perftest[ 0 ].abspath ] )
+@@ -1072,7 +1074,7 @@
+ mongodForTestsPort = "40000"
+ import os
+ ensureTestDirs()
+- dirName = "/data/db/sconsTests/"
++ dirName = "testdir/data/db/sconsTests/"
+ ensureDir( dirName )
+ from subprocess import Popen
+ mongodForTests = Popen( [ mongod[0].abspath, "--port", mongodForTestsPort, "--dbpath", dirName ] )
+
+--- dbtests/dbtests.cpp 2009-10-17 16:40:46.000000000 +0200
++++ dbtests/dbtests.cpp.new 2009-10-17 16:40:54.000000000 +0200
+@@ -22,6 +22,6 @@
+ #include "dbtests.h"
+
+ int main( int argc, char** argv ) {
+- return Suite::run(argc, argv, "/tmp/unittest");
++ return Suite::run(argc, argv, "testdir/tmp/unittest");
+ }
+