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

build: Move generic perl test to the top level directory

This test is useful for all perl code in the project, not just for the
scripts directory. Move it to the top level directory so that we don't
have to do strange things referencing sibling directories and similar.
Guillem Jover лет назад: 13
Родитель
Сommit
f5dd922441
3 измененных файлов с 14 добавлено и 3 удалено
  1. 14 2
      Makefile.am
  2. 0 1
      scripts/Makefile.am
  3. 0 0
      test/000_pod.t

+ 14 - 2
Makefile.am

@@ -75,7 +75,10 @@ EXTRA_DIST = \
 	debian/usertags \
 	debian/rules \
 	debian/shlibs.default \
-	debian/shlibs.override
+	debian/shlibs.override \
+	$(test_cases) \
+	$(test_data) \
+	$(nil)
 
 .PHONY: doc
 
@@ -126,6 +129,15 @@ coverage:
 coverage-clean:
 endif
 
+test_cases = \
+	test/000_pod.t \
+	$(nil)
+
+test_data = \
+	$(nil)
+
+include $(top_srcdir)/Makecheck.am
+
 .PHONY: update-po
 
 update-po:
@@ -153,4 +165,4 @@ dist-hook:
 		done ; \
 	fi
 
-clean-local: doc-clean coverage-clean
+clean-local: doc-clean coverage-clean check-clean

+ 0 - 1
scripts/Makefile.am

@@ -180,7 +180,6 @@ TEST_COVERAGE = $(PERL_COVERAGE)
 test_tmpdir = t.tmp
 
 test_cases = \
-	t/000_pod.t \
 	t/100_Dpkg_Version.t \
 	t/150_Dpkg_Package.t \
 	t/190_Dpkg_Shlibs_Cppfilt.t \

scripts/t/000_pod.t → test/000_pod.t