histogram/tools/check_build_system.py
Hans Dembinski df647cf959
update copyright (#55)
* add missing copyright notices
* workaround for xml_iarchive bug to handle XML with comments
* fixing min/max according to boost guidelines
2019-08-19 16:53:27 +02:00

31 lines
850 B
Python
Executable File

#!/usr/bin/env python3
# Copyright Hans Dembinski 2019
# Distributed under the Boost Software License, Version 1.0.
# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
from __future__ import print_function
import sys
import glob
import os
import re
exit_code = 0
for dir in ("test", "examples"):
cpp = set([os.path.basename(x) for x in glob.glob(dir + "/*.cpp")])
for build_file in ("Jamfile", "CMakeLists.txt"):
filename = os.path.join(dir, build_file)
if not os.path.exists(filename): continue
run = set(re.findall("([a-zA-Z0-9_]+\.cpp)", open(filename).read()))
diff = cpp - run
if diff:
print("NOT TESTED in %s\n " % filename +
"\n ".join(["%s/%s" % (dir, x) for x in diff]))
exit_code = 1
sys.exit(exit_code)