Просмотр исходного кода

for consistency allow the usage of 'make test' instead of './run-tests'

David Kalnischkies лет назад: 15
Родитель
Сommit
92d5a40da4
3 измененных файлов с 16 добавлено и 7 удалено
  1. 2 7
      test/Makefile
  2. 10 0
      test/integration/makefile
  3. 4 0
      test/libapt/makefile

+ 2 - 7
test/Makefile

@@ -6,16 +6,11 @@ ifndef NOISY
 .SILENT:
 endif
 
-.PHONY: headers library clean veryclean all binary program doc
-all clean veryclean binary program dirs:
+.PHONY: headers library clean veryclean all binary program doc test
+all clean veryclean binary program dirs test:
 	$(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

+ 10 - 0
test/integration/makefile

@@ -0,0 +1,10 @@
+# -*- make -*-
+BASE=../..
+SUBDIR=test/integration
+
+# Bring in the default rules
+include ../../buildlib/defaults.mak
+
+.PHONY: test
+test:
+	./run-tests

+ 4 - 0
test/libapt/makefile

@@ -6,6 +6,10 @@ BASENAME=_libapt_test
 # Bring in the default rules
 include ../../buildlib/defaults.mak
 
+.PHONY: test
+test:
+	./run-tests
+
 # Program for testing getLanguageCode
 PROGRAM = getLanguages${BASENAME}
 SLIBS = -lapt-pkg