From 9ba649b087df2bc161759e55549facc2f8f80878 Mon Sep 17 00:00:00 2001 From: Stefan Radomski Date: Sun, 12 Oct 2014 22:51:57 +0200 Subject: Passing all tests but xpath and lua --- test/ctest/CTestCustom.ctest.in | 2 ++ test/w3c/confPromela.xsl | 4 ++-- test/w3c/convert-tests.sh | 30 ++++++++++++++--------------- test/w3c/ecma/test187.scxml | 2 +- test/w3c/ecma/test252.scxml | 4 ++-- test/w3c/ecma/test307.scxml | 2 +- test/w3c/ecma/test403c.scxml | 6 +++--- test/w3c/promela/test252.scxml | 4 ++-- test/w3c/promela/test307.scxml | 2 +- test/w3c/promela/test338.scxml | 4 ++-- test/w3c/promela/test351.scxml | 2 ++ test/w3c/promela/test352.scxml | 1 + test/w3c/promela/test551.scxml | 42 +++++++++++++++++++++-------------------- test/w3c/txml/test252.txml | 4 ++-- test/w3c/txml/test307.txml | 4 ++-- test/w3c/xpath/test252.scxml | 4 ++-- test/w3c/xpath/test307.scxml | 2 +- 17 files changed, 63 insertions(+), 56 deletions(-) diff --git a/test/ctest/CTestCustom.ctest.in b/test/ctest/CTestCustom.ctest.in index e26bbf2..03a3c33 100644 --- a/test/ctest/CTestCustom.ctest.in +++ b/test/ctest/CTestCustom.ctest.in @@ -24,6 +24,7 @@ set(CTEST_CUSTOM_TESTS_IGNORE "fsm/ecma/test307.scxml" # manual test "fsm/ecma/test415.scxml" # manual test + "xpath/test388.scxml" # hangs "xpath/test580.scxml" # hangs "promela/test178.scxml" # manual test @@ -135,6 +136,7 @@ set(CTEST_CUSTOM_TESTS_IGNORE "spin/promela/test343.scxml" # test that illegal produces error.execution "spin/promela/test347.scxml" # nested SCXML document with bidirectional SCXML ioprocessor "spin/promela/test351.scxml" # timeout with delay + "spin/promela/test352.scxml" # timeout with delay "spin/promela/test342.scxml" # timeout with delay "spin/promela/test388.scxml" # timeout with delay "spin/promela/test399.scxml" # timeout with delay diff --git a/test/w3c/confPromela.xsl b/test/w3c/confPromela.xsl index 1204d33..e9ff4ce 100644 --- a/test/w3c/confPromela.xsl +++ b/test/w3c/confPromela.xsl @@ -503,8 +503,8 @@ is the second argument --> return - - + + Var[1] diff --git a/test/w3c/convert-tests.sh b/test/w3c/convert-tests.sh index 48aa452..23010c7 100755 --- a/test/w3c/convert-tests.sh +++ b/test/w3c/convert-tests.sh @@ -5,19 +5,19 @@ cd $DIR TXMLS=`ls txml/*.txml` # see http://saxon.sourceforge.net/saxon6.5.1/using-xsl.html -# for TXML in $TXMLS -# do -# DEST=ecma/`basename $TXML .txml`.scxml -# echo "Processing $TXML to $DEST" -# java -jar /Users/sradomski/Developer/Applications/SaxonHE9-4-0-7J/saxon9he.jar $TXML confEcma.xsl -o:$DEST -# done -# -# for TXML in $TXMLS -# do -# DEST=xpath/`basename $TXML .txml`.scxml -# echo "Processing $TXML to $DEST" -# java -jar /Users/sradomski/Developer/Applications/SaxonHE9-4-0-7J/saxon9he.jar $TXML confXPath.xsl -o:$DEST -# done +for TXML in $TXMLS +do + DEST=ecma/`basename $TXML .txml`.scxml + echo "Processing $TXML to $DEST" + java -jar /Users/sradomski/Developer/Applications/SaxonHE9-4-0-7J/saxon9he.jar $TXML confEcma.xsl -o:$DEST +done + +for TXML in $TXMLS +do + DEST=xpath/`basename $TXML .txml`.scxml + echo "Processing $TXML to $DEST" + java -jar /Users/sradomski/Developer/Applications/SaxonHE9-4-0-7J/saxon9he.jar $TXML confXPath.xsl -o:$DEST +done for TXML in $TXMLS do @@ -30,8 +30,8 @@ cp txml/*.txt ecma/ cp txml/*.txt xpath/ cp txml/*.txt promela/ -# find ./ecma -type f -exec grep -Ili 'datamodel="xpath"' {} \; |xargs rm -fv -# find ./xpath -type f -exec grep -Ili 'datamodel="ecmascript"' {} \; |xargs rm -fv +find ./ecma -type f -exec grep -Ili 'datamodel="xpath"' {} \; |xargs rm -fv +find ./xpath -type f -exec grep -Ili 'datamodel="ecmascript"' {} \; |xargs rm -fv find ./promela -type f -exec grep -Ili 'datamodel="xpath"' {} \; |xargs rm -fv find ./promela -type f -exec grep -Ili 'datamodel="ecmascript"' {} \; |xargs rm -fv diff --git a/test/w3c/ecma/test187.scxml b/test/w3c/ecma/test187.scxml index 59b16ba..4b3e15e 100644 --- a/test/w3c/ecma/test187.scxml +++ b/test/w3c/ecma/test187.scxml @@ -6,7 +6,7 @@ parent session, should not receive childToParent. If it does, we fail. Otherwis - + diff --git a/test/w3c/ecma/test252.scxml b/test/w3c/ecma/test252.scxml index 78c9315..f565a26 100644 --- a/test/w3c/ecma/test252.scxml +++ b/test/w3c/ecma/test252.scxml @@ -5,7 +5,7 @@ timeout indicates success. --> - + @@ -19,7 +19,7 @@ timeout indicates success. --> - + diff --git a/test/w3c/ecma/test307.scxml b/test/w3c/ecma/test307.scxml index 61f49fc..726bddd 100644 --- a/test/w3c/ecma/test307.scxml +++ b/test/w3c/ecma/test307.scxml @@ -1,5 +1,5 @@ - + - + - + diff --git a/test/w3c/promela/test252.scxml b/test/w3c/promela/test252.scxml index cb45517..f4667ef 100644 --- a/test/w3c/promela/test252.scxml +++ b/test/w3c/promela/test252.scxml @@ -5,7 +5,7 @@ timeout indicates success. --> - + @@ -19,7 +19,7 @@ timeout indicates success. --> - + diff --git a/test/w3c/promela/test307.scxml b/test/w3c/promela/test307.scxml index 91ad325..bde6684 100644 --- a/test/w3c/promela/test307.scxml +++ b/test/w3c/promela/test307.scxml @@ -1,5 +1,5 @@ - + - - + + diff --git a/test/w3c/promela/test351.scxml b/test/w3c/promela/test351.scxml index fb665ec..956e006 100644 --- a/test/w3c/promela/test351.scxml +++ b/test/w3c/promela/test351.scxml @@ -7,6 +7,7 @@ + @@ -21,6 +22,7 @@ + diff --git a/test/w3c/promela/test352.scxml b/test/w3c/promela/test352.scxml index 464ee32..a964a04 100644 --- a/test/w3c/promela/test352.scxml +++ b/test/w3c/promela/test352.scxml @@ -6,6 +6,7 @@ + diff --git a/test/w3c/promela/test551.scxml b/test/w3c/promela/test551.scxml index 7fca0b4..cdc185e 100644 --- a/test/w3c/promela/test551.scxml +++ b/test/w3c/promela/test551.scxml @@ -1,15 +1,13 @@ - - - - - - - - - - - - + + + + + + + + + + Var1[0] = 1; Var1[1] = 2; @@ -17,11 +15,15 @@ - - - - - - - - \ No newline at end of file + + + + + + + + + + + + diff --git a/test/w3c/txml/test252.txml b/test/w3c/txml/test252.txml index ba43543..40c36cb 100644 --- a/test/w3c/txml/test252.txml +++ b/test/w3c/txml/test252.txml @@ -9,7 +9,7 @@ timeout indicates success. --> - + @@ -26,7 +26,7 @@ timeout indicates success. --> - + diff --git a/test/w3c/txml/test307.txml b/test/w3c/txml/test307.txml index 0cfeef2..f6691c7 100644 --- a/test/w3c/txml/test307.txml +++ b/test/w3c/txml/test307.txml @@ -1,5 +1,5 @@ - + - + @@ -19,7 +19,7 @@ timeout indicates success. --> - + diff --git a/test/w3c/xpath/test307.scxml b/test/w3c/xpath/test307.scxml index 29fde66..7e0f2bf 100644 --- a/test/w3c/xpath/test307.scxml +++ b/test/w3c/xpath/test307.scxml @@ -1,5 +1,5 @@ - +