summaryrefslogtreecommitdiff
path: root/tests/automated
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2010-03-30 13:02:40 +0000
committerBenny Prijono <bennylp@teluu.com>2010-03-30 13:02:40 +0000
commitab7123a90d8016314506ed8e2cd5d08ec9a88c45 (patch)
tree5176624c2975f363b8fe65df5917919ddf1d5921 /tests/automated
parentbfce50ca66e811fa21aec4385ce14ea46ce1f84e (diff)
More ticket #1041 (Unit test):
- Symbian testing (plain, APS/Direct, VAS/Direct) - some MMPs need to be modified to support automated configuration - renamed Write to FileWrite command in scenario files - support for Visual Studio 2010 detection in configure script git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3131 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'tests/automated')
-rwxr-xr-xtests/automated/configure.py6
-rw-r--r--tests/automated/gnu.xml.template8
-rw-r--r--tests/automated/msvc.xml.template14
-rw-r--r--tests/automated/symbian-aps.xml.template78
-rw-r--r--tests/automated/symbian-vas.xml.template79
-rw-r--r--tests/automated/symbian.xml.template7
6 files changed, 176 insertions, 16 deletions
diff --git a/tests/automated/configure.py b/tests/automated/configure.py
index 167f586b..06a65315 100755
--- a/tests/automated/configure.py
+++ b/tests/automated/configure.py
@@ -66,10 +66,14 @@ class VSVersion:
self.version = "9"
self.release = "2008"
break
- else:
+ elif major=="16":
self.version = "10"
self.release = "2010"
break
+ else:
+ self.version = "11"
+ self.release = "2012"
+ break
proc.wait()
self.vs_version = "vs" + self.version
self.vs_release = "vs" + self.release
diff --git a/tests/automated/gnu.xml.template b/tests/automated/gnu.xml.template
index 6e304b3a..888f5691 100644
--- a/tests/automated/gnu.xml.template
+++ b/tests/automated/gnu.xml.template
@@ -3,18 +3,18 @@
<Submit group="Experimental" build="$(SUFFIX)-$(GCC)-default" disabled="$(DISABLED)" >
<Update />
- <Write file="user.mak">
+ <FileWrite file="user.mak">
<![CDATA[
# Written by ccdash
]]>
- </Write>
- <Write file="pjlib/include/pj/config_site.h">
+ </FileWrite>
+ <FileWrite file="pjlib/include/pj/config_site.h">
<![CDATA[
/* Written by ccdash */
#define PJ_HAS_IPV6 1
#define PJMEDIA_HAS_G7221_CODEC 1
]]>
- </Write>
+ </FileWrite>
<Configure cmd="./aconfigure" />
<Build cmd="make dep &amp;&amp; make distclean &amp;&amp; make" />
<Test name="pjlib-test" info="" wdir="pjlib/bin" cmd="./pjlib-test-$(SUFFIX)" />
diff --git a/tests/automated/msvc.xml.template b/tests/automated/msvc.xml.template
index 53da44b1..12af16e1 100644
--- a/tests/automated/msvc.xml.template
+++ b/tests/automated/msvc.xml.template
@@ -3,20 +3,20 @@
<Submit group="Experimental" build="$(OS)-$(VS)-$(VSTARGET)-default" >
<Update />
- <Write file="pjlib/include/pj/config_site.h">
+ <FileWrite file="pjlib/include/pj/config_site.h">
<![CDATA[
/* Written by ccdash */
#define PJ_HAS_IPV6 1
#define PJMEDIA_HAS_G7221_CODEC 1
]]>
- </Write>
+ </FileWrite>
<Configure cmd="cmd /c echo success" />
<Build cmd='vcbuild.exe /nologo /nohtmllog /nocolor /rebuild pjproject-vs8.sln "$(VSTARGET)|Win32"' />
- <Test name="pjlib-test" info="" wdir="pjlib/bin" cmd="pjlib-test-i386-Win32-vs8-$(VSTARGET)" />
- <Test name="pjlib-util-test" info="" wdir="pjlib-util/bin" cmd="pjlib-util-test-i386-Win32-vs8-$(VSTARGET)" />
- <Test name="pjnath-test" info="" wdir="pjnath/bin" cmd="pjnath-test-i386-Win32-vs8-$(VSTARGET)" />
- <Test name="pjmedia-test" info="" wdir="pjmedia/bin" cmd="pjmedia-test-i386-Win32-vs8-$(VSTARGET)" />
- <Test name="pjsip-test" info="" wdir="pjsip/bin" cmd="pjsip-test-i386-Win32-vs8-$(VSTARGET)" />
+ <Test name="pjlib-test" info="" wdir="pjlib/bin" cmd="pjlib-test-i386-Win32-vc8-$(VSTARGET)" />
+ <Test name="pjlib-util-test" info="" wdir="pjlib-util/bin" cmd="pjlib-util-test-i386-Win32-vc8-$(VSTARGET)" />
+ <Test name="pjnath-test" info="" wdir="pjnath/bin" cmd="pjnath-test-i386-Win32-vc8-$(VSTARGET)" />
+ <Test name="pjmedia-test" info="" wdir="pjmedia/bin" cmd="pjmedia-test-i386-Win32-vc8-$(VSTARGET)" />
+ <Test name="pjsip-test" info="" wdir="pjsip/bin" cmd="pjsip-test-i386-Win32-vc8-$(VSTARGET)" />
$(PJSUA-TESTS)
</Submit>
diff --git a/tests/automated/symbian-aps.xml.template b/tests/automated/symbian-aps.xml.template
new file mode 100644
index 00000000..1a7befc8
--- /dev/null
+++ b/tests/automated/symbian-aps.xml.template
@@ -0,0 +1,78 @@
+<?xml version="1.0" ?>
+<Scenario site="$(HOSTNAME)" url="http://my.cdash.org/submit.php?project=PJSIP" wdir="$(PJDIR)">
+ <!-- *********************************************************
+ ** This file contains scenario for APS and APS-Direct **
+ ********************************************************* -->
+
+ <!-- ******************************
+ ** APS **
+ ****************************** -->
+ <Submit group="Experimental" build="$(OS)-$(S60TARGETNAME)-APS" >
+ <Update />
+ <!-- Configure config_site.h -->
+ <FileWrite file="pjlib/include/pj/config_site.h">
+ <![CDATA[
+/* Written by ccdash */
+#define PJMEDIA_AUDIO_DEV_HAS_SYMB_APS 1
+#define PJMEDIA_AUDIO_DEV_HAS_SYMB_MDA 0
+#include <pj/config_site_sample.h>
+]]>
+ </FileWrite>
+ <!-- Configure symbian_ua.mmp -->
+ <FileWrite file="build.symbian/symbian_ua.mmp" replace_begin="// =BEGIN" replace_end="// =END">
+ <![CDATA[
+#define SND_HAS_APS 1
+#define SND_HAS_VAS 0
+#define SND_HAS_MDA 0
+]]>
+ </FileWrite>
+ <!-- Configure symbian_ua_gui.mmp -->
+ <FileWrite file="pjsip-apps/src/symbian_ua_gui/group/symbian_ua_gui.mmp" replace_begin="// =BEGIN" replace_end="// =END">
+ <![CDATA[
+#define SND_HAS_APS 1
+#define SND_HAS_VAS 0
+#define SND_HAS_MDA 0
+]]>
+ </FileWrite>
+ <Configure cmd="cmd /c echo success" />
+ <Build wdir="build.symbian" cmd='cmd /C &quot;bldmake bldfiles &amp;&amp; abld reallyclean $(S60TARGET) &amp;&amp; abld build $(S60TARGET)&quot;' />
+ </Submit>
+
+
+ <!-- ******************************
+ ** APS-Direct **
+ ****************************** -->
+ <Submit group="Experimental" build="$(OS)-$(S60TARGETNAME)-APS-Direct" >
+ <Update />
+ <!-- Configure config_site.h -->
+ <FileWrite file="pjlib/include/pj/config_site.h">
+ <![CDATA[
+/* Written by ccdash */
+#define PJ_CONFIG_NOKIA_APS_DIRECT
+#include <pj/config_site_sample.h>
+]]>
+ </FileWrite>
+ <Configure cmd="cmd /c echo success" />
+ <Build wdir="build.symbian" cmd='cmd /C &quot;bldmake bldfiles &amp;&amp; abld reallyclean $(S60TARGET) &amp;&amp; abld build $(S60TARGET)&quot;' />
+
+ <!-- Restore symbian_ua.mmp -->
+ <FileWrite file="build.symbian/symbian_ua.mmp" replace_begin="// =BEGIN" replace_end="// =END">
+ <![CDATA[
+#define SND_HAS_APS 0
+#define SND_HAS_VAS 0
+#define SND_HAS_MDA 1
+]]>
+ </FileWrite>
+ <!-- Restore symbian_ua_gui.mmp -->
+ <FileWrite file="pjsip-apps/src/symbian_ua_gui/group/symbian_ua_gui.mmp" replace_begin="// =BEGIN" replace_end="// =END">
+ <![CDATA[
+#define SND_HAS_APS 0
+#define SND_HAS_VAS 0
+#define SND_HAS_MDA 1
+]]>
+ </FileWrite>
+
+ </Submit>
+
+</Scenario>
+
diff --git a/tests/automated/symbian-vas.xml.template b/tests/automated/symbian-vas.xml.template
new file mode 100644
index 00000000..119d1e56
--- /dev/null
+++ b/tests/automated/symbian-vas.xml.template
@@ -0,0 +1,79 @@
+<?xml version="1.0" ?>
+<Scenario site="$(HOSTNAME)" url="http://my.cdash.org/submit.php?project=PJSIP" wdir="$(PJDIR)">
+ <!-- *********************************************************
+ ** This file contains scenario for VAS and VAS-Direct **
+ ********************************************************* -->
+
+ <!-- ******************************
+ ** VAS **
+ ****************************** -->
+ <Submit group="Experimental" build="$(OS)-$(S60TARGETNAME)-VAS1" >
+ <Update />
+ <!-- Configure config_site.h -->
+ <FileWrite file="pjlib/include/pj/config_site.h">
+ <![CDATA[
+/* Written by ccdash */
+#define PJMEDIA_AUDIO_DEV_HAS_SYMB_VAS 1
+#define PJMEDIA_AUDIO_DEV_HAS_SYMB_APS 0
+#define PJMEDIA_AUDIO_DEV_HAS_SYMB_MDA 0
+#include <pj/config_site_sample.h>
+]]>
+ </FileWrite>
+ <!-- Configure symbian_ua.mmp -->
+ <FileWrite file="build.symbian/symbian_ua.mmp" replace_begin="// =BEGIN" replace_end="// =END">
+ <![CDATA[
+#define SND_HAS_APS 0
+#define SND_HAS_VAS 1
+#define SND_HAS_MDA 0
+]]>
+ </FileWrite>
+ <!-- Configure symbian_ua_gui.mmp -->
+ <FileWrite file="pjsip-apps/src/symbian_ua_gui/group/symbian_ua_gui.mmp" replace_begin="// =BEGIN" replace_end="// =END">
+ <![CDATA[
+#define SND_HAS_APS 0
+#define SND_HAS_VAS 1
+#define SND_HAS_MDA 0
+]]>
+ </FileWrite>
+ <Configure cmd="cmd /c echo success" />
+ <Build wdir="build.symbian" cmd='cmd /C &quot;bldmake bldfiles &amp;&amp; abld reallyclean $(S60TARGET) &amp;&amp; abld build $(S60TARGET)&quot;' />
+ </Submit>
+
+
+ <!-- ******************************
+ ** VAS-Direct **
+ ****************************** -->
+ <Submit group="Experimental" build="$(OS)-$(S60TARGETNAME)-VAS1-Direct" >
+ <Update />
+ <!-- Configure config_site.h -->
+ <FileWrite file="pjlib/include/pj/config_site.h">
+ <![CDATA[
+/* Written by ccdash */
+#define PJ_CONFIG_NOKIA_VAS_DIRECT
+#include <pj/config_site_sample.h>
+]]>
+ </FileWrite>
+ <Configure cmd="cmd /c echo success" />
+ <Build wdir="build.symbian" cmd='cmd /C &quot;bldmake bldfiles &amp;&amp; abld reallyclean $(S60TARGET) &amp;&amp; abld build $(S60TARGET)&quot;' />
+
+ <!-- Restore symbian_ua.mmp -->
+ <FileWrite file="build.symbian/symbian_ua.mmp" replace_begin="// =BEGIN" replace_end="// =END">
+ <![CDATA[
+#define SND_HAS_APS 0
+#define SND_HAS_VAS 0
+#define SND_HAS_MDA 1
+]]>
+ </FileWrite>
+ <!-- Restore symbian_ua_gui.mmp -->
+ <FileWrite file="pjsip-apps/src/symbian_ua_gui/group/symbian_ua_gui.mmp" replace_begin="// =BEGIN" replace_end="// =END">
+ <![CDATA[
+#define SND_HAS_APS 0
+#define SND_HAS_VAS 0
+#define SND_HAS_MDA 1
+]]>
+ </FileWrite>
+
+ </Submit>
+
+</Scenario>
+
diff --git a/tests/automated/symbian.xml.template b/tests/automated/symbian.xml.template
index 6cac8cee..4e87f18b 100644
--- a/tests/automated/symbian.xml.template
+++ b/tests/automated/symbian.xml.template
@@ -1,9 +1,9 @@
<?xml version="1.0" ?>
<Scenario site="$(HOSTNAME)" url="http://my.cdash.org/submit.php?project=PJSIP" wdir="$(PJDIR)">
-
+ <!-- Symbian S60 default -->
<Submit group="Experimental" build="$(OS)-$(S60TARGETNAME)-default" >
<Update disabled="1" />
- <Write file="pjlib/include/pj/config_site.h">
+ <FileWrite file="pjlib/include/pj/config_site.h">
<![CDATA[
/* Written by ccdash */
#include <pj/config_site_sample.h>
@@ -12,10 +12,9 @@
#undef PJMEDIA_HAS_G7221_CODEC
#define PJMEDIA_HAS_G7221_CODEC 1
]]>
- </Write>
+ </FileWrite>
<Configure cmd="cmd /c echo success" />
<Build wdir="build.symbian" cmd='cmd /C &quot;bldmake bldfiles &amp;&amp; abld reallyclean $(S60TARGET) &amp;&amp; abld build $(S60TARGET)&quot;' />
</Submit>
-
</Scenario>