aboutsummaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2022-03-28 19:33:52 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2022-03-29 02:12:02 +0300
commit1c3191be55f0445d66ffc6cc7b94ba9837f00784 (patch)
tree9e0ac18411b3cefd9b02459d725b438044efaae8 /unittests
parent479a84455f6b838e862b7b68b6edd8968dd8fe1c (diff)
downloadmeson-1c3191be55f0445d66ffc6cc7b94ba9837f00784.zip
meson-1c3191be55f0445d66ffc6cc7b94ba9837f00784.tar.gz
meson-1c3191be55f0445d66ffc6cc7b94ba9837f00784.tar.bz2
Condense test directory names.
Diffstat (limited to 'unittests')
-rw-r--r--unittests/allplatformstests.py90
-rw-r--r--unittests/linuxcrosstests.py10
-rw-r--r--unittests/linuxliketests.py52
-rw-r--r--unittests/machinefiletests.py22
-rw-r--r--unittests/platformagnostictests.py4
-rw-r--r--unittests/windowstests.py4
6 files changed, 91 insertions, 91 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py
index dd8fa66..8a7fcd7 100644
--- a/unittests/allplatformstests.py
+++ b/unittests/allplatformstests.py
@@ -539,7 +539,7 @@ class AllPlatformTests(BasePlatformTests):
self.run_tests()
def test_implicit_forcefallback(self):
- testdir = os.path.join(self.unit_test_dir, '96 implicit force fallback')
+ testdir = os.path.join(self.unit_test_dir, '95 implicit force fallback')
with self.assertRaises(subprocess.CalledProcessError):
self.init(testdir)
self.init(testdir, extra_args=['--wrap-mode=forcefallback'])
@@ -645,7 +645,7 @@ class AllPlatformTests(BasePlatformTests):
self.mtest_command + ['--setup=main:onlyinbar'])
def test_testsetup_default(self):
- testdir = os.path.join(self.unit_test_dir, '49 testsetup default')
+ testdir = os.path.join(self.unit_test_dir, '48 testsetup default')
self.init(testdir)
self.build()
@@ -1716,7 +1716,7 @@ class AllPlatformTests(BasePlatformTests):
def test_options_with_choices_changing(self) -> None:
"""Detect when options like arrays or combos have their choices change."""
- testdir = Path(os.path.join(self.unit_test_dir, '84 change option choices'))
+ testdir = Path(os.path.join(self.unit_test_dir, '83 change option choices'))
options1 = str(testdir / 'meson_options.1.txt')
options2 = str(testdir / 'meson_options.2.txt')
@@ -1787,7 +1787,7 @@ class AllPlatformTests(BasePlatformTests):
self.build()
def test_subproject_promotion_wrap(self):
- testdir = os.path.join(self.unit_test_dir, '44 promote wrap')
+ testdir = os.path.join(self.unit_test_dir, '43 promote wrap')
workdir = os.path.join(self.builddir, 'work')
shutil.copytree(testdir, workdir)
spdir = os.path.join(workdir, 'subprojects')
@@ -1834,9 +1834,9 @@ class AllPlatformTests(BasePlatformTests):
for (t, f) in [
('10 out of bounds', 'meson.build'),
('18 wrong plusassign', 'meson.build'),
- ('60 bad option argument', 'meson_options.txt'),
- ('98 subdir parse error', os.path.join('subdir', 'meson.build')),
- ('99 invalid option file', 'meson_options.txt'),
+ ('59 bad option argument', 'meson_options.txt'),
+ ('97 subdir parse error', os.path.join('subdir', 'meson.build')),
+ ('98 invalid option file', 'meson_options.txt'),
]:
tdir = os.path.join(self.src_root, 'test cases', 'failing', t)
@@ -1960,7 +1960,7 @@ class AllPlatformTests(BasePlatformTests):
self.assertIn(msg, out)
def test_mixed_language_linker_check(self):
- testdir = os.path.join(self.unit_test_dir, '97 compiler.links file arg')
+ testdir = os.path.join(self.unit_test_dir, '96 compiler.links file arg')
self.init(testdir)
cmds = self.get_meson_log_compiler_checks()
self.assertEqual(len(cmds), 5)
@@ -2278,7 +2278,7 @@ class AllPlatformTests(BasePlatformTests):
self.wipe()
def test_feature_check_usage_subprojects(self):
- testdir = os.path.join(self.unit_test_dir, '41 featurenew subprojects')
+ testdir = os.path.join(self.unit_test_dir, '40 featurenew subprojects')
out = self.init(testdir)
# Parent project warns correctly
self.assertRegex(out, "WARNING: Project targeting '>=0.45'.*'0.47.0': dict")
@@ -2360,7 +2360,7 @@ class AllPlatformTests(BasePlatformTests):
@skipIf(is_windows(), 'Help needed with fixing this test on windows')
def test_native_dep_pkgconfig(self):
testdir = os.path.join(self.unit_test_dir,
- '46 native dep pkgconfig var')
+ '45 native dep pkgconfig var')
with tempfile.NamedTemporaryFile(mode='w', delete=False) as crossfile:
crossfile.write(textwrap.dedent(
'''[binaries]
@@ -2387,7 +2387,7 @@ class AllPlatformTests(BasePlatformTests):
@skipIf(is_windows(), 'Help needed with fixing this test on windows')
def test_pkg_config_libdir(self):
testdir = os.path.join(self.unit_test_dir,
- '46 native dep pkgconfig var')
+ '45 native dep pkgconfig var')
with tempfile.NamedTemporaryFile(mode='w', delete=False) as crossfile:
crossfile.write(textwrap.dedent(
'''[binaries]
@@ -2421,7 +2421,7 @@ class AllPlatformTests(BasePlatformTests):
pickle.dump(obj, f)
def test_reconfigure(self):
- testdir = os.path.join(self.unit_test_dir, '48 reconfigure')
+ testdir = os.path.join(self.unit_test_dir, '47 reconfigure')
self.init(testdir, extra_args=['-Dopt1=val1', '-Dsub1:werror=true'])
self.setconf('-Dopt2=val2')
@@ -2572,7 +2572,7 @@ class AllPlatformTests(BasePlatformTests):
def test_clang_format(self):
if self.backend is not Backend.ninja:
raise SkipTest(f'Clang-format is for now only supported on Ninja, not {self.backend.name}')
- testdir = os.path.join(self.unit_test_dir, '54 clang-format')
+ testdir = os.path.join(self.unit_test_dir, '53 clang-format')
# Ensure that test project is in git even when running meson from tarball.
srcdir = os.path.join(self.builddir, 'src')
@@ -2626,7 +2626,7 @@ class AllPlatformTests(BasePlatformTests):
raise SkipTest('Clang-tidy breaks when ccache is used and "c++" not in path.')
if is_osx():
raise SkipTest('Apple ships a broken clang-tidy that chokes on -pipe.')
- testdir = os.path.join(self.unit_test_dir, '69 clang-tidy')
+ testdir = os.path.join(self.unit_test_dir, '68 clang-tidy')
dummydir = os.path.join(testdir, 'dummydir.h')
self.init(testdir, override_envvars={'CXX': 'c++'})
out = self.run_target('clang-tidy')
@@ -2634,7 +2634,7 @@ class AllPlatformTests(BasePlatformTests):
self.assertNotIn(dummydir, out)
def test_identity_cross(self):
- testdir = os.path.join(self.unit_test_dir, '70 cross')
+ testdir = os.path.join(self.unit_test_dir, '69 cross')
# Do a build to generate a cross file where the host is this target
self.init(testdir, extra_args=['-Dgenerate=true'])
self.meson_cross_files = [os.path.join(self.builddir, "crossfile")]
@@ -2644,7 +2644,7 @@ class AllPlatformTests(BasePlatformTests):
self.init(testdir)
def test_introspect_buildoptions_without_configured_build(self):
- testdir = os.path.join(self.unit_test_dir, '59 introspect buildoptions')
+ testdir = os.path.join(self.unit_test_dir, '58 introspect buildoptions')
testfile = os.path.join(testdir, 'meson.build')
res_nb = self.introspect_directory(testfile, ['--buildoptions'] + self.meson_args)
self.init(testdir, default_args=False)
@@ -2654,11 +2654,11 @@ class AllPlatformTests(BasePlatformTests):
self.assertListEqual(sorted(res_nb, key=lambda x: x['name']), sorted(res_wb, key=lambda x: x['name']))
def test_meson_configure_from_source_does_not_crash(self):
- testdir = os.path.join(self.unit_test_dir, '59 introspect buildoptions')
+ testdir = os.path.join(self.unit_test_dir, '58 introspect buildoptions')
self._run(self.mconf_command + [testdir])
def test_introspect_buildoptions_cross_only(self):
- testdir = os.path.join(self.unit_test_dir, '83 cross only introspect')
+ testdir = os.path.join(self.unit_test_dir, '82 cross only introspect')
testfile = os.path.join(testdir, 'meson.build')
res = self.introspect_directory(testfile, ['--buildoptions'] + self.meson_args)
optnames = [o['name'] for o in res]
@@ -2666,7 +2666,7 @@ class AllPlatformTests(BasePlatformTests):
self.assertNotIn('build.c_args', optnames)
def test_introspect_json_flat(self):
- testdir = os.path.join(self.unit_test_dir, '57 introspection')
+ testdir = os.path.join(self.unit_test_dir, '56 introspection')
self.init(testdir, extra_args=['-Dlayout=flat'])
infodir = os.path.join(self.builddir, 'meson-info')
self.assertPathExists(infodir)
@@ -2679,7 +2679,7 @@ class AllPlatformTests(BasePlatformTests):
assert os.path.relpath(out, self.builddir).startswith('meson-out')
def test_introspect_json_dump(self):
- testdir = os.path.join(self.unit_test_dir, '57 introspection')
+ testdir = os.path.join(self.unit_test_dir, '56 introspection')
self.init(testdir)
infodir = os.path.join(self.builddir, 'meson-info')
self.assertPathExists(infodir)
@@ -2881,7 +2881,7 @@ class AllPlatformTests(BasePlatformTests):
self.assertDictEqual(targets_to_find, {})
def test_introspect_file_dump_equals_all(self):
- testdir = os.path.join(self.unit_test_dir, '57 introspection')
+ testdir = os.path.join(self.unit_test_dir, '56 introspection')
self.init(testdir)
res_all = self.introspect('--all')
res_file = {}
@@ -2909,7 +2909,7 @@ class AllPlatformTests(BasePlatformTests):
self.assertEqual(res_all, res_file)
def test_introspect_meson_info(self):
- testdir = os.path.join(self.unit_test_dir, '57 introspection')
+ testdir = os.path.join(self.unit_test_dir, '56 introspection')
introfile = os.path.join(self.builddir, 'meson-info', 'meson-info.json')
self.init(testdir)
self.assertPathExists(introfile)
@@ -2923,7 +2923,7 @@ class AllPlatformTests(BasePlatformTests):
self.assertEqual(res1['build_files_updated'], True)
def test_introspect_config_update(self):
- testdir = os.path.join(self.unit_test_dir, '57 introspection')
+ testdir = os.path.join(self.unit_test_dir, '56 introspection')
introfile = os.path.join(self.builddir, 'meson-info', 'intro-buildoptions.json')
self.init(testdir)
self.assertPathExists(introfile)
@@ -2951,7 +2951,7 @@ class AllPlatformTests(BasePlatformTests):
self.assertListEqual(res1, res2)
def test_introspect_targets_from_source(self):
- testdir = os.path.join(self.unit_test_dir, '57 introspection')
+ testdir = os.path.join(self.unit_test_dir, '56 introspection')
testfile = os.path.join(testdir, 'meson.build')
introfile = os.path.join(self.builddir, 'meson-info', 'intro-targets.json')
self.init(testdir)
@@ -2983,7 +2983,7 @@ class AllPlatformTests(BasePlatformTests):
self.assertListEqual(res_nb, res_wb)
def test_introspect_ast_source(self):
- testdir = os.path.join(self.unit_test_dir, '57 introspection')
+ testdir = os.path.join(self.unit_test_dir, '56 introspection')
testfile = os.path.join(testdir, 'meson.build')
res_nb = self.introspect_directory(testfile, ['--ast'] + self.meson_args)
@@ -3061,7 +3061,7 @@ class AllPlatformTests(BasePlatformTests):
self.assertEqual(node_counter[n], c)
def test_introspect_dependencies_from_source(self):
- testdir = os.path.join(self.unit_test_dir, '57 introspection')
+ testdir = os.path.join(self.unit_test_dir, '56 introspection')
testfile = os.path.join(testdir, 'meson.build')
res_nb = self.introspect_directory(testfile, ['--scan-dependencies'] + self.meson_args)
expected = [
@@ -3112,16 +3112,16 @@ class AllPlatformTests(BasePlatformTests):
@skip_if_no_cmake
def test_cmake_prefix_path(self):
- testdir = os.path.join(self.unit_test_dir, '63 cmake_prefix_path')
+ testdir = os.path.join(self.unit_test_dir, '62 cmake_prefix_path')
self.init(testdir, extra_args=['-Dcmake_prefix_path=' + os.path.join(testdir, 'prefix')])
@skip_if_no_cmake
def test_cmake_parser(self):
- testdir = os.path.join(self.unit_test_dir, '64 cmake parser')
+ testdir = os.path.join(self.unit_test_dir, '63 cmake parser')
self.init(testdir, extra_args=['-Dcmake_prefix_path=' + os.path.join(testdir, 'prefix')])
def test_alias_target(self):
- testdir = os.path.join(self.unit_test_dir, '65 alias target')
+ testdir = os.path.join(self.unit_test_dir, '64 alias target')
self.init(testdir)
self.build()
self.assertPathDoesNotExist(os.path.join(self.builddir, 'prog' + exe_suffix))
@@ -3138,7 +3138,7 @@ class AllPlatformTests(BasePlatformTests):
self._run(self.mconf_command + [self.builddir])
def test_summary(self):
- testdir = os.path.join(self.unit_test_dir, '72 summary')
+ testdir = os.path.join(self.unit_test_dir, '71 summary')
out = self.init(testdir, extra_args=['-Denabled_opt=enabled'])
expected = textwrap.dedent(r'''
Some Subproject 2.0
@@ -3279,7 +3279,7 @@ class AllPlatformTests(BasePlatformTests):
self.assertPathDoesNotExist(os.path.join(self.builddir, get_exe_name('trivialprog')))
def test_spurious_reconfigure_built_dep_file(self):
- testdir = os.path.join(self.unit_test_dir, '74 dep files')
+ testdir = os.path.join(self.unit_test_dir, '73 dep files')
# Regression test: Spurious reconfigure was happening when build
# directory is inside source directory.
@@ -3573,7 +3573,7 @@ class AllPlatformTests(BasePlatformTests):
def test_wrap_git(self):
with tempfile.TemporaryDirectory() as tmpdir:
srcdir = os.path.join(tmpdir, 'src')
- shutil.copytree(os.path.join(self.unit_test_dir, '81 wrap-git'), srcdir)
+ shutil.copytree(os.path.join(self.unit_test_dir, '80 wrap-git'), srcdir)
upstream = os.path.join(srcdir, 'subprojects', 'wrap_git_upstream')
upstream_uri = Path(upstream).as_uri()
_git_init(upstream)
@@ -3605,7 +3605,7 @@ class AllPlatformTests(BasePlatformTests):
@skipUnless(is_linux() and (re.search('^i.86$|^x86$|^x64$|^x86_64$|^amd64$', platform.processor()) is not None),
'Requires ASM compiler for x86 or x86_64 platform currently only available on Linux CI runners')
def test_nostdlib(self):
- testdir = os.path.join(self.unit_test_dir, '78 nostdlib')
+ testdir = os.path.join(self.unit_test_dir, '77 nostdlib')
machinefile = os.path.join(self.builddir, 'machine.txt')
with open(machinefile, 'w', encoding='utf-8') as f:
f.write(textwrap.dedent('''
@@ -3626,7 +3626,7 @@ class AllPlatformTests(BasePlatformTests):
self.build()
def test_meson_version_compare(self):
- testdir = os.path.join(self.unit_test_dir, '82 meson version compare')
+ testdir = os.path.join(self.unit_test_dir, '81 meson version compare')
out = self.init(testdir)
self.assertNotRegex(out, r'WARNING')
@@ -3683,7 +3683,7 @@ class AllPlatformTests(BasePlatformTests):
# files for that project are changed
if os.environ.get('MESON_CI_JOBNAME') == 'linux-bionic-gcc':
raise SkipTest('Unsupported CMake version')
- testdir = os.path.join(self.unit_test_dir, '85 nested subproject regenerate depends')
+ testdir = os.path.join(self.unit_test_dir, '84 nested subproject regenerate depends')
cmakefile = Path(testdir) / 'subprojects' / 'sub2' / 'CMakeLists.txt'
self.init(testdir)
self.build()
@@ -3701,7 +3701,7 @@ class AllPlatformTests(BasePlatformTests):
envs = {'CPPFLAGS': '-DCPPFLAG',
'CFLAGS': '-DCFLAG',
'CXXFLAGS': '-DCXXFLAG'}
- srcdir = os.path.join(self.unit_test_dir, '89 multiple envvars')
+ srcdir = os.path.join(self.unit_test_dir, '88 multiple envvars')
self.init(srcdir, override_envvars=envs)
self.build()
@@ -3711,7 +3711,7 @@ class AllPlatformTests(BasePlatformTests):
self.init(srcdir, extra_args=['-Dbuild.b_lto=true'])
def test_install_skip_subprojects(self):
- testdir = os.path.join(self.unit_test_dir, '92 install skip subprojects')
+ testdir = os.path.join(self.unit_test_dir, '91 install skip subprojects')
self.init(testdir)
self.build()
@@ -3757,14 +3757,14 @@ class AllPlatformTests(BasePlatformTests):
check_installed_files(['--skip-subprojects', 'another'], all_expected)
def test_adding_subproject_to_configure_project(self) -> None:
- srcdir = os.path.join(self.unit_test_dir, '93 new subproject in configured project')
+ srcdir = os.path.join(self.unit_test_dir, '92 new subproject in configured project')
self.init(srcdir)
self.build()
self.setconf('-Duse-sub=true')
self.build()
def test_devenv(self):
- testdir = os.path.join(self.unit_test_dir, '91 devenv')
+ testdir = os.path.join(self.unit_test_dir, '90 devenv')
self.init(testdir)
self.build()
@@ -3780,7 +3780,7 @@ class AllPlatformTests(BasePlatformTests):
if not shutil.which('clang-format'):
raise SkipTest('clang-format not found')
- testdir = os.path.join(self.unit_test_dir, '94 clangformat')
+ testdir = os.path.join(self.unit_test_dir, '93 clangformat')
newdir = os.path.join(self.builddir, 'testdir')
shutil.copytree(testdir, newdir)
self.new_builddir()
@@ -3805,7 +3805,7 @@ class AllPlatformTests(BasePlatformTests):
self.build('clang-format-check')
def test_custom_target_implicit_include(self):
- testdir = os.path.join(self.unit_test_dir, '95 custominc')
+ testdir = os.path.join(self.unit_test_dir, '94 custominc')
self.init(testdir)
self.build()
compdb = self.get_compdb()
@@ -3845,7 +3845,7 @@ class AllPlatformTests(BasePlatformTests):
self.assertEqual(sorted(link_args), sorted(['-flto']))
def test_install_tag(self) -> None:
- testdir = os.path.join(self.unit_test_dir, '99 install all targets')
+ testdir = os.path.join(self.unit_test_dir, '98 install all targets')
self.init(testdir)
self.build()
@@ -3988,7 +3988,7 @@ class AllPlatformTests(BasePlatformTests):
do_install(None, expected_all, 2)
def test_introspect_install_plan(self):
- testdir = os.path.join(self.unit_test_dir, '99 install all targets')
+ testdir = os.path.join(self.unit_test_dir, '98 install all targets')
introfile = os.path.join(self.builddir, 'meson-info', 'intro-install_plan.json')
self.init(testdir)
self.assertPathExists(introfile)
@@ -4180,7 +4180,7 @@ class AllPlatformTests(BasePlatformTests):
}}
''')
- testdir = os.path.join(self.unit_test_dir, '102 rlib linkage')
+ testdir = os.path.join(self.unit_test_dir, '101 rlib linkage')
gen_file = os.path.join(testdir, 'lib.rs')
with open(gen_file, 'w') as f:
f.write(template.format(0))
@@ -4200,7 +4200,7 @@ class AllPlatformTests(BasePlatformTests):
self.assertIn('exit status 39', cm.exception.stdout)
def test_custom_target_name(self):
- testdir = os.path.join(self.unit_test_dir, '100 custom target name')
+ testdir = os.path.join(self.unit_test_dir, '99 custom target name')
self.init(testdir)
out = self.build()
if self.backend is Backend.ninja:
diff --git a/unittests/linuxcrosstests.py b/unittests/linuxcrosstests.py
index 16f7c24..28bf415 100644
--- a/unittests/linuxcrosstests.py
+++ b/unittests/linuxcrosstests.py
@@ -86,7 +86,7 @@ class LinuxCrossArmTests(BaseLinuxCrossTests):
def test_cross_libdir_subproject(self):
# Guard against a regression where calling "subproject"
# would reset the value of libdir to its default value.
- testdir = os.path.join(self.unit_test_dir, '76 subdir libdir')
+ testdir = os.path.join(self.unit_test_dir, '75 subdir libdir')
self.init(testdir, extra_args=['--libdir=fuf'])
for i in self.introspect('--buildoptions'):
if i['name'] == 'libdir':
@@ -96,7 +96,7 @@ class LinuxCrossArmTests(BaseLinuxCrossTests):
def test_std_remains(self):
# C_std defined in project options must be in effect also when cross compiling.
- testdir = os.path.join(self.unit_test_dir, '51 noncross options')
+ testdir = os.path.join(self.unit_test_dir, '50 noncross options')
self.init(testdir)
compdb = self.get_compdb()
self.assertRegex(compdb[0]['command'], '-std=c99')
@@ -106,7 +106,7 @@ class LinuxCrossArmTests(BaseLinuxCrossTests):
def test_pkg_config_option(self):
if not shutil.which('arm-linux-gnueabihf-pkg-config'):
raise unittest.SkipTest('Cross-pkgconfig not found.')
- testdir = os.path.join(self.unit_test_dir, '58 pkg_config_path option')
+ testdir = os.path.join(self.unit_test_dir, '57 pkg_config_path option')
self.init(testdir, extra_args=[
'-Dbuild.pkg_config_path=' + os.path.join(testdir, 'build_extra_path'),
'-Dpkg_config_path=' + os.path.join(testdir, 'host_extra_path'),
@@ -117,7 +117,7 @@ class LinuxCrossArmTests(BaseLinuxCrossTests):
https://github.com/mesonbuild/meson/issues/7997
check run native test in crossbuild without exe wrapper
'''
- testdir = os.path.join(self.unit_test_dir, '88 run native test')
+ testdir = os.path.join(self.unit_test_dir, '87 run native test')
stamp_file = os.path.join(self.builddir, 'native_test_has_run.stamp')
self.init(testdir)
self.build()
@@ -185,7 +185,7 @@ class LinuxCrossMingwTests(BaseLinuxCrossTests):
@skipIfNoPkgconfig
def test_cross_pkg_config_option(self):
- testdir = os.path.join(self.unit_test_dir, '58 pkg_config_path option')
+ testdir = os.path.join(self.unit_test_dir, '57 pkg_config_path option')
self.init(testdir, extra_args=[
'-Dbuild.pkg_config_path=' + os.path.join(testdir, 'build_extra_path'),
'-Dpkg_config_path=' + os.path.join(testdir, 'host_extra_path'),
diff --git a/unittests/linuxliketests.py b/unittests/linuxliketests.py
index ecb653f..a942df1 100644
--- a/unittests/linuxliketests.py
+++ b/unittests/linuxliketests.py
@@ -945,7 +945,7 @@ class LinuxlikeTests(BasePlatformTests):
'''
if is_cygwin():
raise SkipTest('Windows PE/COFF binaries do not use RPATH')
- testdir = os.path.join(self.unit_test_dir, '90 pkgconfig build rpath order')
+ testdir = os.path.join(self.unit_test_dir, '89 pkgconfig build rpath order')
self.init(testdir, override_envvars={'PKG_CONFIG_PATH': testdir})
self.build()
build_rpath = get_rpath(os.path.join(self.builddir, 'prog'))
@@ -964,7 +964,7 @@ class LinuxlikeTests(BasePlatformTests):
if is_osx():
raise SkipTest('Global RPATHs via LDFLAGS not yet supported on MacOS (does anybody need it?)')
- testdir = os.path.join(self.unit_test_dir, '80 global-rpath')
+ testdir = os.path.join(self.unit_test_dir, '79 global-rpath')
oldinstalldir = self.installdir
# Build and install an external library without DESTDIR.
@@ -1129,7 +1129,7 @@ class LinuxlikeTests(BasePlatformTests):
@skipIfNoPkgconfig
def test_pkgconfig_relative_paths(self):
- testdir = os.path.join(self.unit_test_dir, '62 pkgconfig relative paths')
+ testdir = os.path.join(self.unit_test_dir, '61 pkgconfig relative paths')
pkg_dir = os.path.join(testdir, 'pkgconfig')
self.assertPathExists(os.path.join(pkg_dir, 'librelativepath.pc'))
@@ -1183,7 +1183,7 @@ class LinuxlikeTests(BasePlatformTests):
Check that Meson produces valid static archives with --strip enabled
'''
with tempfile.TemporaryDirectory() as tempdirname:
- testdirbase = os.path.join(self.unit_test_dir, '66 static archive stripping')
+ testdirbase = os.path.join(self.unit_test_dir, '65 static archive stripping')
# build lib
self.new_builddir()
@@ -1220,7 +1220,7 @@ class LinuxlikeTests(BasePlatformTests):
@skipIfNoPkgconfig
@skip_if_not_language('cs')
def test_pkgconfig_csharp_library(self):
- testdir = os.path.join(self.unit_test_dir, '50 pkgconfig csharp library')
+ testdir = os.path.join(self.unit_test_dir, '49 pkgconfig csharp library')
self.init(testdir)
myenv = os.environ.copy()
myenv['PKG_CONFIG_PATH'] = _prepend_pkg_config_path(self.privatedir)
@@ -1233,7 +1233,7 @@ class LinuxlikeTests(BasePlatformTests):
'''
Test that libraries are listed before their dependencies.
'''
- testdir = os.path.join(self.unit_test_dir, '53 pkgconfig static link order')
+ testdir = os.path.join(self.unit_test_dir, '52 pkgconfig static link order')
self.init(testdir)
myenv = os.environ.copy()
myenv['PKG_CONFIG_PATH'] = _prepend_pkg_config_path(self.privatedir)
@@ -1245,7 +1245,7 @@ class LinuxlikeTests(BasePlatformTests):
'''
Test that the dependencies are always listed in a deterministic order.
'''
- testdir = os.path.join(self.unit_test_dir, '43 dep order')
+ testdir = os.path.join(self.unit_test_dir, '42 dep order')
self.init(testdir)
with open(os.path.join(self.builddir, 'build.ninja'), encoding='utf-8') as bfile:
for line in bfile:
@@ -1260,7 +1260,7 @@ class LinuxlikeTests(BasePlatformTests):
'''
if is_cygwin():
raise SkipTest('rpath are not used on Cygwin')
- testdir = os.path.join(self.unit_test_dir, '42 rpath order')
+ testdir = os.path.join(self.unit_test_dir, '41 rpath order')
self.init(testdir)
if is_osx():
rpathre = re.compile(r'-rpath,.*/subprojects/sub1.*-rpath,.*/subprojects/sub2')
@@ -1296,7 +1296,7 @@ class LinuxlikeTests(BasePlatformTests):
'''
oldprefix = self.prefix
# Install external library so we can find it
- testdir = os.path.join(self.unit_test_dir, '40 external, internal library rpath', 'external library')
+ testdir = os.path.join(self.unit_test_dir, '39 external, internal library rpath', 'external library')
# install into installdir without using DESTDIR
installdir = self.installdir
self.prefix = installdir
@@ -1308,7 +1308,7 @@ class LinuxlikeTests(BasePlatformTests):
self.new_builddir()
env = {'LIBRARY_PATH': os.path.join(installdir, self.libdir),
'PKG_CONFIG_PATH': _prepend_pkg_config_path(os.path.join(installdir, self.libdir, 'pkgconfig'))}
- testdir = os.path.join(self.unit_test_dir, '40 external, internal library rpath', 'built library')
+ testdir = os.path.join(self.unit_test_dir, '39 external, internal library rpath', 'built library')
# install into installdir without using DESTDIR
self.prefix = self.installdir
self.init(testdir, override_envvars=env)
@@ -1348,7 +1348,7 @@ class LinuxlikeTests(BasePlatformTests):
see: https://github.com/mesonbuild/meson/issues/9000
https://stackoverflow.com/questions/48532868/gcc-library-option-with-a-colon-llibevent-a
'''
- testdir = os.path.join(self.unit_test_dir, '98 link full name','libtestprovider')
+ testdir = os.path.join(self.unit_test_dir, '97 link full name','libtestprovider')
oldprefix = self.prefix
# install into installdir without using DESTDIR
installdir = self.installdir
@@ -1361,7 +1361,7 @@ class LinuxlikeTests(BasePlatformTests):
self.new_builddir()
env = {'LIBRARY_PATH': os.path.join(installdir, self.libdir),
'PKG_CONFIG_PATH': _prepend_pkg_config_path(os.path.join(installdir, self.libdir, 'pkgconfig'))}
- testdir = os.path.join(self.unit_test_dir, '98 link full name','proguser')
+ testdir = os.path.join(self.unit_test_dir, '97 link full name','proguser')
self.init(testdir,override_envvars=env)
# test for link with full path
@@ -1394,7 +1394,7 @@ class LinuxlikeTests(BasePlatformTests):
oldinstalldir = self.installdir
# Build and install both external libraries without DESTDIR
- val1dir = os.path.join(self.unit_test_dir, '75 pkgconfig prefixes', 'val1')
+ val1dir = os.path.join(self.unit_test_dir, '74 pkgconfig prefixes', 'val1')
val1prefix = os.path.join(oldinstalldir, 'val1')
self.prefix = val1prefix
self.installdir = val1prefix
@@ -1405,7 +1405,7 @@ class LinuxlikeTests(BasePlatformTests):
env1 = {}
env1['PKG_CONFIG_PATH'] = os.path.join(val1prefix, self.libdir, 'pkgconfig')
- val2dir = os.path.join(self.unit_test_dir, '75 pkgconfig prefixes', 'val2')
+ val2dir = os.path.join(self.unit_test_dir, '74 pkgconfig prefixes', 'val2')
val2prefix = os.path.join(oldinstalldir, 'val2')
self.prefix = val2prefix
self.installdir = val2prefix
@@ -1417,7 +1417,7 @@ class LinuxlikeTests(BasePlatformTests):
# Build, install, and run the client program
env2 = {}
env2['PKG_CONFIG_PATH'] = os.path.join(val2prefix, self.libdir, 'pkgconfig')
- testdir = os.path.join(self.unit_test_dir, '75 pkgconfig prefixes', 'client')
+ testdir = os.path.join(self.unit_test_dir, '74 pkgconfig prefixes', 'client')
testprefix = os.path.join(oldinstalldir, 'client')
self.prefix = testprefix
self.installdir = testprefix
@@ -1471,7 +1471,7 @@ class LinuxlikeTests(BasePlatformTests):
@skipIfNoPkgconfigDep('gmodule-2.0')
def test_ldflag_dedup(self):
- testdir = os.path.join(self.unit_test_dir, '52 ldflagdedup')
+ testdir = os.path.join(self.unit_test_dir, '51 ldflagdedup')
if is_cygwin() or is_osx():
raise SkipTest('Not applicable on Cygwin or OSX.')
env = get_fake_env()
@@ -1489,7 +1489,7 @@ class LinuxlikeTests(BasePlatformTests):
self.assertEqual(max_count, 1, 'Export dynamic incorrectly deduplicated.')
def test_compiler_libs_static_dedup(self):
- testdir = os.path.join(self.unit_test_dir, '56 dedup compiler libs')
+ testdir = os.path.join(self.unit_test_dir, '55 dedup compiler libs')
self.init(testdir)
build_ninja = os.path.join(self.builddir, 'build.ninja')
with open(build_ninja, encoding='utf-8') as f:
@@ -1504,7 +1504,7 @@ class LinuxlikeTests(BasePlatformTests):
@skipIfNoPkgconfig
def test_noncross_options(self):
# C_std defined in project options must be in effect also when native compiling.
- testdir = os.path.join(self.unit_test_dir, '51 noncross options')
+ testdir = os.path.join(self.unit_test_dir, '50 noncross options')
self.init(testdir, extra_args=['-Dpkg_config_path=' + testdir])
compdb = self.get_compdb()
self.assertEqual(len(compdb), 2)
@@ -1513,7 +1513,7 @@ class LinuxlikeTests(BasePlatformTests):
self.build()
def test_identity_cross(self):
- testdir = os.path.join(self.unit_test_dir, '61 identity cross')
+ testdir = os.path.join(self.unit_test_dir, '60 identity cross')
constantsfile = tempfile.NamedTemporaryFile(mode='w')
constantsfile.write(textwrap.dedent('''\
@@ -1542,7 +1542,7 @@ class LinuxlikeTests(BasePlatformTests):
self.init(testdir)
def test_identity_cross_env(self):
- testdir = os.path.join(self.unit_test_dir, '61 identity cross')
+ testdir = os.path.join(self.unit_test_dir, '60 identity cross')
env = {
'CC_FOR_BUILD': '"' + os.path.join(testdir, 'build_wrapper.py') + '"',
}
@@ -1562,7 +1562,7 @@ class LinuxlikeTests(BasePlatformTests):
raise SkipTest("Cygwin doesn't support LD_LIBRARY_PATH.")
# Build some libraries and install them
- testdir = os.path.join(self.unit_test_dir, '67 static link/lib')
+ testdir = os.path.join(self.unit_test_dir, '66 static link/lib')
libdir = os.path.join(self.installdir, self.libdir)
oldprefix = self.prefix
self.prefix = self.installdir
@@ -1574,7 +1574,7 @@ class LinuxlikeTests(BasePlatformTests):
self.prefix = oldprefix
meson_args = [f'-Dc_link_args=-L{libdir}',
'--fatal-meson-warnings']
- testdir = os.path.join(self.unit_test_dir, '67 static link')
+ testdir = os.path.join(self.unit_test_dir, '66 static link')
env = {'PKG_CONFIG_LIBDIR': os.path.join(libdir, 'pkgconfig')}
self.init(testdir, extra_args=meson_args, override_envvars=env)
self.build()
@@ -1648,7 +1648,7 @@ class LinuxlikeTests(BasePlatformTests):
return hashlib.sha256(f.read()).hexdigest()
def test_wrap_with_file_url(self):
- testdir = os.path.join(self.unit_test_dir, '73 wrap file url')
+ testdir = os.path.join(self.unit_test_dir, '72 wrap file url')
source_filename = os.path.join(testdir, 'subprojects', 'foo.tar.xz')
patch_filename = os.path.join(testdir, 'subprojects', 'foo-patch.tar.xz')
wrap_filename = os.path.join(testdir, 'subprojects', 'foo.wrap')
@@ -1705,7 +1705,7 @@ class LinuxlikeTests(BasePlatformTests):
self.init(d, override_envvars={'PKG_CONFIG_LIBDIR': privatedir})
def test_as_link_whole(self):
- testdir = os.path.join(self.unit_test_dir, '77 as link whole')
+ testdir = os.path.join(self.unit_test_dir, '76 as link whole')
self.init(testdir)
with open(os.path.join(self.privatedir, 'bar1.pc'), encoding='utf-8') as f:
content = f.read()
@@ -1722,7 +1722,7 @@ class LinuxlikeTests(BasePlatformTests):
raise SkipTest('Prelinking not supported on Darwin.')
if 'clang' in os.environ.get('CC', 'dummy'):
raise SkipTest('Prelinking not supported with Clang.')
- testdir = os.path.join(self.unit_test_dir, '87 prelinking')
+ testdir = os.path.join(self.unit_test_dir, '86 prelinking')
env = get_fake_env(testdir, self.builddir, self.prefix)
cc = detect_c_compiler(env, MachineChoice.HOST)
if cc.id == "gcc":
@@ -1777,7 +1777,7 @@ class LinuxlikeTests(BasePlatformTests):
@skipUnless(is_linux(), 'Test only applicable to Linux')
def test_install_strip(self):
- testdir = os.path.join(self.unit_test_dir, '104 strip')
+ testdir = os.path.join(self.unit_test_dir, '103 strip')
self.init(testdir)
self.build()
diff --git a/unittests/machinefiletests.py b/unittests/machinefiletests.py
index 0a756b5..7d75ebc 100644
--- a/unittests/machinefiletests.py
+++ b/unittests/machinefiletests.py
@@ -62,7 +62,7 @@ class NativeFileTests(BasePlatformTests):
def setUp(self):
super().setUp()
- self.testcase = os.path.join(self.unit_test_dir, '47 native file binary')
+ self.testcase = os.path.join(self.unit_test_dir, '46 native file binary')
self.current_config = 0
self.current_wrapper = 0
@@ -379,12 +379,12 @@ class NativeFileTests(BasePlatformTests):
self.assertEqual(compiler.version, '1.2345')
def test_native_file_dirs(self):
- testcase = os.path.join(self.unit_test_dir, '60 native file override')
+ testcase = os.path.join(self.unit_test_dir, '59 native file override')
self.init(testcase, default_args=False,
extra_args=['--native-file', os.path.join(testcase, 'nativefile')])
def test_native_file_dirs_overridden(self):
- testcase = os.path.join(self.unit_test_dir, '60 native file override')
+ testcase = os.path.join(self.unit_test_dir, '59 native file override')
self.init(testcase, default_args=False,
extra_args=['--native-file', os.path.join(testcase, 'nativefile'),
'-Ddef_libdir=liblib', '-Dlibdir=liblib'])
@@ -422,7 +422,7 @@ class NativeFileTests(BasePlatformTests):
self.init(testcase, extra_args=['--native-file', config, '-Dother_one=false'])
def test_user_options_subproject(self):
- testcase = os.path.join(self.unit_test_dir, '79 user options for subproject')
+ testcase = os.path.join(self.unit_test_dir, '78 user options for subproject')
s = os.path.join(testcase, 'subprojects')
if not os.path.exists(s):
@@ -650,7 +650,7 @@ class CrossFileTests(BasePlatformTests):
''')
def test_needs_exe_wrapper_true(self):
- testdir = os.path.join(self.unit_test_dir, '71 cross test passed')
+ testdir = os.path.join(self.unit_test_dir, '70 cross test passed')
with tempfile.TemporaryDirectory() as d:
p = Path(d) / 'crossfile'
with p.open('wt', encoding='utf-8') as f:
@@ -660,7 +660,7 @@ class CrossFileTests(BasePlatformTests):
self.assertRegex(out, r'Skipped:\s*1\s*\n')
def test_needs_exe_wrapper_false(self):
- testdir = os.path.join(self.unit_test_dir, '71 cross test passed')
+ testdir = os.path.join(self.unit_test_dir, '70 cross test passed')
with tempfile.TemporaryDirectory() as d:
p = Path(d) / 'crossfile'
with p.open('wt', encoding='utf-8') as f:
@@ -670,7 +670,7 @@ class CrossFileTests(BasePlatformTests):
self.assertNotRegex(out, r'Skipped:\s*1\n')
def test_needs_exe_wrapper_true_wrapper(self):
- testdir = os.path.join(self.unit_test_dir, '71 cross test passed')
+ testdir = os.path.join(self.unit_test_dir, '70 cross test passed')
with tempfile.TemporaryDirectory() as d:
s = Path(d) / 'wrapper.py'
with s.open('wt', encoding='utf-8') as f:
@@ -687,7 +687,7 @@ class CrossFileTests(BasePlatformTests):
self.assertRegex(out, r'Ok:\s*3\s*\n')
def test_cross_exe_passed_no_wrapper(self):
- testdir = os.path.join(self.unit_test_dir, '71 cross test passed')
+ testdir = os.path.join(self.unit_test_dir, '70 cross test passed')
with tempfile.TemporaryDirectory() as d:
p = Path(d) / 'crossfile'
with p.open('wt', encoding='utf-8') as f:
@@ -756,7 +756,7 @@ class CrossFileTests(BasePlatformTests):
return filename
def test_cross_file_dirs(self):
- testcase = os.path.join(self.unit_test_dir, '60 native file override')
+ testcase = os.path.join(self.unit_test_dir, '59 native file override')
self.init(testcase, default_args=False,
extra_args=['--native-file', os.path.join(testcase, 'nativefile'),
'--cross-file', os.path.join(testcase, 'crossfile'),
@@ -774,7 +774,7 @@ class CrossFileTests(BasePlatformTests):
'-Ddef_sysconfdir=sysconfbar'])
def test_cross_file_dirs_overridden(self):
- testcase = os.path.join(self.unit_test_dir, '60 native file override')
+ testcase = os.path.join(self.unit_test_dir, '59 native file override')
self.init(testcase, default_args=False,
extra_args=['--native-file', os.path.join(testcase, 'nativefile'),
'--cross-file', os.path.join(testcase, 'crossfile'),
@@ -793,7 +793,7 @@ class CrossFileTests(BasePlatformTests):
def test_cross_file_dirs_chain(self):
# crossfile2 overrides crossfile overrides nativefile
- testcase = os.path.join(self.unit_test_dir, '60 native file override')
+ testcase = os.path.join(self.unit_test_dir, '59 native file override')
self.init(testcase, default_args=False,
extra_args=['--native-file', os.path.join(testcase, 'nativefile'),
'--cross-file', os.path.join(testcase, 'crossfile'),
diff --git a/unittests/platformagnostictests.py b/unittests/platformagnostictests.py
index c5e5233..b5907a1 100644
--- a/unittests/platformagnostictests.py
+++ b/unittests/platformagnostictests.py
@@ -32,7 +32,7 @@ class PlatformAgnosticTests(BasePlatformTests):
Tests that find_program() with a relative path does not find the program
in current workdir.
'''
- testdir = os.path.join(self.unit_test_dir, '101 relative find program')
+ testdir = os.path.join(self.unit_test_dir, '100 relative find program')
self.init(testdir, workdir=testdir)
def test_invalid_option_names(self):
@@ -68,5 +68,5 @@ class PlatformAgnosticTests(BasePlatformTests):
interp.process(fname)
def test_python_dependency_without_pkgconfig(self):
- testdir = os.path.join(self.unit_test_dir, '103 python without pkgconfig')
+ testdir = os.path.join(self.unit_test_dir, '102 python without pkgconfig')
self.init(testdir, override_envvars={'PKG_CONFIG': 'notfound'})
diff --git a/unittests/windowstests.py b/unittests/windowstests.py
index d3ad932..7339ca8 100644
--- a/unittests/windowstests.py
+++ b/unittests/windowstests.py
@@ -169,7 +169,7 @@ class WindowsTests(BasePlatformTests):
self.assertRebuiltTarget('prog_1')
def test_msvc_cpp17(self):
- testdir = os.path.join(self.unit_test_dir, '45 vscpp17')
+ testdir = os.path.join(self.unit_test_dir, '44 vscpp17')
env = get_fake_env(testdir, self.builddir, self.prefix)
cc = detect_c_compiler(env, MachineChoice.HOST)
@@ -357,7 +357,7 @@ class WindowsTests(BasePlatformTests):
raise SkipTest('C++ modules is only supported with Visual Studio.')
if version_compare(os.environ['VSCMD_VER'], '<16.10.0'):
raise SkipTest('C++ modules are only supported with VS 2019 Preview or newer.')
- self.init(os.path.join(self.unit_test_dir, '86 cpp modules'))
+ self.init(os.path.join(self.unit_test_dir, '85 cpp modules'))
self.build()
def test_non_utf8_fails(self):