Fix: #858. Download video data on demand. More discussion in issue report.

v0.27.3
Robin Mills 13 years ago
parent 004948679f
commit 10f21d249f

@ -185,10 +185,12 @@ ENDIF()
## ##
# tests # tests
ADD_CUSTOM_TARGET(tests COMMAND make test "EXIV2_BINDIR=${CMAKE_BINARY_DIR}/bin" WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/test/" ) ADD_CUSTOM_TARGET(tests COMMAND make test "EXIV2_BINDIR=${CMAKE_BINARY_DIR}/bin" WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/test/" )
ADD_CUSTOM_TARGET(teste COMMAND make teste "EXIV2_BINDIR=${CMAKE_BINARY_DIR}/bin" WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/test/" )
ADD_CUSTOM_TARGET(testv COMMAND make testv "EXIV2_BINDIR=${CMAKE_BINARY_DIR}/bin" WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/test/" )
## ##
# support for test suite TODO: fixup for MSVC and think a bit more about this # support for test suite TODO: fixup for MSVC and think a bit more before deploying this
# ENABLE_TESTING() # ENABLE_TESTING()
# INCLUDE(Dart) # INCLUDE(Dart)
# ADD_TEST(tests bash -c "cd ${CMAKE_SOURCE_DIR}/test/ ; make EXIV2_BINDIR=${CMAKE_BINARY_DIR}/bin" ) # ADD_TEST(tests bash -c "cd ${CMAKE_SOURCE_DIR}/test/ ; make EXIV2_BINDIR=${CMAKE_BINARY_DIR}/bin" )

@ -54,7 +54,7 @@ ENABLE_XMP = @ENABLE_XMP@
.PHONY: all doc config samples xmpsdk \ .PHONY: all doc config samples xmpsdk \
mostlyclean clean distclean maintainer-clean \ mostlyclean clean distclean maintainer-clean \
install uninstall tests install uninstall tests teste testv
all install: config/config.mk xmpsdk all install: config/config.mk xmpsdk
cd src && $(MAKE) $(MAKECMDGOALS) cd src && $(MAKE) $(MAKECMDGOALS)
@ -73,6 +73,12 @@ samples: config/config.mk
tests: tests:
cd test && $(MAKE) test cd test && $(MAKE) test
teste:
cd test && $(MAKE) teste
testv:
cd test && $(MAKE) testv
config: config:
cd config && $(MAKE) -f config.make $(MAKECMDGOALS) cd config && $(MAKE) -f config.make $(MAKECMDGOALS)

@ -54,12 +54,19 @@ SHELL = /bin/sh
# ****************************************************************************** # ******************************************************************************
# Targets # Targets
.PHONY: all test clean distclean maintainer-clean .PHONY: all test testv teste clean distclean maintainer-clean
##
# to save download time for simple build/test, we download video and eps data on demand
# TODO: remove data/eps from depot for the 0.24 release.
# If we remove it now, it'll break the test instructions on the web:
# http://www.exiv2.org/download.html
SVN = svn://dev.exiv2.org/svn/testdata/trunk
##
# Add test drivers to this list # Add test drivers to this list
TESTS = addmoddel.sh \ TESTS = addmoddel.sh \
bugfixes-test.sh \ bugfixes-test.sh \
eps-test.sh \
exifdata-test.sh \ exifdata-test.sh \
exiv2-test.sh \ exiv2-test.sh \
imagetest.sh \ imagetest.sh \
@ -73,8 +80,9 @@ TESTS = addmoddel.sh \
write-test.sh \ write-test.sh \
write2-test.sh \ write2-test.sh \
xmpparser-test.sh \ xmpparser-test.sh \
conversions.sh \ conversions.sh
video-test.sh TESTV = video-test.sh
TESTE = eps-test.sh
test: test:
@list='$(TESTS)'; for p in $$list; do \ @list='$(TESTS)'; for p in $$list; do \
@ -82,8 +90,27 @@ test:
./$$p; \ ./$$p; \
done done
testv:
@for t in /video ; do \
if [ ! -e data/$$t ]; then \
echo svn export '$(SVN)'$$t data$$t ; \
svn export '$(SVN)'$$t data$$t ; \
fi ; done
@list='$(TESTV)'; for p in $$list; do \
echo Running $$p ...; \
./$$p; \
done
##
# TODO: download eps data on demand for 0.24 (similar to testv)
teste:
@list='$(TESTE)'; for p in $$list; do \
echo Running $$p ...; \
./$$p; \
done
clean: clean:
rm -rf $(top_srcdir)/test/tmp/* rm -rf $(top_srcdir)/test/tmp/* data/video data/eps
distclean: clean distclean: clean
$(RM) *~ *.bak *# $(RM) *~ *.bak *#
@ -91,3 +118,6 @@ distclean: clean
# This command is intended for maintainers to use; it deletes files # This command is intended for maintainers to use; it deletes files
# that may need special tools to rebuild. # that may need special tools to rebuild.
maintainer-clean: distclean maintainer-clean: distclean
# That's all Folks!
##
Loading…
Cancel
Save