[banshee] build: make 'check' target depend on 'test' target
- From: Andrés Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] build: make 'check' target depend on 'test' target
- Date: Thu, 17 Oct 2013 15:28:00 +0000 (UTC)
commit c5ce3c6c41fe6f4bed9dc9ce100b320e4f094098
Author: Andrés G. Aragoneses <knocte gmail com>
Date: Thu Oct 17 17:22:49 2013 +0200
build: make 'check' target depend on 'test' target
We also add a 'test' target when --enable-tests flag has *not* been
used, so the user knows the reason of the failure.
The target 'check' is run by the target 'distcheck' (the one we use
to generate the tarball, when doing a release) so it is important
that we don't miss the tests.
Makefile.am | 2 ++
tests/Makefile.am | 6 ++++++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index db208fa..ace1e59 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -111,6 +111,8 @@ csharp:
csharp -lib:bin/ -pkg:glib-sharp-2.0 -pkg:gtk-sharp-2.0 -pkg:gconf-sharp-2.0 -pkg:dbus-sharp
-pkg:taglib-sharp -pkg:ipod-sharp -pkg:mono-addins $(addprefix "-reference:", $(wildcard bin/*.dll)); \
popd;
+check: test
+
test: all
@pushd tests; \
make test \
diff --git a/tests/Makefile.am b/tests/Makefile.am
index aad42b1..55baad4 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -46,6 +46,12 @@ test:
fi; \
done;
+else
+
+test:
+ echo "Please enable tests via --enable-tests at configuration"
+ exit 1
+
endif
MAINTAINERCLEANFILES = Makefile.in
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]