blob: 3daab87e4bf20cc2cb90672a7b5fd50d5bd23327 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
include $(top_srcdir)/build/build.environment.mk
DIST_SUBDIRS = \
Analyzer \
Performance
if ENABLE_TESTS
TEST_ASSEMBLIES = \
Hyena.dll \
Hyena.Gui.dll \
Migo.dll \
Mono.Media.dll \
Banshee.Core.dll \
Banshee.Gnome.dll \
Banshee.Services.dll \
Banshee.Dap.Mtp.dll
if ENABLE_GIO
TEST_ASSEMBLIES += Banshee.Gio.dll
endif
ENV_OPTIONS = TZ=America/Chicago LC_ALL=it_IT LANG=it_IT
RUNNER = for asm in $${TEST_ASSEMBLIES}; do echo -e "\033[1mRunning tests on $${asm}...\033[0m"; $(ENV_OPTIONS) nunit-console2 -nologo -noshadow $$asm; done
test:
@pushd $(DIR_BIN) &>/dev/null; \
export TEST_ASSEMBLIES="$(TEST_ASSEMBLIES)"; $(RUNNER); \
popd &>/dev/null;
%:
@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
MAINTAINERCLEANFILES = Makefile.in
|