diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2022-12-26 17:26:14 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2022-12-26 17:56:05 +0000 |
commit | 6c0d9559e3ae8960d1915f1ee37fd63102d3e910 (patch) | |
tree | da76335bff2a16fa1f8d9e78d362dffed726ec60 /tests | |
parent | 88d1b67c019e0746c2df59d4e4ec264485cfcb43 (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-x | tests/tests/import-linkorigs | 16 |
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 |