You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by ea...@apache.org on 2007/02/03 18:00:39 UTC

svn commit: r503254 - in /incubator/uima/uimacpp/trunk/src/test: ./ Makefile.am fvt.bat fvt.sh fvtTestfile test.sln

Author: eae
Date: Sat Feb  3 09:00:38 2007
New Revision: 503254

URL: http://svn.apache.org/viewvc?view=rev&rev=503254
Log:
Initial entry

Added:
    incubator/uima/uimacpp/trunk/src/test/
    incubator/uima/uimacpp/trunk/src/test/Makefile.am   (with props)
    incubator/uima/uimacpp/trunk/src/test/fvt.bat
    incubator/uima/uimacpp/trunk/src/test/fvt.sh   (with props)
    incubator/uima/uimacpp/trunk/src/test/fvtTestfile
    incubator/uima/uimacpp/trunk/src/test/test.sln   (with props)

Added: incubator/uima/uimacpp/trunk/src/test/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/uima/uimacpp/trunk/src/test/Makefile.am?view=auto&rev=503254
==============================================================================
--- incubator/uima/uimacpp/trunk/src/test/Makefile.am (added)
+++ incubator/uima/uimacpp/trunk/src/test/Makefile.am Sat Feb  3 09:00:38 2007
@@ -0,0 +1,86 @@
+# -*- makefile -*-
+
+bin_PROGRAMS = $(TST_BIN)
+lib_LTLIBRARIES = $(TST_LIB)
+
+TST_LIB=libtoknz.la libdump.la libSofaStreamHandlerFile.la libSimpleTextSegmenter.la libTextSegmentConsumer.la
+
+TST_BIN=test_cas test_engine test_typepriority test_language  \
+ test_iterators test_casserializer test_sofa test_primitivetypes test_xcasdeserialization
+
+test_tgt: $(TST_BIN) $(TST_LIB)
+
+clean:
+	rm -f $(TST_BIN) $(test_engine_OBJECTS) $(test_typepriority_OBJECTS) $(test_sofa_OBJECTS) $(test_language_OBJECTS) $(test_cas_OBJECTS)  $(test_iterators_OBJECTS) $(test_casserializer_OBJECTS) $(test_primitivetypes_OBJECTS) $(test_xcasdeserialization_OBJECTS)
+	rm -f $(TST_LIB) $(libtoknz_la_OBJECTS) $(libdump_la_OBJECTS) $(libSofaStreamHandlerFile_la_OBJECTS) $(libSimpleTextSegmenter_la_OBJECTS) $(libTextSegmentConsumer_la_OBJECTS)
+
+INCLUDES  = -Isrc
+INCLUDES += -I../cas
+INCLUDES += -I../framework
+INCLUDES += $(UIMA_XERCES_INCLUDE)
+INCLUDES += $(UIMA_APR_INCLUDE)
+INCLUDES += $(UIMA_ICU_INCLUDE)
+INCLUDES += $(UIMACPP_HOME_INCLUDE)
+
+if DEBUG_TEST
+AM_CPPFLAGS = -g -DDEBUG
+else
+AM_CPPFLAGS = -O3 -DNDEBUG -DTRACEOFF
+endif
+AM_CPPFLAGS += -D_GNU_SOURCE -DUIMA_SUPPRESS_TIMING
+
+# Set default for all target_LDADD values
+LDADD = $(UIMA_LIB) $(UIMA_XERCES_LIB) $(UIMA_APR_LIB) $(UIMA_ICU_LIB) $(UIMACPP_HOME_LIB) -ldl
+
+# Set default for all target_LIBADD values
+LIBADD = $(UIMA_LIB) $(UIMA_XERCES_LIB) $(UIMA_APR_LIB) $(UIMA_ICU_LIB) $(UIMACPP_HOME_LIB) -ldl
+
+# Common routines formerly in library
+# src/cmdline_driver.cpp src/doc_buffer.cpp src/htmlparser.cpp src/htmlparser_tools.cpp src/parse_handlers.cpp src/parser_config.cpp src/tt_types.cpp src/xmlparse_handlers.cpp
+
+test_casserializer_SOURCES  = src/test_casserializer.cpp
+
+test_engine_SOURCES  = src/test_engine.cpp
+test_engine_SOURCES += src/conui.cpp
+test_engine_SOURCES += src/doc_buffer.cpp
+
+test_cas_SOURCES  = src/test_cas.cpp
+test_cas_SOURCES += src/tt_types.cpp
+
+test_iterators_SOURCES  = src/test_iterators.cpp
+test_iterators_SOURCES += src/tt_types.cpp
+
+test_language_SOURCES = src/test_language.cpp
+
+test_typepriority_SOURCES  = src/test_typepriority.cpp
+test_typepriority_SOURCES += src/tt_types.cpp
+
+test_sofa_SOURCES = src/test_sofa.cpp
+
+test_primitivetypes_SOURCES = src/test_primitivetypes.cpp
+
+test_xcasdeserialization_SOURCES = src/test_xcasdeserialization.cpp
+
+# Plugin libraries
+#
+#   Since tt_types is also used in the exes we need to pretend that the libraries 
+#   that use it have diffeerent compile flags so thy'll get different obj names.
+#   Otherwise we get: object `tt_types.$(OBJEXT)' created both with libtool and without
+#
+libtoknz_la_SOURCES  = src/annotator_tok.cpp
+libtoknz_la_SOURCES += src/ss_tokenizer.cpp
+libtoknz_la_SOURCES += src/tt_types.cpp
+libtoknz_la_LIBADD = $(LIBADD)
+libtoknz_la_CXXFLAGS = $(AM_CXXFLAGS)
+
+libdump_la_SOURCES = src/annotator_dump.cpp
+libdump_la_LIBADD = $(LIBADD)
+
+libSofaStreamHandlerFile_la_SOURCES = src/SofaStreamHandlerFile.cpp
+libSofaStreamHandlerFile_la_LIBADD = $(LIBADD)
+
+libSimpleTextSegmenter_la_SOURCES = src/SimpleTextSegmenter.cpp
+libSimpleTextSegmenter_la_LIBADD = $(LIBADD)
+
+libTextSegmentConsumer_la_SOURCES = src/TextSegmentConsumer.cpp
+libTextSegmentConsumer_la_LIBADD = $(LIBADD)

