aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mdist.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2020-03-27 10:52:50 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2020-03-29 21:12:34 +0300
commit8603c3b44515ca92499bcd70daeece8edbe8e6b0 (patch)
tree7cf863ace6d95b18a906917cd596001618252d2b /mesonbuild/mdist.py
parent7195c0ee9c3df499a2e9015e44ddcd2718d03c8b (diff)
downloadmeson-8603c3b44515ca92499bcd70daeece8edbe8e6b0.zip
meson-8603c3b44515ca92499bcd70daeece8edbe8e6b0.tar.gz
meson-8603c3b44515ca92499bcd70daeece8edbe8e6b0.tar.bz2
dist: Add --no-tests option
It is not always needed to test generated tarballs, for example when they are generated by CI that already does its own testing.
Diffstat (limited to 'mesonbuild/mdist.py')
-rw-r--r--mesonbuild/mdist.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/mesonbuild/mdist.py b/mesonbuild/mdist.py
index ea0583e..5637e70 100644
--- a/mesonbuild/mdist.py
+++ b/mesonbuild/mdist.py
@@ -39,6 +39,8 @@ def add_arguments(parser):
help='Comma separated list of archive types to create.')
parser.add_argument('--include-subprojects', action='store_true',
help='Include source code of subprojects that have been used for the build.')
+ parser.add_argument('--no-tests', action='store_true',
+ help='Do not build and test generated packages.')
def create_hash(fname):
@@ -272,8 +274,10 @@ def run(options):
return 1
if names is None:
return 1
- # Check only one.
- rc = check_dist(names[0], meson_command, extra_meson_args, bld_root, priv_dir)
+ rc = 0
+ if not options.no_tests:
+ # Check only one.
+ rc = check_dist(names[0], meson_command, extra_meson_args, bld_root, priv_dir)
if rc == 0:
for name in names:
create_hash(name)