]> git.saurik.com Git - apt.git/commitdiff
build test-binaries by default and add a test target to toplevel
authorDavid Kalnischkies <kalnischkies@gmail.com>
Wed, 17 Aug 2011 12:35:58 +0000 (14:35 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Wed, 17 Aug 2011 12:35:58 +0000 (14:35 +0200)
Makefile
buildlib/defaults.mak
test/Makefile [new file with mode: 0644]

index 664caca41f2d9d67a63f1aeb4f170b9b3c00f4b5..9a47014c3ccb0fb1d840bb619bb5e6479acba539 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,8 +9,8 @@ endif
 .PHONY: default
 default: startup all
 
-.PHONY: headers library clean veryclean all binary program doc
-all headers library clean veryclean binary program doc dirs:
+.PHONY: headers library clean veryclean all binary program doc test
+all headers library clean veryclean binary program doc dirs test:
        $(MAKE) -C apt-pkg $@
        $(MAKE) -C apt-inst $@
        $(MAKE) -C methods $@
@@ -19,6 +19,7 @@ all headers library clean veryclean binary program doc dirs:
        $(MAKE) -C dselect $@
        $(MAKE) -C doc $@
        $(MAKE) -C po $@
+       $(MAKE) -C test $@
 
 # Some very common aliases
 .PHONY: maintainer-clean dist-clean distclean pristine sanity 
index d4269e05ff24b86efa416d9c799487d6ce8bf2f3..edb08916037d46152f3fe18f5ef0ea5a6e678382 100644 (file)
@@ -121,7 +121,7 @@ MKDIRS := $(BIN)
 all: dirs binary doc
 binary: library program
 maintainer-clean dist-clean distclean pristine sanity: veryclean
-headers library clean veryclean program:
+headers library clean veryclean program test:
 
 veryclean:
        echo Very Clean done for $(SUBDIR)
diff --git a/test/Makefile b/test/Makefile
new file mode 100644 (file)
index 0000000..f918f7d
--- /dev/null
@@ -0,0 +1,21 @@
+# -*- make -*-
+
+# This is the top level test makefile for APT, it recurses to each lower
+# level make file and runs it with the proper target
+ifndef NOISY
+.SILENT:
+endif
+
+.PHONY: headers library clean veryclean all binary program doc
+all clean veryclean binary program dirs:
+       $(MAKE) -C libapt $@
+       $(MAKE) -C interactive-helper $@
+
+# Some very common aliases
+.PHONY: maintainer-clean dist-clean distclean pristine sanity
+maintainer-clean dist-clean distclean pristine sanity: veryclean
+
+
+.PHONY: test
+test:
+       ./libapt/run-tests