diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/tests/import-nonnative | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/tests/import-nonnative b/tests/tests/import-nonnative index d709ab5..a1884e7 100755 --- a/tests/tests/import-nonnative +++ b/tests/tests/import-nonnative @@ -55,6 +55,19 @@ chk2() { t-ref-same refs/heads/first-2nd-import for orig in ../${p}_${v%-*}.orig*.tar.*; do + tar -atf $orig | LC_ALL=C sort >../files.o + pfx=$(perl <../files.o -ne ' + while (<>) { + m#^([^/]+/)# or exit 0; + $x //= $1; + $x eq $1 or exit 0; + } + print "$x\n"; + ') + perl -i~ -pe ' + s#^\Q'"$pfx"'\E##; + $_="" if m/^$/ || m#/$#; + ' ../files.o orig=${orig#../} pat="^Import ${orig//./\\.}\$" t-refs-same-start @@ -65,6 +78,9 @@ chk2() { imp=$(cat ../t.imp) t-ref-same-val "$orig $start" "$imp" done + git ls-tree -r --name-only "$t_ref_val:" \ + | sort >../files.g + diff ../files.{o,g} done cd .. } |