#1041 Still struggling with the test suite
This commit is contained in:
parent
8cf3504093
commit
bb032fb6c7
@ -104,26 +104,6 @@ if( MSVC )
|
||||
|
||||
ADD_DEFINITIONS(-DPSAPI_VERSION=1) # to be compatible with <= WinVista (#905)
|
||||
|
||||
##
|
||||
# Set the output directory
|
||||
# x64/Win32
|
||||
#if( CMAKE_SIZEOF_VOID_P MATCHES 8 )
|
||||
# SET( P_DIR x64)
|
||||
#else()
|
||||
# set( P_DIR Win32 )
|
||||
#endif()
|
||||
|
||||
# DLL/static build
|
||||
#if( EXIV2_ENABLE_SHARED )
|
||||
# set( T_DIR Dynamic )
|
||||
#else()
|
||||
# set( T_DIR Static)
|
||||
#endif()
|
||||
|
||||
#set(B_DIR ${PROJECT_BINARY_DIR}/bin/${P_DIR}/${T_DIR})
|
||||
#set(CMAKE_CURRENT_BINARY_DIR ${B_DIR})
|
||||
#set(EXECUTABLE_OUTPUT_PATH ${B_DIR})
|
||||
#set(LIBRARY_OUTPUT_PATH ${B_DIR})
|
||||
endif( MSVC )
|
||||
|
||||
IF( EXIV2_ENABLE_XMP )
|
||||
@ -225,11 +205,5 @@ IF( MINGW OR UNIX OR APPLE)
|
||||
)
|
||||
ENDIF()
|
||||
|
||||
##
|
||||
# support for test suite TODO: fixup for MSVC and think a bit more before deploying this
|
||||
# ENABLE_TESTING()
|
||||
# INCLUDE(Dart)
|
||||
# ADD_TEST(tests bash -c "cd ${CMAKE_SOURCE_DIR}/test/ ; make EXIV2_BINDIR=${CMAKE_BINARY_DIR}/bin" )
|
||||
|
||||
# That's all Folks!
|
||||
##
|
||||
|
||||
@ -302,8 +302,6 @@ pushd "%EXIV_B%"
|
||||
popd
|
||||
goto error_end
|
||||
)
|
||||
if defined _SILENT_ copy "samples\%_CONFIG_%\"*.exe "%_INSTALL_%\bin" >nul
|
||||
if NOT defined _SILENT_ copy "samples\%_CONFIG_%\"*.exe "%_INSTALL_%\bin"
|
||||
popd
|
||||
|
||||
if defined _TEST_ (
|
||||
|
||||
@ -20,8 +20,9 @@ vs=2013
|
||||
##
|
||||
# determine location of the build and source directories
|
||||
exiv2=$(cygpath -aw .)
|
||||
build=$(cygpath -aw ..\\build)
|
||||
dist=$(cygpath -au ..\\build\\dist\\$vs\\$arch\\$mode\\$config\\bin)
|
||||
build=$(cygpath -aw .\\build)
|
||||
dist=$(cygpath -au .\\build\\dist\\$vs\\$arch\\$mode\\$config\\bin)
|
||||
di32=$(cygpath -au .\\build\\dist\\$vs\\Win32\\$mode\\$config\\bin)
|
||||
msvc=$(cygpath -aw ./contrib/cmake/msvc)
|
||||
|
||||
##
|
||||
@ -42,6 +43,9 @@ mkdir -p $dist
|
||||
##
|
||||
# test the build
|
||||
export EXIV2_BINDIR=$dist
|
||||
if [ ! -e $dist/exiv2.exe -a -e $di32/exiv2.exe ]; then
|
||||
export EXIV2_BINDIR=$di32
|
||||
fi
|
||||
pushd test
|
||||
for test in addmoddel.sh \
|
||||
bugfixes-test.sh \
|
||||
|
||||
@ -49,7 +49,7 @@ FOREACH(entry ${SAMPLES})
|
||||
ADD_EXECUTABLE( ${target} ${target}.cpp )
|
||||
ADD_TEST( ${target}_test ${target} )
|
||||
TARGET_LINK_LIBRARIES( ${target} ${PRIVATE_VAR} exiv2lib ${EXPAT_LIBRARIES})
|
||||
#INSTALL( TARGETS ${target} ${INSTALL_TARGET_STANDARD_ARGS} )
|
||||
INSTALL( TARGETS ${target} ${INSTALL_TARGET_STANDARD_ARGS} )
|
||||
ENDFOREACH(entry ${SAMPLES})
|
||||
|
||||
###################################
|
||||
|
||||
Loading…
Reference in New Issue
Block a user