summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2022-12-26 17:26:14 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2022-12-26 17:56:05 +0000
commit6c0d9559e3ae8960d1915f1ee37fd63102d3e910 (patch)
treeda76335bff2a16fa1f8d9e78d362dffed726ec60 /tests
parent88d1b67c019e0746c2df59d4e4ec264485cfcb43 (diff)
dgit: Scan for duplicated orig tarballs with different names (test)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests/import-linkorigs16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/tests/import-linkorigs b/tests/tests/import-linkorigs
index 815f960..ff0d816 100755
--- a/tests/tests/import-linkorigs
+++ b/tests/tests/import-linkorigs
@@ -3,6 +3,8 @@ set -e
. tests/lib
. $troot/lib-import-chk
+t-dependencies xz-utils
+
t-tstunt-parsechangelog
t-archive-none example
@@ -58,3 +60,17 @@ for bpdhow in none rel abs; do
cd ../..
done
done
+
+rm -rf dupes
+cp -a rel-rel dupes
+cd dupes
+orig=${p}_${v%-*}.orig.tar
+zcat bpd/$orig.gz | xz -1 >$orig.xz
+cd $p
+
+ls -al ../bpd
+
+t-expect-fail 'Duplicate/inconsistent orig tarballs' \
+t-dgit build-source
+
+t-ok