correct script name in generated tests

llvm-svn: 351299
This commit is contained in:
Eric Fiselier 2019-01-16 05:43:02 +00:00
parent 788ce374c4
commit 973eab8a5d
43 changed files with 91 additions and 89 deletions

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <algorithm>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <any>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <array>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// UNSUPPORTED: libcpp-has-no-threads

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <bit>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <chrono>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <cmath>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <compare>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <complex>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <cstddef>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <deque>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <exception>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <filesystem>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <forward_list>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <functional>

View File

@ -5,6 +5,7 @@ import tempfile
def get_libcxx_paths():
script_path = os.path.dirname(os.path.abspath(__file__))
script_name = os.path.basename(__file__)
assert os.path.exists(script_path)
depth = 5
src_root = script_path
@ -14,10 +15,10 @@ def get_libcxx_paths():
assert os.path.exists(include_path)
docs_path = os.path.join(src_root, 'docs')
assert os.path.exists(docs_path)
return script_path, src_root, include_path, docs_path
return script_path, script_name, src_root, include_path, docs_path
script_path, source_root, include_path, docs_path = get_libcxx_paths()
script_path, script_name, source_root, include_path, docs_path = get_libcxx_paths()
def has_header(h):
h_path = os.path.join(include_path, h)
@ -835,8 +836,8 @@ def produce_tests():
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by {script_name}
// and should not be edited manually.
{test_tags}
// <{header}>
@ -866,7 +867,8 @@ def produce_tests():
#endif // TEST_STD_VER > 17
int main() {{}}
""".format(header=h,
""".format(script_name=script_name,
header=h,
test_tags=test_tags,
synopsis=generate_synopsis(test_list),
cxx11_tests=generate_std_test(test_list, 'c++11').strip(),

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <iomanip>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <istream>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <iterator>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <limits>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <list>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <locale>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <map>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <memory>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <mutex>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <new>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <numeric>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <optional>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <ostream>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <regex>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <scoped_allocator>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <set>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// UNSUPPORTED: libcpp-has-no-threads

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <string>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <string_view>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <tuple>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <type_traits>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <unordered_map>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <unordered_set>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <utility>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <variant>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <vector>

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// WARNING: This test was generated by generate_feature_test_macros_tests.py and
// should not be edited manually.
// WARNING: This test was generated by generate_feature_test_macro_components.py
// and should not be edited manually.
// <version>