Sfoglia il codice sorgente

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 anni fa
parent
commit
f5dd922441
3 ha cambiato i file con 14 aggiunte e 3 eliminazioni
  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/usertags \
 	debian/rules \
 	debian/rules \
 	debian/shlibs.default \
 	debian/shlibs.default \
-	debian/shlibs.override
+	debian/shlibs.override \
+	$(test_cases) \
+	$(test_data) \
+	$(nil)
 
 
 .PHONY: doc
 .PHONY: doc
 
 
@@ -126,6 +129,15 @@ coverage:
 coverage-clean:
 coverage-clean:
 endif
 endif
 
 
+test_cases = \
+	test/000_pod.t \
+	$(nil)
+
+test_data = \
+	$(nil)
+
+include $(top_srcdir)/Makecheck.am
+
 .PHONY: update-po
 .PHONY: update-po
 
 
 update-po:
 update-po:
@@ -153,4 +165,4 @@ dist-hook:
 		done ; \
 		done ; \
 	fi
 	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_tmpdir = t.tmp
 
 
 test_cases = \
 test_cases = \
-	t/000_pod.t \
 	t/100_Dpkg_Version.t \
 	t/100_Dpkg_Version.t \
 	t/150_Dpkg_Package.t \
 	t/150_Dpkg_Package.t \
 	t/190_Dpkg_Shlibs_Cppfilt.t \
 	t/190_Dpkg_Shlibs_Cppfilt.t \

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