Преглед изворни кода

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 година
родитељ
комит
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