Mercurial > evolve
comparison tests/test-check-sdist.t @ 6845:4836e75f0a03
tests: don't put file lists inside dist/ directory
Makes it easier to use `twine check dist/*` or anything that expects dist/ to
only contain dist files.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Mon, 09 Sep 2024 18:46:03 +0400 |
parents | ab7bbcd052ad |
children | 6d61440357af |
comparison
equal
deleted
inserted
replaced
6844:ab7bbcd052ad | 6845:4836e75f0a03 |
---|---|
29 $ cd "$TESTTMP"/dist | 29 $ cd "$TESTTMP"/dist |
30 | 30 |
31 $ find hg?evolve-*.tar.gz -size +800000c | 31 $ find hg?evolve-*.tar.gz -size +800000c |
32 hg?evolve-*.tar.gz (glob) | 32 hg?evolve-*.tar.gz (glob) |
33 | 33 |
34 $ tar -tzf hg?evolve-*.tar.gz | sed 's|^hg.evolve-[^/]*/||' | sort > files | 34 $ tar -tzf hg?evolve-*.tar.gz | sed 's|^hg.evolve-[^/]*/||' | sort > ../files |
35 $ grep -E '^tests/test-.*\.(t|py)$' files > test-files | 35 $ grep -E '^tests/test-.*\.(t|py)$' ../files > ../test-files |
36 $ grep -E -v '^tests/test-.*\.(t|py)$' files > other-files | 36 $ grep -E -v '^tests/test-.*\.(t|py)$' ../files > ../other-files |
37 $ wc -l other-files | 37 $ wc -l ../other-files |
38 151 other-files | 38 151 ../other-files |
39 $ wc -l test-files | 39 $ wc -l ../test-files |
40 ??? test-files (glob) | 40 ??? ../test-files (glob) |
41 $ grep -F debian files | 41 $ grep -F debian ../files |
42 tests/test-check-debian.t | 42 tests/test-check-debian.t |
43 $ grep -F __init__.py files | 43 $ grep -F __init__.py ../files |
44 hgext3rd/__init__.py | 44 hgext3rd/__init__.py |
45 hgext3rd/evolve/__init__.py | 45 hgext3rd/evolve/__init__.py |
46 hgext3rd/evolve/thirdparty/__init__.py | 46 hgext3rd/evolve/thirdparty/__init__.py |
47 hgext3rd/topic/__init__.py | 47 hgext3rd/topic/__init__.py |
48 $ grep -F common.sh files | 48 $ grep -F common.sh ../files |
49 docs/tutorial/testlib/common.sh | 49 docs/tutorial/testlib/common.sh |
50 tests/testlib/common.sh | 50 tests/testlib/common.sh |
51 $ grep -F README files | 51 $ grep -F README ../files |
52 README.rst | 52 README.rst |
53 docs/README | 53 docs/README |
54 docs/tutorial/README.rst | 54 docs/tutorial/README.rst |
55 hgext3rd/topic/README | 55 hgext3rd/topic/README |
56 | 56 |
57 $ grep -E '(gitlab|contrib|hack|format-source)' files | 57 $ grep -E '(gitlab|contrib|hack|format-source)' ../files |
58 [1] | 58 [1] |
59 $ grep -F netlify files | 59 $ grep -F netlify ../files |
60 [1] | 60 [1] |