From d9d910711d354c89aac7001711081b542d79da36 Mon Sep 17 00:00:00 2001 From: Andy Nichols Date: Wed, 10 Oct 2012 15:36:19 +0200 Subject: Enable the auto test script to run on OS X Only a few test could be run on OS X because they were not stored in an application bundle. Now on OS X we check for the application bundle for a test in the runautotests.py script. Change-Id: If9e3f343f5005ecfe4a83d8282564d1309b4379e Reviewed-by: Caroline Chao Reviewed-by: Jason Barron --- tests/auto/runautotests.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/auto/runautotests.py') diff --git a/tests/auto/runautotests.py b/tests/auto/runautotests.py index fbb273a71..7aba65213 100755 --- a/tests/auto/runautotests.py +++ b/tests/auto/runautotests.py @@ -149,6 +149,11 @@ def runAllTests(test): #Set path to this if on Windows if(os.name=="nt"): exePath = test+"\\"+filename+"\\debug\\tst_"+filename+".exe" + #Set path on OS X + if(sys.platform=="darwin"): + exePath = test +"/"+filename+"/tst_"+filename + if not (os.path.exists(exePath)): + exePath = test + "/"+filename+"/tst_"+filename+".app/Contents/MacOS/tst_"+filename #Set path to this if on Unix else: exePath = test +"/"+filename+"/tst_"+filename -- cgit v1.2.3