diff options
author | Richard Kreuter <richard@10gen.com> | 2010-07-08 14:31:27 -0400 |
---|---|---|
committer | Richard Kreuter <richard@10gen.com> | 2010-07-08 14:31:27 -0400 |
commit | d133a9d6a381856f5f93c6f7d83f6d3794d5f1db (patch) | |
tree | c77b1f9834592607b7d10010d64483d0fe445580 /buildscripts | |
parent | 3e2f49e0048f234540fd18bc2301dba7247f2b5f (diff) | |
download | mongo-d133a9d6a381856f5f93c6f7d83f6d3794d5f1db.tar.gz |
Fix smoke.py on Windows.
Diffstat (limited to 'buildscripts')
-rwxr-xr-x | buildscripts/smoke.py | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/buildscripts/smoke.py b/buildscripts/smoke.py index f8598f36872..de1c2706c40 100755 --- a/buildscripts/smoke.py +++ b/buildscripts/smoke.py @@ -316,9 +316,17 @@ def expandSuites(suites): expandSuites(['smoke', 'smokePerf', 'smokeClient', 'smokeJs', 'smokeJsPerf', 'smokeJsSlow', 'smokeParallel', 'smokeClone', 'smokeParallel', 'smokeRepl', 'smokeAuth', 'smokeSharding', 'smokeTool']) break if suite == 'smoke': - (globstr, usedb) = ('test', False) + if os.sys.platform == "windows": + program = 'test.exe' + else: + program = 'test' + (globstr, usedb) = (program, False) elif suite == 'smokePerf': - (globstr, usedb) = ('perftest', False) + if os.sys.platform == "windows": + program = 'perftest.exe' + else: + program = 'perftest' + (globstr, usedb) = (program, False) elif suite == 'smokeJs': # FIXME: _runner.js seems equivalent to "[!_]*.js". #(globstr, usedb) = ('_runner.js', True) @@ -345,9 +353,16 @@ def expandSuites(suites): (globstr, usedb) = ('tool/*.js', False) # well, the above almost works for everything... elif suite == 'smokeClient': - tests += [(os.path.join(mongoRepo, path), False) for path in ["firstExample", "secondExample", "whereExample", "authTest", "clientTest", "httpClientTest"]] + paths = ["firstExample", "secondExample", "whereExample", "authTest", "clientTest", "httpClientTest"] + if os.sys.platform == "windows": + paths = [path+'.exe' for path in paths] + tests += [(os.path.join(mongoRepo, path), False) for path in paths] elif suite == 'mongosTest': - tests += [(os.path.join(mongoRepo, 'mongos'), False)] + if os.sys.platform == "windows": + program = 'mongos.exe' + else: + program = 'mongos' + tests += [(os.path.join(mongoRepo, program), False)] else: raise Exception('unknown test suite %s' % suite) |