comparison tests/test-check-sdist.t @ 6858:37844623df8c stable

tests: accommodate both "hg-evolve" and "hg_evolve" in tarballs Looks like current distutils (or maybe setuptools, I'm not an expert) that are available in Debian Testing create tarballs that have an underscore instead of a hyphen in the name. The paths inside the tarball are also different, so we need to change the sed instruction too.
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 09 Sep 2024 18:19:36 +0400
parents 36d7bc8d2e8b
children e57c9da94b25
comparison
equal deleted inserted replaced
6857:36d7bc8d2e8b 6858:37844623df8c
27 no previously-included directories found matching 'contrib' 27 no previously-included directories found matching 'contrib'
28 no previously-included directories found matching 'debian' 28 no previously-included directories found matching 'debian'
29 no previously-included directories found matching '.gitlab' 29 no previously-included directories found matching '.gitlab'
30 $ cd "$TESTTMP"/dist 30 $ cd "$TESTTMP"/dist
31 31
32 $ find hg-evolve-*.tar.gz -size +800000c 32 $ find hg?evolve-*.tar.gz -size +800000c
33 hg-evolve-*.tar.gz (glob) 33 hg?evolve-*.tar.gz (glob)
34 34
35 $ tar -tzf hg-evolve-*.tar.gz | sed 's|^hg-evolve-[^/]*/||' | sort > files 35 $ tar -tzf hg?evolve-*.tar.gz | sed 's|^hg.evolve-[^/]*/||' | sort > files
36 $ egrep '^tests/test-.*\.(t|py)$' files > test-files 36 $ egrep '^tests/test-.*\.(t|py)$' files > test-files
37 $ egrep -v '^tests/test-.*\.(t|py)$' files > other-files 37 $ egrep -v '^tests/test-.*\.(t|py)$' files > other-files
38 $ wc -l other-files 38 $ wc -l other-files
39 148 other-files 39 148 other-files
40 $ wc -l test-files 40 $ wc -l test-files