Propchange: incubator/uima/uimacpp/trunk/src/test/Makefile.am
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/uima/uimacpp/trunk/src/test/fvt.bat
URL: http://svn.apache.org/viewvc/incubator/uima/uimacpp/trunk/src/test/fvt.bat?view=auto&rev=503254
==============================================================================
--- incubator/uima/uimacpp/trunk/src/test/fvt.bat (added)
+++ incubator/uima/uimacpp/trunk/src/test/fvt.bat Sat Feb  3 09:00:38 2007
@@ -0,0 +1,32 @@
+@echo off
+setlocal
+REM Must be run from the uimacpp/src/test directory
+
+if "%UIMACPP_HOME%"=="" (
+  set UIMACPP_HOME=..\..\install
+)
+
+REM default location of descriptors 
+if "%UIMACPP_DATAPATH%"=="" set UIMACPP_DATAPATH=.\data
+
+REM add location of apr, icu, xerces and uimacpp binaries to the path 
+set PATH=%UIMACPP_HOME%\bin;%APR_HOME%\Release;%ICU_HOME%\bin;%XERCES_HOME%\bin;%PATH%
+
+set RM=\windows\system32\cmd /C del
+
+if "%~2"=="debug" (
+  set DEBUG_FVT="devenv /debugexe "
+)
+if "%UIMACPP_STREAMHANDLERS%"=="" set UIMACPP_STREAMHANDLERS=file:SofaStreamHandlerFile
+
+set UIMACPPTEST_JNI=call "%UIMA_HOME%\bin\runAE" data\descriptors\javaaggregate.xml data\segmenterinput
+
+if "%UIMA_HOME%" == "" (
+	set UIMACPPTEST_JNI=@echo "UIMA_HOME is not set. The JNI test was not run."
+)
+
+nmake -f fvtTestfile %1
+
+goto end
+
+:end

