changeset 6872:1ce9c2252965

tests: compare tarball with source directory in test-check-sdist.t We only care about test-repo case because that's how we generate sdist files (and even then we use `hg archive` first). Creating hg-evolve tarballs from sources obtained by any other method is not common and is a different can of worms.
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 06 Oct 2024 19:48:18 +0400
parents f1eefaa0ad28
children 9af9b8630ef3
files tests/test-check-sdist.t
diffstat 1 files changed, 45 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-check-sdist.t	Sun Oct 06 19:44:22 2024 +0400
+++ b/tests/test-check-sdist.t	Sun Oct 06 19:48:18 2024 +0400
@@ -62,6 +62,51 @@
   $ grep -F netlify ../files
   [1]
 
+#if test-repo
+  $ ( cd "$TESTTMP"/hg-evolve && find . ) | sed -e 's|^\./||;/^\.$/d' | sort > ../src-files
+
+extra files/directories in the tarball
+  $ comm -23 ../files ../src-files
+  PKG-INFO
+
+source files/directories excluded from the tarball
+  $ comm -13 ../files ../src-files
+  .gitlab
+  .gitlab-ci.yml
+  .gitlab/issue_templates
+  .gitlab/issue_templates/new-version.md
+  .hg-format-source
+  .hg_archival.txt
+  .hgignore
+  .hgtags
+  Makefile
+  contrib
+  contrib/docker
+  contrib/docker/pytype
+  contrib/docker/pytype/Dockerfile
+  contrib/docker/pytype/README.rst
+  contrib/docker/pytype/entrypoint.sh
+  contrib/hammerclient.py
+  contrib/merge-test-compat.sh
+  contrib/nopushpublish.py
+  debian
+  debian/changelog
+  debian/compat
+  debian/control
+  debian/copyright
+  debian/docs
+  debian/rules
+  debian/source
+  debian/source/format
+  debian/source/options
+  debian/test-blacklist
+  docs/tutorial/.netlify
+  hgext3rd/evolve/hack
+  hgext3rd/evolve/hack/__init__.py
+  hgext3rd/evolve/hack/drophack.py
+  tests/test-drop.t
+#endif
+
 #if twine
   $ twine --no-color check *
   Checking hg?evolve-*.tar.gz: PASSED (glob)