diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-06-30 12:16:47 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-06-30 21:11:18 +0100 |
commit | de2f667ab9664f312a2f66089f5253e38c984625 (patch) | |
tree | 8f54e15c0b8950e3fd40c03862d1cbae3c7069de /tests | |
parent | 2186de0a5e3cddca4f7b30a6ab1eee928b332785 (diff) |
test suite: baredebian-multitar: Check tarball import structure
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/tests/baredebian-multitar | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/tests/baredebian-multitar b/tests/tests/baredebian-multitar index 74ad64a..9ce5957 100755 --- a/tests/tests/baredebian-multitar +++ b/tests/tests/baredebian-multitar @@ -20,4 +20,26 @@ git tag -d $uvtag baredebian-test-core +combine=$( + git log --pretty=format:%H \ + --grep "Combine orig tarballs for example $uv" split.p +) + +parentnum=0 +for comp in '' $xorigcomps; do + parentnum=$(( $parentnum + 1 )) + fn=${origbase}${comp:+-}${comp}.tar.gz + + git checkout --orphan imp$parentnum + git rm -rf . + tar --strip-components=1 -axf ../$fn + git add -Af . + + git commit -m P$parentnum + git diff --stat --exit-code $combine^$parentnum + + count=$(git log $combine^$parentnum | grep -Fc $fn) + [ $count = 2 ] +done + t-ok |