From febde41c4c69d8f38967d5c195328d468834d037 Mon Sep 17 00:00:00 2001 From: Stefan Radomski Date: Tue, 24 Jun 2014 01:38:20 +0200 Subject: Updated tests for IRP and work on bindings --- CMakeLists.txt | 16 +- apps/samples/vrml/viewer.html | 69 ++-- contrib/cmake/FindLibJingle.cmake | 150 +++++++ contrib/csharp/embedding/embedding.sln | 20 + contrib/csharp/embedding/embedding.suo | Bin 0 -> 15872 bytes contrib/csharp/embedding/embedding/Program.cs | 35 ++ .../embedding/embedding/Properties/AssemblyInfo.cs | 36 ++ .../csharp/embedding/embedding/embedding.csproj | 60 +++ contrib/ctest/CTestCustom.ctest.in | 101 ++--- src/bindings/CMakeLists.txt | 19 + src/bindings/swig/csharp/CMakeLists.txt | 85 ++++ src/bindings/swig/csharp/stl_list.i | 49 +++ src/bindings/swig/csharp/stl_set.i | 73 ++++ src/bindings/swig/csharp/uscxml.i | 185 +++++++++ src/bindings/swig/java/JavaDataModel.cpp | 8 - src/bindings/swig/java/JavaDataModel.h | 141 ------- src/bindings/swig/java/JavaInvoker.cpp | 8 - src/bindings/swig/java/JavaInvoker.h | 39 -- src/bindings/swig/java/org/uscxml/Data.java | 2 +- src/bindings/swig/java/stl_list.i | 49 --- src/bindings/swig/java/stl_set.i | 73 ---- src/bindings/swig/java/uscxml.i | 43 +- src/bindings/swig/msvc/inttypes.h | 304 ++++++++++++++ src/bindings/swig/stl_list.i | 49 +++ src/bindings/swig/stl_set.i | 73 ++++ src/bindings/swig/wrapped/WrappedDataModel.cpp | 8 + src/bindings/swig/wrapped/WrappedDataModel.h | 138 +++++++ src/bindings/swig/wrapped/WrappedInvoker.cpp | 8 + src/bindings/swig/wrapped/WrappedInvoker.h | 39 ++ src/uscxml/Factory.cpp | 22 +- src/uscxml/Interpreter.cpp | 445 ++++++++++++++------- src/uscxml/Interpreter.h | 358 ++++++++--------- src/uscxml/Message.cpp | 23 ++ src/uscxml/Message.h | 10 + src/uscxml/concurrency/tinythread.h | 25 ++ src/uscxml/debug/Breakpoint.cpp | 2 +- src/uscxml/debug/SCXMLDotWriter.cpp | 4 +- src/uscxml/interpreter/InterpreterDraft6.cpp | 418 +++++++++---------- src/uscxml/interpreter/InterpreterDraft6.h | 7 +- src/uscxml/interpreter/InterpreterRC.cpp | 118 +----- src/uscxml/interpreter/InterpreterRC.h | 4 +- src/uscxml/plugins/datamodel/CMakeLists.txt | 15 +- .../ecmascript/JavaScriptCore/JSCDataModel.cpp | 8 + .../datamodel/ecmascript/v8/V8DataModel.cpp | 17 + .../plugins/element/respond/RespondElement.cpp | 4 +- src/uscxml/plugins/invoker/CMakeLists.txt | 24 ++ .../plugins/invoker/sample/SampleInvoker.cpp | 2 +- src/uscxml/plugins/invoker/sample/SampleInvoker.h | 2 +- .../plugins/invoker/webrtc/WebRTCInvoker.cpp | 64 +++ src/uscxml/plugins/invoker/webrtc/WebRTCInvoker.h | 59 +++ .../ioprocessor/basichttp/BasicHTTPIOProcessor.cpp | 26 +- src/uscxml/server/HTTPServer.cpp | 1 - src/uscxml/transform/ChartToFSM.cpp | 5 +- src/uscxml/transform/ChartToFSM.h | 2 +- test/src/test-lifecycle.cpp | 193 +++++++-- test/src/test-predicates.cpp | 16 +- test/w3c/confEcma.xsl | 9 +- test/w3c/confXPath.xsl | 9 +- test/w3c/ecma/test179.scxml | 2 +- test/w3c/ecma/test193.scxml | 19 +- test/w3c/ecma/test233.scxml | 2 +- test/w3c/ecma/test286.scxml | 2 +- test/w3c/ecma/test294.scxml | 2 +- test/w3c/ecma/test298.scxml | 8 +- test/w3c/ecma/test311.scxml | 3 +- test/w3c/ecma/test329.scxml | 1 + test/w3c/ecma/test330.scxml | 6 +- test/w3c/ecma/test331.scxml | 6 +- test/w3c/ecma/test350.scxml | 22 - test/w3c/ecma/test354.scxml | 2 +- test/w3c/ecma/test401.scxml | 2 +- test/w3c/ecma/test402.scxml | 2 +- test/w3c/ecma/test446.scxml | 21 + test/w3c/ecma/test458.txt | 1 + test/w3c/ecma/test459.scxml | 35 ++ test/w3c/ecma/test496.scxml | 18 + test/w3c/ecma/test527.scxml | 2 +- test/w3c/ecma/test528.scxml | 1 - test/w3c/ecma/test529.scxml | 2 +- test/w3c/ecma/test545.scxml | 17 + test/w3c/ecma/test561.scxml | 4 +- test/w3c/ecma/test577.scxml | 21 + test/w3c/ecma/test578.scxml | 2 +- test/w3c/ecma/test579.scxml | 61 +++ test/w3c/ecma/test580.scxml | 48 +++ test/w3c/txml/test159.txml | 2 +- test/w3c/txml/test193.txml | 19 +- test/w3c/txml/test233.txml | 2 +- test/w3c/txml/test286.txml | 2 +- test/w3c/txml/test294.txml | 2 +- test/w3c/txml/test298.txml | 8 +- test/w3c/txml/test311.txml | 3 +- test/w3c/txml/test330.txml | 2 +- test/w3c/txml/test331.txml | 6 +- test/w3c/txml/test350.txml | 6 +- test/w3c/txml/test354.txml | 6 +- test/w3c/txml/test401.txml | 2 +- test/w3c/txml/test402.txml | 2 +- test/w3c/txml/test446.txml | 25 ++ test/w3c/txml/test459.txml | 37 ++ test/w3c/txml/test496.txml | 20 + test/w3c/txml/test527.txml | 2 +- test/w3c/txml/test528.txml | 1 - test/w3c/txml/test545.txml | 21 + test/w3c/txml/test561.txml | 4 +- test/w3c/txml/test577.txml | 24 ++ test/w3c/txml/test578.txml | 2 +- test/w3c/txml/test579.txml | 65 +++ test/w3c/txml/test580.txml | 52 +++ test/w3c/update-txml.sh | 5 + test/w3c/xpath/test159.scxml | 2 +- test/w3c/xpath/test179.scxml | 2 +- test/w3c/xpath/test193.scxml | 19 +- test/w3c/xpath/test233.scxml | 2 +- test/w3c/xpath/test286.scxml | 2 +- test/w3c/xpath/test298.scxml | 8 +- test/w3c/xpath/test311.scxml | 3 +- test/w3c/xpath/test330.scxml | 6 +- test/w3c/xpath/test331.scxml | 6 +- test/w3c/xpath/test350.scxml | 22 - test/w3c/xpath/test354.scxml | 4 +- test/w3c/xpath/test401.scxml | 2 +- test/w3c/xpath/test402.scxml | 2 +- test/w3c/xpath/test446.scxml | 21 + test/w3c/xpath/test459.scxml | 35 ++ test/w3c/xpath/test496.scxml | 18 + test/w3c/xpath/test528.scxml | 1 - test/w3c/xpath/test529.scxml | 2 +- test/w3c/xpath/test545.scxml | 17 + test/w3c/xpath/test561.scxml | 4 +- test/w3c/xpath/test577.scxml | 21 + test/w3c/xpath/test578.scxml | 2 +- test/w3c/xpath/test579.scxml | 61 +++ test/w3c/xpath/test580.scxml | 48 +++ 134 files changed, 3390 insertions(+), 1324 deletions(-) create mode 100644 contrib/cmake/FindLibJingle.cmake create mode 100644 contrib/csharp/embedding/embedding.sln create mode 100644 contrib/csharp/embedding/embedding.suo create mode 100644 contrib/csharp/embedding/embedding/Program.cs create mode 100644 contrib/csharp/embedding/embedding/Properties/AssemblyInfo.cs create mode 100644 contrib/csharp/embedding/embedding/embedding.csproj create mode 100644 src/bindings/swig/csharp/CMakeLists.txt create mode 100644 src/bindings/swig/csharp/stl_list.i create mode 100644 src/bindings/swig/csharp/stl_set.i create mode 100644 src/bindings/swig/csharp/uscxml.i delete mode 100644 src/bindings/swig/java/JavaDataModel.cpp delete mode 100644 src/bindings/swig/java/JavaDataModel.h delete mode 100644 src/bindings/swig/java/JavaInvoker.cpp delete mode 100644 src/bindings/swig/java/JavaInvoker.h delete mode 100644 src/bindings/swig/java/stl_list.i delete mode 100644 src/bindings/swig/java/stl_set.i create mode 100644 src/bindings/swig/msvc/inttypes.h create mode 100644 src/bindings/swig/stl_list.i create mode 100644 src/bindings/swig/stl_set.i create mode 100644 src/bindings/swig/wrapped/WrappedDataModel.cpp create mode 100644 src/bindings/swig/wrapped/WrappedDataModel.h create mode 100644 src/bindings/swig/wrapped/WrappedInvoker.cpp create mode 100644 src/bindings/swig/wrapped/WrappedInvoker.h create mode 100644 src/uscxml/plugins/invoker/webrtc/WebRTCInvoker.cpp create mode 100644 src/uscxml/plugins/invoker/webrtc/WebRTCInvoker.h delete mode 100644 test/w3c/ecma/test350.scxml create mode 100644 test/w3c/ecma/test446.scxml create mode 100644 test/w3c/ecma/test458.txt create mode 100644 test/w3c/ecma/test459.scxml create mode 100644 test/w3c/ecma/test496.scxml create mode 100644 test/w3c/ecma/test545.scxml create mode 100644 test/w3c/ecma/test577.scxml create mode 100644 test/w3c/ecma/test579.scxml create mode 100644 test/w3c/ecma/test580.scxml create mode 100644 test/w3c/txml/test446.txml create mode 100644 test/w3c/txml/test459.txml create mode 100644 test/w3c/txml/test496.txml create mode 100644 test/w3c/txml/test545.txml create mode 100644 test/w3c/txml/test577.txml create mode 100644 test/w3c/txml/test579.txml create mode 100644 test/w3c/txml/test580.txml delete mode 100644 test/w3c/xpath/test350.scxml create mode 100644 test/w3c/xpath/test446.scxml create mode 100644 test/w3c/xpath/test459.scxml create mode 100644 test/w3c/xpath/test496.scxml create mode 100644 test/w3c/xpath/test545.scxml create mode 100644 test/w3c/xpath/test577.scxml create mode 100644 test/w3c/xpath/test579.scxml create mode 100644 test/w3c/xpath/test580.scxml diff --git a/CMakeLists.txt b/CMakeLists.txt index 88f6874..e4ac449 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -719,6 +719,18 @@ if (LIBICAL_FOUND) endif() set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES_ORIG}) +set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES_SHARED}) +if (NOT DEFINED ENV{LIBJINGLE_ROOT_DIR}) + set(ENV{LIBJINGLE_ROOT_DIR} "/Users/sradomski/Documents/TK/Code/webrtc-work/trunk") +endif() + +find_package(LIBJINGLE) +if (LIBJINGLE_FOUND) + include_directories (${LIBJINGLE_INCLUDE_DIRS}) + list (APPEND USCXML_OPT_LIBS ${LIBJINGLE_LIBRARIES}) +endif() +set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES_ORIG}) + find_package(Expect) find_package(TCL) if (EXPECT_FOUND AND TCL_FOUND) @@ -1004,9 +1016,7 @@ if (NOT CMAKE_CROSSCOMPILING) add_subdirectory(test) endif() - if (NOT WIN32) - add_subdirectory(src/bindings) - endif() + add_subdirectory(src/bindings) endif() diff --git a/apps/samples/vrml/viewer.html b/apps/samples/vrml/viewer.html index bcddf2d..467681e 100644 --- a/apps/samples/vrml/viewer.html +++ b/apps/samples/vrml/viewer.html @@ -60,33 +60,52 @@