Update Finnish translation
[banshee.git] / tests / Makefile.am
blob38f5bae461a82f654b4849b959b9136005211ac8
1 include $(top_srcdir)/build/build.environment.mk
3 DIST_SUBDIRS = \
4         Analyzer \
5         Performance
7 if ENABLE_TESTS
9 TEST_ASSEMBLIES = \
10         Hyena.dll \
11         Hyena.Gui.dll \
12         Hyena.Data.Sqlite.dll \
13         Lastfm.dll \
14         Migo.dll \
15         Mono.Media.dll \
16         Banshee.Core.dll \
17         Banshee.Gnome.dll \
18         Banshee.Services.dll \
19         Banshee.ThickClient.dll \
20         Banshee.Fixup.dll \
21         Banshee.AmazonMp3.exe \
22         Banshee.Dap.Mtp.dll
24 if ENABLE_GIO
25 TEST_ASSEMBLIES += Banshee.Gio.dll
26 endif
28 if ENABLE_UBUNTUONE
29 TEST_ASSEMBLIES += Banshee.UbuntuOneMusicStore.dll
30 endif
32 ENV_OPTIONS = TZ=America/Chicago LC_ALL=it_IT LANG=it_IT
33 MONO_OPTIONS = MONO_ENV_OPTIONS=--debug
34 NUNIT_CONSOLE = $$(echo $$(which nunit-console2 || which nunit-console))
35 RUNNER = \
36         if [[ "x$(NUNIT_CONSOLE)" = "x" ]]; then \
37                 echo "NUnit runner not found; please install nunit-console or nunit-console2"; \
38                 exit 1; \
39         fi; \
40         GLOBAL_EXIT_CODE=0; \
41         for asm in $${TEST_ASSEMBLIES}; do \
42                 echo -e "\033[1mRunning tests on $${asm}...\033[0m"; \
43                 $(ENV_OPTIONS) $(MONO_OPTIONS) $(NUNIT_CONSOLE) -nologo -noshadow $$asm \
44                         || GLOBAL_EXIT_CODE=$$?; \
45         done; \
46         if [[ $${GLOBAL_EXIT_CODE} -ne 0 ]]; then \
47                 echo "One or more tests failed"; \
48                 exit $${GLOBAL_EXIT_CODE}; \
49         fi
51 test:
52         @pushd $(DIR_BIN) &>/dev/null; \
53         TEST_ASSEMBLIES="$(TEST_ASSEMBLIES)"; $(RUNNER); \
54         popd &>/dev/null;
57         @pushd $(DIR_BIN) &>/dev/null; \
58         for i in *.dll; do \
59                 if [[ $$(echo "$$i" | tr "[:upper:]" "[:lower:]") = "$$(echo "$@" | tr "[:upper:]" "[:lower:]").dll" ]]; then \
60                         TEST_ASSEMBLIES="$$i"; $(RUNNER); \
61                 fi; \
62         done;
64 else
66 test:
67         echo "Please enable tests via --enable-tests at configuration"
68         exit 1
70 endif
72 MAINTAINERCLEANFILES = Makefile.in