Skip to content

Commit

Permalink
Add stubs for hooking in RAW tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenv committed Aug 9, 2010
1 parent b19bac3 commit 3dd2d46
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
@@ -0,0 +1,3 @@
[submodule "tests/raw-samples"]
path = tests/raw-samples
url = git://gitorious.org/taglib-sharp/raw-samples.git
9 changes: 9 additions & 0 deletions configure.ac
Expand Up @@ -122,6 +122,15 @@ else
AC_SUBST(NUNIT_CMD)
fi

AC_ARG_ENABLE(raw-tests, AC_HELP_STRING([--enable-raw-tests], [Enable RAW image files NUnit tests]),
enable_raw_tests=$enableval, enable_raw_tests="no")
if test "x$enable_raw_tests" = "xno"; then
AC_MSG_WARN([RAW image file tests disabled.])
AM_CONDITIONAL(ENABLE_RAW_TESTS, false)
else
AM_CONDITIONAL(ENABLE_RAW_TESTS, true)
fi

AC_CONFIG_FILES([
Makefile
taglib-sharp.pc
Expand Down
14 changes: 13 additions & 1 deletion tests/Makefile.am
Expand Up @@ -94,6 +94,8 @@ ASSEMBLY_CSFILES = \
fixtures/TagLib.Tests.TaggingFormats/Mpeg4Test.cs \
fixtures/TagLib.Tests.TaggingFormats/XiphTest.cs

RAW_CSFILES =


if HAVE_SHARPZIPLIB
SHARPZIPLIB_FLAGS = -r:ICSharpCode.SharpZipLib.dll -define:HAVE_SHARPZIPLIB
Expand All @@ -105,7 +107,17 @@ $(ASSEMBLY): $(ASSEMBLY_CSFILES)

TAGLIB_ASM = ../src/taglib-sharp.dll

build: $(ASSEMBLY) $(TAGLIB_ASM)
if ENABLE_RAW_TESTS
update: $(RAW_CSFILES)
@echo "Updating RAW repository (this may take a very long time)"
pushd $(top_srcdir); git submodule update --init; popd

ASSEMBLY_CSFILES += $(RAW_CSFILES)
else
update:
endif

build: update $(ASSEMBLY) $(TAGLIB_ASM)

if ENABLE_TESTS
test: build
Expand Down
1 change: 1 addition & 0 deletions tests/raw-samples
Submodule raw-samples added at 9f3bee

0 comments on commit 3dd2d46

Please sign in to comment.