Mercurial > evolve
comparison tests/test-check-sdist.t @ 6891:2cb062b8050c stable
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 | b3261527f770 |
children | 090834ff8209 |
comparison
equal
deleted
inserted
replaced
6890:7ec9f4b04519 | 6891:2cb062b8050c |
---|---|
32 $ cd "$TESTTMP"/dist | 32 $ cd "$TESTTMP"/dist |
33 | 33 |
34 $ find hg?evolve-*.tar.gz -size +800000c | 34 $ find hg?evolve-*.tar.gz -size +800000c |
35 hg?evolve-*.tar.gz (glob) | 35 hg?evolve-*.tar.gz (glob) |
36 | 36 |
37 $ tar -tzf hg?evolve-*.tar.gz | sed 's|^hg.evolve-[^/]*/||' | sort > files | 37 $ tar -tzf hg?evolve-*.tar.gz | sed 's|^hg.evolve-[^/]*/||' | sort > ../files |
38 $ grep -E '^tests/test-.*\.(t|py)$' files > test-files | 38 $ grep -E '^tests/test-.*\.(t|py)$' ../files > ../test-files |
39 $ grep -E -v '^tests/test-.*\.(t|py)$' files > other-files | 39 $ grep -E -v '^tests/test-.*\.(t|py)$' ../files > ../other-files |
40 $ wc -l other-files | 40 $ wc -l ../other-files |
41 ??? other-files (glob) | 41 ??? ../other-files (glob) |
42 $ wc -l test-files | 42 $ wc -l ../test-files |
43 ??? test-files (glob) | 43 ??? ../test-files (glob) |
44 $ grep -F debian files | 44 $ grep -F debian ../files |
45 tests/test-check-debian.t | 45 tests/test-check-debian.t |
46 $ grep -F __init__.py files | 46 $ grep -F __init__.py ../files |
47 hgext3rd/__init__.py | 47 hgext3rd/__init__.py |
48 hgext3rd/evolve/__init__.py | 48 hgext3rd/evolve/__init__.py |
49 hgext3rd/evolve/thirdparty/__init__.py | 49 hgext3rd/evolve/thirdparty/__init__.py |
50 hgext3rd/topic/__init__.py | 50 hgext3rd/topic/__init__.py |
51 $ grep -F common.sh files | 51 $ grep -F common.sh ../files |
52 docs/tutorial/testlib/common.sh | 52 docs/tutorial/testlib/common.sh |
53 tests/testlib/common.sh | 53 tests/testlib/common.sh |
54 $ grep -F README files | 54 $ grep -F README ../files |
55 README.rst | 55 README.rst |
56 docs/README | 56 docs/README |
57 docs/tutorial/README.rst | 57 docs/tutorial/README.rst |
58 hgext3rd/topic/README | 58 hgext3rd/topic/README |
59 | 59 |
60 $ grep -E '(gitlab|contrib|hack|format-source)' files | 60 $ grep -E '(gitlab|contrib|hack|format-source)' ../files |
61 [1] | 61 [1] |
62 $ grep -F legacy.py files | 62 $ grep -F legacy.py ../files |
63 [1] | 63 [1] |
64 $ grep -F netlify files | 64 $ grep -F netlify ../files |
65 [1] | 65 [1] |