diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-11-20 09:30:27 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-11-20 09:30:27 (GMT) |
commit | 22e22bfd0965e01fea041e053873d352387805f6 (patch) | |
tree | 7addd4ba068372c9335fdfa768803a50db894ea0 /test/src | |
parent | 09eedacec4b9f349e22a77ecba29c7ece9cc58e1 (diff) | |
download | uscxml-22e22bfd0965e01fea041e053873d352387805f6.zip uscxml-22e22bfd0965e01fea041e053873d352387805f6.tar.gz uscxml-22e22bfd0965e01fea041e053873d352387805f6.tar.bz2 |
Only start HTTP server if there is something to serve
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/test-communication.cpp.old | 31 | ||||
-rw-r--r-- | test/src/test-completion.cpp.old | 20 |
2 files changed, 0 insertions, 51 deletions
diff --git a/test/src/test-communication.cpp.old b/test/src/test-communication.cpp.old deleted file mode 100644 index a0cdbbd..0000000 --- a/test/src/test-communication.cpp.old +++ /dev/null @@ -1,31 +0,0 @@ -#include "uscxml/Interpreter.h" -#include <DOM/io/Stream.hpp> - -int main(int argc, char** argv) { - if (argc != 2) { - std::cerr << "Expected path to test-communication.scxml" << std::endl; - exit(EXIT_FAILURE); - } - - - using namespace uscxml; - std::list<Interpreter*> _interpreters; - -// Event e; -// e.compound["foo"] = Data("bar", Data::VERBATIM); -// e.compound["foo2"] = Data("bar2", Data::VERBATIM); -// std::cout << e.toDocument() << std::endl; - - int nrInterpreters = 1; - for (int i = 0; i < nrInterpreters; i++) { - _interpreters.push_back(Interpreter::fromURI(argv[1])); - _interpreters.back()->start(); - } - - std::list<Interpreter*>::iterator interIter = _interpreters.begin(); - while(interIter != _interpreters.end()) { - (*interIter)->join(); - interIter++; - } - -}
\ No newline at end of file diff --git a/test/src/test-completion.cpp.old b/test/src/test-completion.cpp.old deleted file mode 100644 index 67d8708..0000000 --- a/test/src/test-completion.cpp.old +++ /dev/null @@ -1,20 +0,0 @@ -#include "uscxml/Interpreter.h" -#include "uscxml/debug/SCXMLDotWriter.h" -#include <DOM/io/Stream.hpp> - -int main(int argc, char** argv) { - if (argc != 2) { - std::cerr << "Expected path to scxml document" << std::endl; - exit(EXIT_FAILURE); - } - - using namespace uscxml; - - Interpreter* interpreter = Interpreter::fromURI(argv[1]); - //SCXMLDotWriter::toDot("output.dot", interpreter); - - interpreter->interpret(); - - - return EXIT_SUCCESS; -}
\ No newline at end of file |