changeset 6494:4ff6ed433ab2

tests: split file list into tests and other files for checking sdist target 150 + 213 is 363, as expected, but now we have two groups of files, and we can apply different checks to each of them.
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 07 Jun 2023 19:53:39 -0300
parents e36883d88108
children 499e4f1c83a8
files tests/test-check-sdist.t
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-check-sdist.t	Thu May 25 00:52:54 2023 +0200
+++ b/tests/test-check-sdist.t	Wed Jun 07 19:53:39 2023 -0300
@@ -34,8 +34,12 @@
   hg-evolve-*.tar.gz (glob)
 
   $ tar -tzf hg-evolve-*.tar.gz | sed 's|^hg-evolve-[^/]*/||' | sort > files
-  $ wc -l files
-  363 files
+  $ egrep '^tests/test-.*\.(t|py)$' files > test-files
+  $ egrep -v '^tests/test-.*\.(t|py)$' files > other-files
+  $ wc -l other-files
+  150 other-files
+  $ wc -l test-files
+  213 test-files
   $ fgrep debian files
   tests/test-check-debian.t
   $ fgrep __init__.py files