|
From: <got...@us...> - 2009-03-28 21:03:22
|
Revision: 211
http://scstudio.svn.sourceforge.net/scstudio/?rev=211&view=rev
Author: gotthardp
Date: 2009-03-28 21:03:15 +0000 (Sat, 28 Mar 2009)
Log Message:
-----------
Added few tests for the Z120 parser.
Modified Paths:
--------------
trunk/tests/CMakeLists.txt
Added Paths:
-----------
trunk/tests/z120_test00.mpr
trunk/tests/z120_test01.mpr
trunk/tests/z120_test02.mpr
Removed Paths:
-------------
trunk/src/data/Z120/test.msc
Deleted: trunk/src/data/Z120/test.msc
===================================================================
--- trunk/src/data/Z120/test.msc 2009-03-28 20:03:05 UTC (rev 210)
+++ trunk/src/data/Z120/test.msc 2009-03-28 21:03:15 UTC (rev 211)
@@ -1,16 +0,0 @@
-msc pok2;
-A: instance;
-B: instance;
-A: in A,1 from found;
-A: out jedna,2 to B;
-B: in jedna,2 from A;
-A: concurrent;
-A: out B1,3 to B;
-B: in B1,3 from A;
-A: out B,4 to lost;
-A: endconcurrent;
-A: in jedna,4 from B;
-B: out jedna,4 to A;
-A: endinstance;
-B: endinstance;
-endmsc;
Modified: trunk/tests/CMakeLists.txt
===================================================================
--- trunk/tests/CMakeLists.txt 2009-03-28 20:03:05 UTC (rev 210)
+++ trunk/tests/CMakeLists.txt 2009-03-28 21:03:15 UTC (rev 211)
@@ -75,6 +75,9 @@
TARGET_LINK_LIBRARIES(z120_test
scZ120
)
+ADD_TEST(z120-01 z120_test z120_test00.mpr)
+ADD_TEST(z120-01 z120_test z120_test01.mpr)
+ADD_TEST(z120-02 z120_test z120_test02.mpr)
ENDIF(ANTLR_FOUND)
# $Id$
Copied: trunk/tests/z120_test00.mpr (from rev 210, trunk/src/data/Z120/test.msc)
===================================================================
--- trunk/tests/z120_test00.mpr (rev 0)
+++ trunk/tests/z120_test00.mpr 2009-03-28 21:03:15 UTC (rev 211)
@@ -0,0 +1,16 @@
+msc pok2;
+A: instance;
+B: instance;
+A: in A,1 from found;
+A: out jedna,2 to B;
+B: in jedna,2 from A;
+A: concurrent;
+A: out B1,3 to B;
+B: in B1,3 from A;
+A: out B,4 to lost;
+A: endconcurrent;
+A: in jedna,4 from B;
+B: out jedna,4 to A;
+A: endinstance;
+B: endinstance;
+endmsc;
Property changes on: trunk/tests/z120_test00.mpr
___________________________________________________________________
Added: svn:mergeinfo
+
Added: svn:eol-style
+ native
Added: trunk/tests/z120_test01.mpr
===================================================================
--- trunk/tests/z120_test01.mpr (rev 0)
+++ trunk/tests/z120_test01.mpr 2009-03-28 21:03:15 UTC (rev 211)
@@ -0,0 +1,45 @@
+/*
+ * Created by Telelogic SDL 4.4
+ * This test contains
+ * - Comments
+ * - Unterminated instance
+ * - Lost, found, loopback and overtaking messages
+ * - Messages of the same name
+ */
+mscdocument z120_test01;
+msc z120_test01;
+/*#SDTREF(MSC,-b 4,109)*/
+ONE: instance;
+/*#SDTREF(MSC,-b 4,110)*/
+TWO: instance;
+text
+/*#SDTREF(MSC,-b 4,108)*/
+'Comment';
+TWO: out
+/*#SDTREF(MSC,-b 4,111)*/
+LOOPBACK,1(parameter) to TWO;
+ONE: in
+/*#SDTREF(MSC,-b 4,114)*/
+LEFT,2(parameter) from found;
+TWO: out
+/*#SDTREF(MSC,-b 4,116)*/
+RIGHT,3(parameter) to lost;
+ONE: out
+/*#SDTREF(MSC,-b 4,119)*/
+NAME,4(parameter) to TWO;
+ONE: out
+/*#SDTREF(MSC,-b 4,121)*/
+NAME,5(parameter) to TWO;
+TWO: in
+/*#SDTREF(MSC,-b 4,122)*/
+NAME,5(parameter) from ONE;
+TWO: in
+/*#SDTREF(MSC,-b 4,120)*/
+NAME,4(parameter) from ONE;
+TWO: in
+/*#SDTREF(MSC,-b 4,112)*/
+LOOPBACK,1(parameter) from TWO;
+ONE: endinstance
+/*#SDTREF(MSC,-b 4,123)*/
+;
+endmsc;
Property changes on: trunk/tests/z120_test01.mpr
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/tests/z120_test02.mpr
===================================================================
--- trunk/tests/z120_test02.mpr (rev 0)
+++ trunk/tests/z120_test02.mpr 2009-03-28 21:03:15 UTC (rev 211)
@@ -0,0 +1,20 @@
+/*
+ * Created by Telelogic SDL 4.4
+ * This test contains
+ * - Comments
+ * - Conditions, references
+ */
+mscdocument z120_test02;
+msc z120_test02;
+expr L2;
+ L1: text 'Comment';
+ L2: connect seq (L3 alt L4);
+ L3: condition STATE1 seq (L5);
+ L4: condition STATE2 seq (L6);
+ L5: (ACTION1) seq (L7);
+ L6: (ACTION2) seq (L8 alt L9);
+ L7: end;
+ L8: (ACTION3A) seq (L2);
+ L9: (ACTION3B) seq (L10);
+ L10: end;
+endmsc;
Property changes on: trunk/tests/z120_test02.mpr
___________________________________________________________________
Added: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|