Mercurial > evolve
annotate tests/test-check-sdist.t @ 6852:374f1c5995dd stable
tests: use testrepohg in test-check-sdist.t
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 13 Oct 2024 17:40:01 +0400 |
parents | 282a0467433e |
children | 36d7bc8d2e8b |
rev | line source |
---|---|
5772
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
1 Enable obsolescence to avoid the warning issue when obsmarkers are found |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
2 |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
3 $ cat << EOF >> "$HGRCPATH" |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
4 > [experimental] |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
5 > evolution = all |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
6 > EOF |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
7 |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
8 $ cd "$TESTDIR"/.. |
5799
fe9f9e528a42
tests: make test-check-sdist.t less flaky by first archiving the repo
Anton Shestakov <av6@dwimlabs.net>
parents:
5784
diff
changeset
|
9 |
fe9f9e528a42
tests: make test-check-sdist.t less flaky by first archiving the repo
Anton Shestakov <av6@dwimlabs.net>
parents:
5784
diff
changeset
|
10 Archiving to a separate location to avoid hardlink mess when the repo is shared |
fe9f9e528a42
tests: make test-check-sdist.t less flaky by first archiving the repo
Anton Shestakov <av6@dwimlabs.net>
parents:
5784
diff
changeset
|
11 |
fe9f9e528a42
tests: make test-check-sdist.t less flaky by first archiving the repo
Anton Shestakov <av6@dwimlabs.net>
parents:
5784
diff
changeset
|
12 #if test-repo |
fe9f9e528a42
tests: make test-check-sdist.t less flaky by first archiving the repo
Anton Shestakov <av6@dwimlabs.net>
parents:
5784
diff
changeset
|
13 |
6852
374f1c5995dd
tests: use testrepohg in test-check-sdist.t
Anton Shestakov <av6@dwimlabs.net>
parents:
6558
diff
changeset
|
14 $ . "$RUNTESTDIR/helpers-testrepo.sh" |
374f1c5995dd
tests: use testrepohg in test-check-sdist.t
Anton Shestakov <av6@dwimlabs.net>
parents:
6558
diff
changeset
|
15 $ testrepohg archive "$TESTTMP"/hg-evolve |
5799
fe9f9e528a42
tests: make test-check-sdist.t less flaky by first archiving the repo
Anton Shestakov <av6@dwimlabs.net>
parents:
5784
diff
changeset
|
16 $ cd "$TESTTMP"/hg-evolve |
fe9f9e528a42
tests: make test-check-sdist.t less flaky by first archiving the repo
Anton Shestakov <av6@dwimlabs.net>
parents:
5784
diff
changeset
|
17 |
fe9f9e528a42
tests: make test-check-sdist.t less flaky by first archiving the repo
Anton Shestakov <av6@dwimlabs.net>
parents:
5784
diff
changeset
|
18 #endif |
fe9f9e528a42
tests: make test-check-sdist.t less flaky by first archiving the repo
Anton Shestakov <av6@dwimlabs.net>
parents:
5784
diff
changeset
|
19 |
5772
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
20 $ "$PYTHON" setup.py sdist --dist-dir "$TESTTMP"/dist > /dev/null |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
21 */dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob) |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
22 warnings.warn(msg) |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
23 warning: sdist: standard file not found: should have one of README, README.txt (?) |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
24 (?) |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
25 warning: no previously-included files found matching 'docs/tutorial/.netlify' |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
26 warning: no previously-included files found matching '.gitlab-ci.yml' |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
27 warning: no previously-included files found matching '.hg-format-source' |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
28 warning: no previously-included files found matching 'Makefile' |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
29 no previously-included directories found matching 'contrib' |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
30 no previously-included directories found matching 'debian' |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
31 no previously-included directories found matching '.gitlab' |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
32 $ cd "$TESTTMP"/dist |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
33 |
5956
8e78e0f316b3
tests: improve tarball size check in test-check-sdist.t
Anton Shestakov <av6@dwimlabs.net>
parents:
5918
diff
changeset
|
34 $ find hg-evolve-*.tar.gz -size +800000c |
8e78e0f316b3
tests: improve tarball size check in test-check-sdist.t
Anton Shestakov <av6@dwimlabs.net>
parents:
5918
diff
changeset
|
35 hg-evolve-*.tar.gz (glob) |
5772
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
36 |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
37 $ tar -tzf hg-evolve-*.tar.gz | sed 's|^hg-evolve-[^/]*/||' | sort > files |
6494
4ff6ed433ab2
tests: split file list into tests and other files for checking sdist target
Anton Shestakov <av6@dwimlabs.net>
parents:
6493
diff
changeset
|
38 $ egrep '^tests/test-.*\.(t|py)$' files > test-files |
4ff6ed433ab2
tests: split file list into tests and other files for checking sdist target
Anton Shestakov <av6@dwimlabs.net>
parents:
6493
diff
changeset
|
39 $ egrep -v '^tests/test-.*\.(t|py)$' files > other-files |
4ff6ed433ab2
tests: split file list into tests and other files for checking sdist target
Anton Shestakov <av6@dwimlabs.net>
parents:
6493
diff
changeset
|
40 $ wc -l other-files |
6558
282a0467433e
evolve.serveronly: remove this extension, please use regular evolve extension
Anton Shestakov <av6@dwimlabs.net>
parents:
6557
diff
changeset
|
41 148 other-files |
6494
4ff6ed433ab2
tests: split file list into tests and other files for checking sdist target
Anton Shestakov <av6@dwimlabs.net>
parents:
6493
diff
changeset
|
42 $ wc -l test-files |
6495
499e4f1c83a8
tests: roughly check the amount of test files in a tarball
Anton Shestakov <av6@dwimlabs.net>
parents:
6494
diff
changeset
|
43 ??? test-files (glob) |
5772
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
44 $ fgrep debian files |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
45 tests/test-check-debian.t |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
46 $ fgrep __init__.py files |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
47 hgext3rd/__init__.py |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
48 hgext3rd/evolve/__init__.py |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
49 hgext3rd/evolve/thirdparty/__init__.py |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
50 hgext3rd/topic/__init__.py |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
51 $ fgrep common.sh files |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
52 docs/tutorial/testlib/common.sh |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
53 tests/testlib/common.sh |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
54 $ fgrep README files |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
55 README.rst |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
56 docs/README |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
57 docs/tutorial/README.rst |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
58 hgext3rd/topic/README |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
59 |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
60 $ egrep '(gitlab|contrib|hack|format-source)' files |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
61 [1] |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
62 $ fgrep legacy.py files |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
63 [1] |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
64 $ fgrep netlify files |
da01b9062cfb
tests: add test-check-sdist.t to check setup.py sdist results
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
65 [1] |