Added: incubator/uima/uimacpp/trunk/src/test/fvt.sh
URL: http://svn.apache.org/viewvc/incubator/uima/uimacpp/trunk/src/test/fvt.sh?view=auto&rev=503254
==============================================================================
--- incubator/uima/uimacpp/trunk/src/test/fvt.sh (added)
+++ incubator/uima/uimacpp/trunk/src/test/fvt.sh Sat Feb  3 09:00:38 2007
@@ -0,0 +1,49 @@
+#
+if [ ! $UIMACPP_HOME ]
+then
+   export UIMACPP_HOME=../..
+fi
+
+# If appears to be the "install" place use its lib & bin (stripped!)
+# If appears to be the build place use the unstripped programs
+
+if [ -d $UIMACPP_HOME/src ] 
+then
+ Testlib=$UIMACPP_HOME/src/test/.libs:$UIMACPP_HOME/src/framework/.libs
+ Testbin=$UIMACPP_HOME/src/test/.libs
+else 
+ Testlib=$UIMACPP_HOME/lib
+ Testbin=$UIMACPP_HOME/bin
+fi
+
+export LD_LIBRARY_PATH=$Testlib:$APR_HOME/lib:$ICU_HOME/lib:$XERCES_HOME/lib
+export PATH=$Testbin:$PATH
+
+export UIMACPP_DATAPATH=./data
+
+if [ ! $TEMP ]
+then
+  export TEMP=/tmp/$USER
+  mkdir -p $TEMP
+fi
+
+if [ "$2" = "debug" ]; then
+  export DEBUG_FVT="gdb $Testbin/"
+fi
+if [ ! $UIMACPP_STREAMHANDLERS ]
+then
+   export UIMACPP_STREAMHANDLERS=file:libSofaStreamHandlerFile
+fi
+
+export RM=rm
+export UIMACPPTEST_JNI="$UIMA_HOME/bin/runAE.sh data/descriptors/javaaggregate.xml data/segmenterinput"
+if [ ! $UIMA_HOME ] 
+then
+  export UIMACPPTEST_JNI="@echo UIMA_HOME is not set. JNI test was not run."
+fi
+
+make -f fvtTestfile $1
+
+
+
+

Propchange: incubator/uima/uimacpp/trunk/src/test/fvt.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/uima/uimacpp/trunk/src/test/fvt.sh
------------------------------------------------------------------------------
    svn:executable = 

Added: incubator/uima/uimacpp/trunk/src/test/fvtTestfile
URL: http://svn.apache.org/viewvc/incubator/uima/uimacpp/trunk/src/test/fvtTestfile?view=auto&rev=503254
==============================================================================
--- incubator/uima/uimacpp/trunk/src/test/fvtTestfile (added)
+++ incubator/uima/uimacpp/trunk/src/test/fvtTestfile Sat Feb  3 09:00:38 2007
@@ -0,0 +1,36 @@
+
+all:	cas sofa engine typepriority language iterators casserializer primitivetypes xcasdeserialization jni
+
+cas:
+	$(DEBUG_FVT)test_cas
+
+sofa:
+	$(DEBUG_FVT)test_sofa
+	$(RM) temp.xcas
+
+engine:	
+	$(DEBUG_FVT)test_engine 
+
+typepriority:
+	$(DEBUG_FVT)test_typepriority
+	$(RM) ANDump.xml
+
+language:
+	$(DEBUG_FVT)test_language
+
+iterators:	
+	$(DEBUG_FVT)test_iterators
+
+casserializer:
+	$(DEBUG_FVT)test_casserializer
+
+primitivetypes:
+	$(DEBUG_FVT)test_primitivetypes
+	$(RM) testprimitivetypes.xcas
+
+xcasdeserialization:
+	$(DEBUG_FVT)test_xcasdeserialization
+	$(RM) temp.xcas
+
+jni:
+	$(UIMACPPTEST_JNI)
\ No newline at end of file

