From 001b1257eb6fafd32aa660a8157d182d911ac909 Mon Sep 17 00:00:00 2001 From: Sven Hoexter Date: Fri, 26 Jul 2024 14:43:46 +0200 Subject: [PATCH] Run upstream tests via autopkgtest. Tests are imported as one big patch out of upstreams git (see README.source for the details). Patches by Alessandro Astone. (Closes: #1076705) --- debian/README.source | 10 ++++++++++ debian/changelog | 5 ++++- debian/rules | 2 ++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 debian/README.source diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..e6dfb99 --- /dev/null +++ b/debian/README.source @@ -0,0 +1,10 @@ +The main version of exfatprogs is imported via the released +orig tarball with gbp import-orig. The huge tests-folder patch +is generated via: + +$ git checkout master +$ gbp pq import +$ git fetch https://github.com/exfatprogs/exfatprogs/ 1.2.4 +$ git checkout FETCH_HEAD tests/ +$ git commit -m "Add tests folder from upstream" +$ gbp pq export diff --git a/debian/changelog b/debian/changelog index 38fa501..62b99c8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,8 +3,11 @@ exfatprogs (1.2.4-2) UNRELEASED; urgency=medium * Adjust debian/watch to download the release tarball, instead of the auto-generated GitHub source tarball. Patch by Alessandro Astone. (Closes: #1076722) + * Include and run upstream tests. Tests are imported + as one big patch out of upstreams git (see README.source + for the details). Patches by Alessandro Astone. (Closes: #1076705) - -- Sven Hoexter Tue, 23 Jul 2024 19:56:35 +0200 + -- Sven Hoexter Fri, 26 Jul 2024 14:42:45 +0200 exfatprogs (1.2.4-1) unstable; urgency=medium diff --git a/debian/rules b/debian/rules index 2b6a2f1..e3df3d6 100755 --- a/debian/rules +++ b/debian/rules @@ -8,9 +8,11 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all dh $@ override_dh_auto_test: +ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),) dh_auto_test export PATH="$(shell pwd)/fsck:$$PATH"; cd tests; ./test_fsck.sh rm tests/exfat.img +endif override_dh_installchangelogs: dh_installchangelogs NEWS -- 2.39.5