comparison tests/test-check-sdist.t @ 6920:df546ef8d75f mercurial-5.0

test-compat: merge mercurial-5.1 into mercurial-5.0
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 25 Oct 2024 18:11:50 +0400
parents b2dddcfe87c3
children
comparison
equal deleted inserted replaced
6815:cde3f4bc3075 6920:df546ef8d75f
9 9
10 Archiving to a separate location to avoid hardlink mess when the repo is shared 10 Archiving to a separate location to avoid hardlink mess when the repo is shared
11 11
12 #if test-repo 12 #if test-repo
13 13
14 $ hg archive "$TESTTMP"/hg-evolve 14 $ . "$RUNTESTDIR/helpers-testrepo.sh"
15 $ testrepohg archive "$TESTTMP"/hg-evolve
15 $ cd "$TESTTMP"/hg-evolve 16 $ cd "$TESTTMP"/hg-evolve
16 17
17 #endif 18 #endif
18 19
19 $ "$PYTHON" setup.py sdist --dist-dir "$TESTTMP"/dist > /dev/null 20 $ "$PYTHON" setup.py sdist --dist-dir "$TESTTMP"/dist > /dev/null
20 */dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob) 21 */dist.py:*: UserWarning: Unknown distribution option: 'long_description_content_type' (glob) (?)
21 warnings.warn(msg) 22 warnings.warn(msg) (?)
22 warning: sdist: standard file not found: should have one of README, README.txt (?) 23 */dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob) (?)
23 (?) 24 warnings.warn(msg) (?)
24 warning: no previously-included files found matching 'docs/tutorial/.netlify' 25 warning: no previously-included files found matching 'docs/tutorial/.netlify'
25 warning: no previously-included files found matching '.gitlab-ci.yml' 26 warning: no previously-included files found matching '.gitlab-ci.yml'
26 warning: no previously-included files found matching '.hg-format-source' 27 warning: no previously-included files found matching '.hg-format-source'
27 warning: no previously-included files found matching 'Makefile' 28 warning: no previously-included files found matching 'Makefile'
28 no previously-included directories found matching 'contrib' 29 no previously-included directories found matching 'contrib'
29 no previously-included directories found matching 'debian' 30 no previously-included directories found matching 'debian'
30 no previously-included directories found matching '.gitlab' 31 no previously-included directories found matching '.gitlab'
31 $ cd "$TESTTMP"/dist 32 $ cd "$TESTTMP"/dist
32 33
33 $ find hg-evolve-*.tar.gz -size +800000c 34 $ find hg?evolve-*.tar.gz -size +800000c
34 hg-evolve-*.tar.gz (glob) 35 hg?evolve-*.tar.gz (glob)
35 36
36 $ 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
37 $ egrep '^tests/test-.*\.(t|py)$' files > test-files 38 $ grep -E '^tests/test-.*\.(t|py)$' ../files > ../test-files
38 $ egrep -v '^tests/test-.*\.(t|py)$' files > other-files 39 $ grep -E -v '^tests/test-.*\.(t|py)$' ../files > ../other-files
39 $ wc -l other-files 40 $ wc -l ../other-files
40 148 other-files 41 ??? ../other-files (glob)
41 $ wc -l test-files 42 $ wc -l ../test-files
42 ??? test-files (glob) 43 ??? ../test-files (glob)
43 $ fgrep debian files 44 $ grep -F debian ../files
44 tests/test-check-debian.t 45 tests/test-check-debian.t
45 $ fgrep __init__.py files 46 $ grep -F __init__.py ../files
46 hgext3rd/__init__.py 47 hgext3rd/__init__.py
47 hgext3rd/evolve/__init__.py 48 hgext3rd/evolve/__init__.py
48 hgext3rd/evolve/thirdparty/__init__.py 49 hgext3rd/evolve/thirdparty/__init__.py
49 hgext3rd/topic/__init__.py 50 hgext3rd/topic/__init__.py
50 $ fgrep common.sh files 51 $ grep -F common.sh ../files
51 docs/tutorial/testlib/common.sh 52 docs/tutorial/testlib/common.sh
52 tests/testlib/common.sh 53 tests/testlib/common.sh
53 $ fgrep README files 54 $ grep -F README ../files
54 README.rst 55 README.rst
55 docs/README 56 docs/README
56 docs/tutorial/README.rst 57 docs/tutorial/README.rst
57 hgext3rd/topic/README 58 hgext3rd/topic/README
58 59
59 $ egrep '(gitlab|contrib|hack|format-source)' files 60 $ grep -E '(gitlab|contrib|hack|format-source)' ../files
60 [1] 61 [1]
61 $ fgrep legacy.py files 62 $ grep -F legacy.py ../files
62 [1] 63 [1]
63 $ fgrep netlify files 64 $ grep -F netlify ../files
64 [1] 65 [1]
66
67 #if twine
68 $ twine --no-color check *
69 Checking hg?evolve-*.tar.gz: PASSED (glob)
70 #endif