diff options
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/sca/kernel/Makefile.am | 7 | ||||
-rw-r--r-- | cpp/sca/kernel/xsd-test.cpp (renamed from cpp/sca/kernel/xml-test.cpp) | 0 | ||||
-rw-r--r-- | cpp/sca/modules/eval/Makefile.am | 4 | ||||
-rw-r--r-- | cpp/sca/modules/eval/eval-shell.cpp | 35 |
4 files changed, 41 insertions, 5 deletions
diff --git a/cpp/sca/kernel/Makefile.am b/cpp/sca/kernel/Makefile.am index 0055ae687f..bed68e17cd 100644 --- a/cpp/sca/kernel/Makefile.am +++ b/cpp/sca/kernel/Makefile.am @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. -noinst_PROGRAMS = kernel-test xml-test +noinst_PROGRAMS = kernel-test xsd-test nobase_include_HEADERS = *.hpp @@ -24,6 +24,5 @@ INCLUDES = -I. -I$(top_builddir)/kernel -I${LIBXML2_INCLUDE} kernel_test_SOURCES = kernel-test.cpp kernel_test_LDADD = -lpthread -L${LIBXML2_LIB} -lxml2 -xml_test_SOURCES = xml-test.cpp -xml_test_LDADD = -lpthread -L${LIBXML2_LIB} -lxml2 - +xsd_test_SOURCES = xsd-test.cpp +xsd_test_LDADD = -lpthread -L${LIBXML2_LIB} -lxml2 diff --git a/cpp/sca/kernel/xml-test.cpp b/cpp/sca/kernel/xsd-test.cpp index 818c03ba68..818c03ba68 100644 --- a/cpp/sca/kernel/xml-test.cpp +++ b/cpp/sca/kernel/xsd-test.cpp diff --git a/cpp/sca/modules/eval/Makefile.am b/cpp/sca/modules/eval/Makefile.am index e1add383f4..552e0f99c7 100644 --- a/cpp/sca/modules/eval/Makefile.am +++ b/cpp/sca/modules/eval/Makefile.am @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. -noinst_PROGRAMS = eval-test +noinst_PROGRAMS = eval-test eval-shell datadir=$(prefix)/modules/eval nobase_data_DATA = *.xsd @@ -25,3 +25,5 @@ INCLUDES = -I. -I$(top_builddir)/kernel -I${LIBXML2_INCLUDE} eval_test_SOURCES = eval-test.cpp eval_test_LDADD = -lpthread -L${LIBXML2_LIB} -lxml2 +eval_shell_SOURCES = eval-shell.cpp +eval_shell_LDADD = -lpthread -L${LIBXML2_LIB} -lxml2 diff --git a/cpp/sca/modules/eval/eval-shell.cpp b/cpp/sca/modules/eval/eval-shell.cpp new file mode 100644 index 0000000000..46710b8354 --- /dev/null +++ b/cpp/sca/modules/eval/eval-shell.cpp @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/* $Rev$ $Date$ */ + +/** + * Script evaluator shell, used for interactive testing of scripts. + */ + +#include <assert.h> +#include <iostream> +#include <string> +#include <sstream> +#include "driver.hpp" + +int main() { + tuscany::evalDriverRun(std::cin, std::cout); + return 0; +} |