diff --git a/Arabica.sln b/Arabica.sln index 5f5984dd..0432796f 100644 --- a/Arabica.sln +++ b/Arabica.sln @@ -48,6 +48,10 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_xpath_silly", "test\XP ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_xpath_wide", "test\XPath_wide\xpathic_wide.vcproj", "{B3C75B3A-BB0A-4B23-87F9-FB9CD98FF8CE}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection +EndProject Global GlobalSection(SolutionConfiguration) = preSolution Debug = Debug @@ -98,6 +102,10 @@ Global {B3C75B3A-BB0A-4B23-87F9-FB9CD98FF8CE}.Debug.Build.0 = Debug|Win32 {B3C75B3A-BB0A-4B23-87F9-FB9CD98FF8CE}.Release.ActiveCfg = Release|Win32 {B3C75B3A-BB0A-4B23-87F9-FB9CD98FF8CE}.Release.Build.0 = Release|Win32 + {B3C75B3A-BB0A-4B23-87F9-FB9CD98FF8CE}.Debug.ActiveCfg = Debug|Win32 + {B3C75B3A-BB0A-4B23-87F9-FB9CD98FF8CE}.Debug.Build.0 = Debug|Win32 + {B3C75B3A-BB0A-4B23-87F9-FB9CD98FF8CE}.Release.ActiveCfg = Release|Win32 + {B3C75B3A-BB0A-4B23-87F9-FB9CD98FF8CE}.Release.Build.0 = Release|Win32 EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution EndGlobalSection diff --git a/test/XPath_wide/.cvsignore b/test/XPath_wide/.cvsignore new file mode 100644 index 00000000..d03144cd --- /dev/null +++ b/test/XPath_wide/.cvsignore @@ -0,0 +1,6 @@ +Debug +*.ncb +*.suo +xml_grammar.hpp +Release +xpath_test diff --git a/test/XPath_wide/Makefile b/test/XPath_wide/Makefile new file mode 100644 index 00000000..169ce95f --- /dev/null +++ b/test/XPath_wide/Makefile @@ -0,0 +1,49 @@ +-include ../../Makefile.header + +###################################### +# ADDITIONAL BUILD FLAGS +INCS_DIRS += -I../.. +LIBS_DIRS += -L../../bin + +STATIC_LIBS += +DYNAMIC_LIBS += -lArabica + +###################################### +# SOURCE FILES +XPATH_SRCS = main.cpp arithmetic_test.cpp axis_enumerator_test.cpp execute_test.cpp logical_test.cpp node_test_test.cpp parse_test.cpp relational_test.cpp step_test.cpp value_test.cpp +XPATH_HDRS = $(patsubst %.cpp,%.h,$(XPATH_SRCS)) +XPATH_OBJS = $(patsubst %.cpp,%.o,$(XPATH_SRCS)) + +CPPUNIT_DIR = ../CppUnit + +CPPUNITFW_FILES = TestCase.cpp TestFailure.cpp TestResult.cpp TestSuite.cpp +CPPUNITFW_SRCS = $(patsubst Test%,$(CPPUNIT_DIR)/framework/Test%,$(CPPUNITFW_FILES)) +CPPUNITFW_OBJS = $(patsubst %.cpp,%.o,$(CPPUNITFW_SRCS)) + +CPPUNITUI_FILES = TextTestResult.cpp +CPPUNITUI_SRCS = $(patsubst Text%,$(CPPUNIT_DIR)/textui/Text%,$(CPPUNITUI_FILES)) +CPPUNITUI_OBJS = $(patsubst %.cpp,%.o,$(CPPUNITUI_SRCS)) + +###################################### +# High level rules +all : xpath_test + +xpath_test : $(XPATH_OBJS) $(CPPUNITFW_OBJS) $(CPPUNITUI_OBJS) + $(LD) $(LDFLAGS) -o $@ $(XPATH_OBJS) $(CPPUNITFW_OBJS) $(CPPUNITUI_OBJS) $(LIBS_DIRS) $(STATIC_LIBS) $(DYNAMIC_LIBS) + $(COPY) xpath_test$(EXESUFFIX) ../../bin + +###################### +# Compile rules +#### +-include ../../Makefile.rules + +###################### +# Cleaning up +clean : + $(REMOVE) $(CPPUNITUI_OBJS) \ + $(CPPUNITFW_OBJS) \ + $(XPATH_OBJS) \ + xpath_test$(EXESUFFIX) \ + ../../bin/xpath_test$(EXESUFFIX) + +# End of File diff --git a/test/XPath_wide/main.cpp b/test/XPath_wide/main.cpp new file mode 100644 index 00000000..db91f97d --- /dev/null +++ b/test/XPath_wide/main.cpp @@ -0,0 +1,42 @@ + +#ifdef _MSC_VER +#pragma warning(disable:4224 4267) +#endif + +#include "../CppUnit/TestRunner.hpp" +#include "../CppUnit/textui/TextTestResult.h" +#include "../CppUnit/framework/Test.h" +#include "../CppUnit/framework/TestSuite.h" + +#include "../XPath/value_test.hpp" +#include "../XPath/arithmetic_test.hpp" +#include "../XPath/relational_test.hpp" +#include "../XPath/logical_test.hpp" +#include "../XPath/axis_enumerator_test.hpp" +#include "../XPath/node_test_test.hpp" +#include "../XPath/step_test.hpp" +#include "../XPath/parse_test.hpp" +#include "../XPath/execute_test.hpp" + +#include + +///////////////////////////////////////// +int main(int argc, char** argv) +{ + std::cout << "Hello" << std::endl; + + TestRunner runner; + + runner.addTest("ValueTest", ValueTest_suite >()); + runner.addTest("ArithmeticTest", ArithmeticTest_suite >()); + runner.addTest("RelationalTest", RelationalTest_suite >()); + runner.addTest("LogicalTest", LogicalTest_suite >()); + runner.addTest("AxisEnumeratorTest", AxisEnumeratorTest_suite >()); + runner.addTest("NodeTestTest", NodeTestTest_suite >()); + runner.addTest("StepTest", StepTest_suite >()); + runner.addTest("ParseTest", ParseTest_suite >()); + runner.addTest("ExecuteTest", ExecuteTest_suite >()); + + runner.run(argc, argv); +} // main + diff --git a/test/XPath_wide/xpathic_wide.vcproj b/test/XPath_wide/xpathic_wide.vcproj new file mode 100644 index 00000000..46e9cd39 --- /dev/null +++ b/test/XPath_wide/xpathic_wide.vcproj @@ -0,0 +1,231 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +