comparison tests/test-check-sdist.t @ 6899:43b1fcb4055c mercurial-6.7

test-compat: merge mercurial-6.8 into mercurial-6.7
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 24 Oct 2024 17:57:11 +0400
parents 090834ff8209
children 2bac0e2340e0 361dcfcb3f08 dd518437d4e0
comparison
equal deleted inserted replaced
6798:f46913e52954 6899:43b1fcb4055c
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
20 $ "$PYTHON" setup.py check --metadata --restructuredtext
21
19 $ "$PYTHON" setup.py sdist --dist-dir "$TESTTMP"/dist > /dev/null 22 $ "$PYTHON" setup.py sdist --dist-dir "$TESTTMP"/dist > /dev/null
20 */dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob) 23 */dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob) (?)
21 warnings.warn(msg) 24 warnings.warn(msg) (?)
22 warning: sdist: standard file not found: should have one of README, README.txt (?)
23 (?)
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