merged in default ENGINE-398
authorKrista Bennett <krista@pep-project.org>
Thu, 13 Sep 2018 13:59:53 +0200
branchENGINE-398
changeset 2943dd40810a7490
parent 2942 c929f7eba32a
parent 2941 23726372aea0
child 2947 4b525ec0f95c
merged in default
test/Makefile
     1.1 --- a/test/Makefile	Thu Sep 13 13:59:19 2018 +0200
     1.2 +++ b/test/Makefile	Thu Sep 13 13:59:53 2018 +0200
     1.3 @@ -93,7 +93,12 @@
     1.4  ifndef PY_ENV
     1.5  	@echo "WARNING: Can't find python3 - this is fine unless you're adding test suites. If so, please install python3."
     1.6  else
     1.7 +ifndef EXCLUDE
     1.8  	$(PY_ENV) gensuitemaker.py
     1.9 +else
    1.10 +	# Comma-separated list, no spaces
    1.11 +	$(PY_ENV) gensuitemaker.py --exclude=$(EXCLUDE)
    1.12 +endif
    1.13  endif
    1.14  		
    1.15  .PHONY: test_home_
     2.1 --- a/test/gensuitemaker.py	Thu Sep 13 13:59:19 2018 +0200
     2.2 +++ b/test/gensuitemaker.py	Thu Sep 13 13:59:53 2018 +0200
     2.3 @@ -1,6 +1,6 @@
     2.4  # This file is under GNU General Public License 3.0
     2.5  # see LICENSE.txt
     2.6 -
     2.7 +import argparse
     2.8  from os import listdir, getcwd
     2.9  from os.path import isfile, join
    2.10  from re import sub
    2.11 @@ -14,11 +14,23 @@
    2.12  
    2.13  indent = "    "
    2.14  
    2.15 +parser = argparse.ArgumentParser()
    2.16 +parser.add_argument("--exclude", "-x", help="Comma-separated list of tests to exclude from test suite build")
    2.17 +
    2.18 +args = parser.parse_args()
    2.19 +
    2.20 +exclude_arg = args.exclude
    2.21 +exclude_list = []
    2.22 +if exclude_arg:
    2.23 +    exclude_list = exclude_arg.split(",")
    2.24 +    for x in exclude_list:
    2.25 +        x.replace(" ","")
    2.26  for f in ls:
    2.27      if isfile(join(srcpath, f)):
    2.28          if (f.endswith(".cc")):
    2.29              suite = sub('\.cc$', '', f)
    2.30 -            suites.append(suite)
    2.31 +            if not suite in exclude_list:
    2.32 +                suites.append(suite)
    2.33  
    2.34  license = (''
    2.35  '// This file is under GNU General Public License 3.0\n'