diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/automated/configure.py | 10 | ||||
-rw-r--r-- | tests/automated/prepare.xml.template | 14 |
2 files changed, 14 insertions, 10 deletions
diff --git a/tests/automated/configure.py b/tests/automated/configure.py index 377fed7e..d46873ea 100755 --- a/tests/automated/configure.py +++ b/tests/automated/configure.py @@ -108,8 +108,8 @@ class S60SDK: if sdk1 != sdk2: sys.stderr.write("Error: default SDK in device doesn't match EPOCROOT\n") - sys.stderr.write("Default device SDK = " + sdk2 + "\n") - sys.stderr.write("EPOCROOT SDK = " + sdk1 + "\n") + sys.stderr.write("Default device SDK = '" + sdk2 + "'\n") + sys.stderr.write("EPOCROOT SDK = '" + sdk1 + "'\n") sys.exit(1) self.name = sdk2.replace("_", "-") @@ -209,6 +209,12 @@ def replace_vars(text): wdir = os.path.join(os.getcwd(), "../..") wdir = os.path.normpath(wdir) text = text.replace("$(PJDIR)", wdir) + elif text.find("$(NOP)") >= 0: + if platform.system().lower() == "windows" or platform.system().lower() == "microsoft": + cmd = "CMD /C echo Success" + else: + cmd = "echo Success" + text = text.replace("$(NOP)", cmd) else: break return text diff --git a/tests/automated/prepare.xml.template b/tests/automated/prepare.xml.template index b5a6d869..c1f650b9 100644 --- a/tests/automated/prepare.xml.template +++ b/tests/automated/prepare.xml.template @@ -2,15 +2,14 @@ <Scenario site="$(HOSTNAME)" url="http://my.cdash.org/submit.php?project=PJSIP" wdir="$(PJDIR)/tests/automated"> <Submit group="Experimental" build="Test-Preparation"> - <Configure cmd="echo Success" /> - <Build cmd="echo Success" /> + <Configure cmd="$(NOP)" /> + <Build cmd="$(NOP)" /> <!-- GNU Makefile based scenario Requirement: - none - - <Test name="Configuring GNU scenario" cmd="python configure.py -t gnu -o gnu.xml gnu.xml.template" /> --> + <Test name="Configuring GNU scenario" cmd="python configure.py -t gnu -o gnu.xml gnu.xml.template" /> <!-- GNU Makefile with Intel IPP scenario. Requirements: @@ -30,10 +29,9 @@ <!-- Symbian target. Requirement: - - EPOCROOT - - <Test name="Configuring Symbian scenario" cmd="python configure.py -t s60 -o symbian.xml symbian.xml.template" /> - --> + - EPOCROOT (modify below) + --> + <Test name="Configuring Symbian scenario" cmd='CMD /C SET EPOCROOT=\S60\devices\S60_5th_Edition_SDK_v1.0&& devices -setdefault @S60_5th_Edition_SDK_v1.0:com.nokia.s60&& python configure.py -t s60 -s60target "gcce urel" -o symbian.xml symbian.xml.template' /> </Submit> |