mirror of
https://github.com/boostorg/histogram.git
synced 2025-05-10 07:14:05 +00:00
* add missing copyright notices * workaround for xml_iarchive bug to handle XML with comments * fixing min/max according to boost guidelines
31 lines
850 B
Python
Executable File
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)
|