[runtimes] Rename newformat to just format, now that the old format has been removed

This commit is contained in:
Louis Dionne 2020-06-30 10:10:30 -04:00
parent b58b61c4b7
commit 70f6389257
62 changed files with 11 additions and 18 deletions

View File

@ -1,6 +1,6 @@
import libcxx.test.newformat
import libcxx.test.format
# The tests in this directory need to know whether Clang-verify is supported
# to work properly.
if libcxx.test.newformat._supportsVerify(config):
if libcxx.test.format._supportsVerify(config):
config.available_features.add('verify-support')

View File

@ -1,7 +0,0 @@
import os
import site
site.addsitedir(os.path.join(os.path.dirname(__file__), '..', '..', '..', '..', 'utils'))
import libcxx.test.newformat
if not isinstance(config.test_format, libcxx.test.newformat.CxxStandardLibraryTest):
config.unsupported = True

View File

@ -60,8 +60,8 @@ config.recursiveExpansionLimit = 10
# Infer the test_exec_root from the libcxx_object root.
config.test_exec_root = os.path.join(config.libcxx_obj_root, 'test')
import libcxx.test.newformat
config.test_format = libcxx.test.newformat.CxxStandardLibraryTest()
import libcxx.test.format
config.test_format = libcxx.test.format.CxxStandardLibraryTest()
lit_config.note('Using configuration variant: {}'.format(config.configuration_variant))
import libcxx.test.config

View File

@ -6,7 +6,7 @@
#
#===----------------------------------------------------------------------===##
import libcxx.test.newformat
import libcxx.test.format
import lit
import lit.util
import os
@ -29,7 +29,7 @@ def _executeScriptInternal(test, commands):
TODO: This really should be easier to access from Lit itself
"""
parsedCommands = libcxx.test.newformat.parseScript(test, preamble=commands)
parsedCommands = libcxx.test.format.parseScript(test, preamble=commands)
litConfig = lit.LitConfig.LitConfig(
progname='lit',
@ -42,7 +42,7 @@ def _executeScriptInternal(test, commands):
debug=False,
isWindows=platform.system() == 'Windows',
params={})
_, tmpBase = libcxx.test.newformat._getTempPaths(test)
_, tmpBase = libcxx.test.format._getTempPaths(test)
execDir = os.path.dirname(test.getExecPath())
for d in (execDir, os.path.dirname(tmpBase)):
if not os.path.exists(d):

View File

@ -54,8 +54,8 @@ config.recursiveExpansionLimit = 10
# Infer the test_exec_root from the build directory.
config.test_exec_root = os.path.join(config.libcxxabi_obj_root, 'test')
import libcxx.test.newformat
config.test_format = libcxx.test.newformat.CxxStandardLibraryTest()
import libcxx.test.format
config.test_format = libcxx.test.format.CxxStandardLibraryTest()
lit_config.note('Using configuration variant: libcxxabi')
import libcxxabi.test.config

View File

@ -48,8 +48,8 @@ config.recursiveExpansionLimit = 10
# Infer the test_exec_root from the build directory.
config.test_exec_root = os.path.join(config.libunwind_obj_root, 'test')
import libcxx.test.newformat
config.test_format = libcxx.test.newformat.CxxStandardLibraryTest()
import libcxx.test.format
config.test_format = libcxx.test.format.CxxStandardLibraryTest()
lit_config.note('Using configuration variant: libunwind')
import libunwind.test.config