Browse Source

Add a simple autopkgtest

Also move the existing extra tests around as they happened to use
the same place as autopkgtest files.
Christoph Biedl 7 months ago
parent
commit
6127fd1031

debian/tests/test_data/issue-17.1346938280.gz → debian/extra-tests/test_data/issue-17.1346938280.gz


debian/tests/test_expect/issue-17.1346938280.gz.bgp.gz → debian/extra-tests/test_expect/issue-17.1346938280.gz.bgp.gz


+ 2 - 2
debian/rules

@@ -8,12 +8,12 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 override_dh_clean:
 	dh_clean
 	-rm debian/bgpdump.1
-	-rm -rf debian/tests/test_out/
+	-rm -rf debian/extra-tests/test_out/
 
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	dh_auto_test
-	./test.sh debian/tests/
+	./test.sh debian/extra-tests/
 	@[ -d test_data ] && ./test.sh || echo "Skipping upstream tests as they are huge (see README.Debian)"
 endif
 

+ 2 - 2
debian/source/include-binaries

@@ -1,2 +1,2 @@
-debian/tests/test_data/issue-17.1346938280.gz
-debian/tests/test_expect/issue-17.1346938280.gz.bgp.gz
+debian/extra-tests/test_data/issue-17.1346938280.gz
+debian/extra-tests/test_expect/issue-17.1346938280.gz.bgp.gz

+ 5 - 0
debian/tests/control

@@ -0,0 +1,5 @@
+Test-Command: bgpdump -T
+Depends: @
+
+Test-Command: ./test.sh debian/extra-tests/
+Depends: @