summaryrefslogtreecommitdiff
path: root/tests/tests/import-linkorigs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests/import-linkorigs')
-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