Added: incubator/uima/uimacpp/trunk/src/test/test.sln
URL: http://svn.apache.org/viewvc/incubator/uima/uimacpp/trunk/src/test/test.sln?view=auto&rev=503254
==============================================================================
--- incubator/uima/uimacpp/trunk/src/test/test.sln (added)
+++ incubator/uima/uimacpp/trunk/src/test/test.sln Sat Feb  3 09:00:38 2007
@@ -0,0 +1,125 @@
+Microsoft Visual Studio Solution File, Format Version 8.00
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "plugin_annotator_dump", "src\plugin_annotator_dump.vcproj", "{0BC37546-5E6B-4383-9984-EF348B9FB966}"
+	ProjectSection(ProjectDependencies) = postProject
+	EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "plugin_tokenizer", "src\plugin_tokenizer.vcproj", "{05B599CC-FBF4-4D21-8DAF-4DCAE35A116A}"
+	ProjectSection(ProjectDependencies) = postProject
+	EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_casserializer", "src\test_casserializer.vcproj", "{C1CC67C7-6514-4C9A-88B6-02678AA4DD5B}"
+	ProjectSection(ProjectDependencies) = postProject
+	EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_engine", "src\test_engine.vcproj", "{EC9D70CD-3EAB-45F7-B779-5D82370BFF5B}"
+	ProjectSection(ProjectDependencies) = postProject
+	EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_language", "src\test_language.vcproj", "{562C331B-2F3C-4F39-8A7C-ECD9611D1E25}"
+	ProjectSection(ProjectDependencies) = postProject
+	EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_typepriority", "src\test_typepriority.vcproj", "{2A4A561A-F304-4280-9238-DD2C1C82F8AE}"
+	ProjectSection(ProjectDependencies) = postProject
+	EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_iterators", "src\test_iterators.vcproj", "{02C73C58-59FF-494D-95C6-11CF049217BD}"
+	ProjectSection(ProjectDependencies) = postProject
+	EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_cas", "src\test_cas.vcproj", "{87F00969-FF24-4446-A128-2F3EA5D00DE1}"
+	ProjectSection(ProjectDependencies) = postProject
+	EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_sofa", "src\test_sofa.vcproj", "{2A4A561A-F304-4280-9238-DD2C1C82F8AE}"
+	ProjectSection(ProjectDependencies) = postProject
+	EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_xcasdeserialization", "src\test_xcasdeserialization.vcproj", "{2A4A561A-F304-4280-9238-DD2C1C82F8AE}"
+	ProjectSection(ProjectDependencies) = postProject
+	EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SofaStreamHandlerFile", "src\SofaStreamHandlerFile.vcproj", "{0BC37546-5E6B-4383-9984-EF348B9FB966}"
+	ProjectSection(ProjectDependencies) = postProject
+	EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_primitivetypes", "src\test_primitivetypes.vcproj", "{2A4A561A-F304-4280-9238-DD2C1C82F8AE}"
+	ProjectSection(ProjectDependencies) = postProject
+	EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SimpleTextSegmenter", "src\SimpleTextSegmenter.vcproj", "{0BC37546-5E6B-4383-9984-EF348B9FB966}"
+	ProjectSection(ProjectDependencies) = postProject
+	EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TextSegmentConsumer", "src\TextSegmentConsumer.vcproj", "{0BC37546-5E6B-4383-9984-EF348B9FB966}"
+	ProjectSection(ProjectDependencies) = postProject
+	EndProjectSection
+EndProject
+Global
+	GlobalSection(SolutionConfiguration) = preSolution
+		Debug = Debug
+		Release = Release
+	EndGlobalSection
+	GlobalSection(ProjectConfiguration) = postSolution
+		{0BC37546-5E6B-4383-9984-EF348B9FB966}.Debug.ActiveCfg = Debug|Win32
+		{0BC37546-5E6B-4383-9984-EF348B9FB966}.Debug.Build.0 = Debug|Win32
+		{0BC37546-5E6B-4383-9984-EF348B9FB966}.Release.ActiveCfg = Release|Win32
+		{0BC37546-5E6B-4383-9984-EF348B9FB966}.Release.Build.0 = Release|Win32
+		{05B599CC-FBF4-4D21-8DAF-4DCAE35A116A}.Debug.ActiveCfg = Debug|Win32
+		{05B599CC-FBF4-4D21-8DAF-4DCAE35A116A}.Debug.Build.0 = Debug|Win32
+		{05B599CC-FBF4-4D21-8DAF-4DCAE35A116A}.Release.ActiveCfg = Release|Win32
+		{05B599CC-FBF4-4D21-8DAF-4DCAE35A116A}.Release.Build.0 = Release|Win32
+		{C1CC67C7-6514-4C9A-88B6-02678AA4DD5B}.Debug.ActiveCfg = Debug|Win32
+		{C1CC67C7-6514-4C9A-88B6-02678AA4DD5B}.Debug.Build.0 = Debug|Win32
+		{C1CC67C7-6514-4C9A-88B6-02678AA4DD5B}.Release.ActiveCfg = Release|Win32
+		{C1CC67C7-6514-4C9A-88B6-02678AA4DD5B}.Release.Build.0 = Release|Win32
+		{EC9D70CD-3EAB-45F7-B779-5D82370BFF5B}.Debug.ActiveCfg = Debug|Win32
+		{EC9D70CD-3EAB-45F7-B779-5D82370BFF5B}.Debug.Build.0 = Debug|Win32
+		{EC9D70CD-3EAB-45F7-B779-5D82370BFF5B}.Release.ActiveCfg = Release|Win32
+		{EC9D70CD-3EAB-45F7-B779-5D82370BFF5B}.Release.Build.0 = Release|Win32
+		{562C331B-2F3C-4F39-8A7C-ECD9611D1E25}.Debug.ActiveCfg = Debug|Win32
+		{562C331B-2F3C-4F39-8A7C-ECD9611D1E25}.Debug.Build.0 = Debug|Win32
+		{562C331B-2F3C-4F39-8A7C-ECD9611D1E25}.Release.ActiveCfg = Release|Win32
+		{562C331B-2F3C-4F39-8A7C-ECD9611D1E25}.Release.Build.0 = Release|Win32
+		{2A4A561A-F304-4280-9238-DD2C1C82F8AE}.Debug.ActiveCfg = Debug|Win32
+		{2A4A561A-F304-4280-9238-DD2C1C82F8AE}.Debug.Build.0 = Debug|Win32
+		{2A4A561A-F304-4280-9238-DD2C1C82F8AE}.Release.ActiveCfg = Release|Win32
+		{2A4A561A-F304-4280-9238-DD2C1C82F8AE}.Release.Build.0 = Release|Win32
+		{02C73C58-59FF-494D-95C6-11CF049217BD}.Debug.ActiveCfg = Debug|Win32
+		{02C73C58-59FF-494D-95C6-11CF049217BD}.Debug.Build.0 = Debug|Win32
+		{02C73C58-59FF-494D-95C6-11CF049217BD}.Release.ActiveCfg = Release|Win32
+		{02C73C58-59FF-494D-95C6-11CF049217BD}.Release.Build.0 = Release|Win32
+		{87F00969-FF24-4446-A128-2F3EA5D00DE1}.Debug.ActiveCfg = Debug|Win32
+		{87F00969-FF24-4446-A128-2F3EA5D00DE1}.Debug.Build.0 = Debug|Win32
+		{87F00969-FF24-4446-A128-2F3EA5D00DE1}.Release.ActiveCfg = Release|Win32
+		{87F00969-FF24-4446-A128-2F3EA5D00DE1}.Release.Build.0 = Release|Win32
+		{2A4A561A-F304-4280-9238-DD2C1C82F8AE}.Debug.ActiveCfg = Debug|Win32
+		{2A4A561A-F304-4280-9238-DD2C1C82F8AE}.Debug.Build.0 = Debug|Win32
+		{2A4A561A-F304-4280-9238-DD2C1C82F8AE}.Release.ActiveCfg = Release|Win32
+		{2A4A561A-F304-4280-9238-DD2C1C82F8AE}.Release.Build.0 = Release|Win32
+		{2A4A561A-F304-4280-9238-DD2C1C82F8AE}.Debug.ActiveCfg = Debug|Win32
+		{2A4A561A-F304-4280-9238-DD2C1C82F8AE}.Debug.Build.0 = Debug|Win32
+		{2A4A561A-F304-4280-9238-DD2C1C82F8AE}.Release.ActiveCfg = Release|Win32
+		{2A4A561A-F304-4280-9238-DD2C1C82F8AE}.Release.Build.0 = Release|Win32
+		{0BC37546-5E6B-4383-9984-EF348B9FB966}.Debug.ActiveCfg = Debug|Win32
+		{0BC37546-5E6B-4383-9984-EF348B9FB966}.Debug.Build.0 = Debug|Win32
+		{0BC37546-5E6B-4383-9984-EF348B9FB966}.Release.ActiveCfg = Release|Win32
+		{0BC37546-5E6B-4383-9984-EF348B9FB966}.Release.Build.0 = Release|Win32
+		{2A4A561A-F304-4280-9238-DD2C1C82F8AE}.Debug.ActiveCfg = Debug|Win32
+		{2A4A561A-F304-4280-9238-DD2C1C82F8AE}.Debug.Build.0 = Debug|Win32
+		{2A4A561A-F304-4280-9238-DD2C1C82F8AE}.Release.ActiveCfg = Release|Win32
+		{2A4A561A-F304-4280-9238-DD2C1C82F8AE}.Release.Build.0 = Release|Win32
+		{0BC37546-5E6B-4383-9984-EF348B9FB966}.Debug.ActiveCfg = Debug|Win32
+		{0BC37546-5E6B-4383-9984-EF348B9FB966}.Debug.Build.0 = Debug|Win32
+		{0BC37546-5E6B-4383-9984-EF348B9FB966}.Release.ActiveCfg = Release|Win32
+		{0BC37546-5E6B-4383-9984-EF348B9FB966}.Release.Build.0 = Release|Win32
+		{0BC37546-5E6B-4383-9984-EF348B9FB966}.Debug.ActiveCfg = Debug|Win32
+		{0BC37546-5E6B-4383-9984-EF348B9FB966}.Debug.Build.0 = Debug|Win32
+		{0BC37546-5E6B-4383-9984-EF348B9FB966}.Release.ActiveCfg = Release|Win32
+		{0BC37546-5E6B-4383-9984-EF348B9FB966}.Release.Build.0 = Release|Win32
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+	EndGlobalSection
+	GlobalSection(ExtensibilityAddIns) = postSolution
+	EndGlobalSection
+EndGlobal

Propchange: incubator/uima/uimacpp/trunk/src/test/test.sln
------------------------------------------------------------------------------
    svn:eol-style = CRLF