summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAaron Bockover <abock@src.gnome.org>2008-05-22 19:57:21 +0000
committerAaron Bockover <abock@src.gnome.org>2008-05-22 19:57:21 +0000
commit4d421b0f184f56f4d4b8c101210a627d25d60641 (patch)
tree16105c7463693a525af2dba15984a5b2a29d7c74 /tests
parentc6e579147e655be7b71ec38b081924bdd2646bd3 (diff)
Nicer driver UI
svn path=/trunk/banshee/; revision=3964
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am39
1 files changed, 20 insertions, 19 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index a08b04ba4..47b0fac8b 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,29 +1,30 @@
include $(top_srcdir)/build/build.environment.mk
-MCS_FLAGS = -debug
-NUNIT_FLAGS = @MONO_NUNIT_LIBS@
+if ENABLE_TESTS
-NUNIT_TESTER_NAME = ConsoleUi
-NUNIT_TESTER = $(DIR_BIN)/$(NUNIT_TESTER_NAME).exe
-NUNIT_TESTER_CSFILES = \
- AssemblyInfo.cs \
- ConsoleUi.cs
+TEST_ASSEMBLIES = \
+ Hyena.dll \
+ Migo.dll \
+ Banshee.Core.dll \
+ Banshee.Services.dll
-REF_BANSHEE_NUNIT = $(LINK_HYENA_DEPS) $(LINK_BANSHEE_CORE_DEPS) $(LINK_BANSHEE_THICKCLIENT_DEPS) $(LINK_NEREID_DEPS) $(ASSEMBLY_CSFILES) $(REF_BACKEND_UNIX) $(LINK_MIGO_DEPS)
-$(NUNIT_TESTER): $(NUNIT_TESTER_CSFILES)
- $(MCS) $(MCS_FLAGS) -out:$@ $(NUNIT_FLAGS) $(NUNIT_TESTER_CSFILES)
+RUNNER = for asm in $${TEST_ASSEMBLIES}; do echo -e "\033[1mRunning tests on $${asm}...\033[0m"; TZ=America/Chicago LC_ALL=it_IT LANG=it_IT nunit-console2 /nologo $$asm; done
-if ENABLE_TESTS
-test: $(NUNIT_TESTER)
- @pushd $(top_builddir)/bin; \
- TZ=America/Chicago LC_ALL=it_IT LANG=it_IT MONO_PATH="$(DIR_BIN)" mono --debug $(NUNIT_TESTER) $(top_builddir)/bin/*.dll
- popd;
-endif
+test:
+ @pushd $(DIR_BIN) &>/dev/null; \
+ export TEST_ASSEMBLIES="$(TEST_ASSEMBLIES)"; $(RUNNER); \
+ popd &>/dev/null;
-EXTRA_DIST = $(ASSEMBLY_CSFILES)
+%:
+ @pushd $(DIR_BIN) &>/dev/null; \
+ for i in *.dll; do \
+ if [[ $$(echo "$$i" | tr "[:upper:]" "[:lower:]") = "$$(echo "$@" | tr "[:upper:]" "[:lower:]").dll" ]]; then \
+ export TEST_ASSEMBLIES="$$i"; $(RUNNER); \
+ fi; \
+ done;
+
+endif
-CLEANFILES = $(ASSEMBLY) $(NUNIT_TESTER) $(DIR_BIN)/TestResult.xml
-DISTCLEANFILES = *.mdb *.dll *.exe
MAINTAINERCLEANFILES = Makefile.in