Skip to content

Commit fbeedf4

Browse files
committed
Condense test directories.
1 parent 5cc511b commit fbeedf4

File tree

84 files changed

+17
-17
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+17
-17
lines changed
File renamed without changes.

unittests/allplatformstests.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ def test_forcefallback(self):
627627
self.run_tests()
628628

629629
def test_implicit_forcefallback(self):
630-
testdir = os.path.join(self.unit_test_dir, '96 implicit force fallback')
630+
testdir = os.path.join(self.unit_test_dir, '95 implicit force fallback')
631631
with self.assertRaises(subprocess.CalledProcessError):
632632
self.init(testdir)
633633
self.init(testdir, extra_args=['--wrap-mode=forcefallback'])
@@ -2061,7 +2061,7 @@ def check_pcfile(name, *, relocatable, levels=2):
20612061
check_pcfile('libvartest2.pc', relocatable=False)
20622062

20632063
self.wipe()
2064-
testdir_abs = os.path.join(self.unit_test_dir, '106 pkgconfig relocatable with absolute path')
2064+
testdir_abs = os.path.join(self.unit_test_dir, '105 pkgconfig relocatable with absolute path')
20652065
self.init(testdir_abs)
20662066

20672067
check_pcfile('libsimple.pc', relocatable=True, levels=3)
@@ -2472,7 +2472,7 @@ def test_check_module_linking(self):
24722472
self.assertIn(msg, out)
24732473

24742474
def test_mixed_language_linker_check(self):
2475-
testdir = os.path.join(self.unit_test_dir, '97 compiler.links file arg')
2475+
testdir = os.path.join(self.unit_test_dir, '96 compiler.links file arg')
24762476
self.init(testdir)
24772477
cmds = self.get_meson_log_compiler_checks()
24782478
self.assertEqual(len(cmds), 5)
@@ -4297,7 +4297,7 @@ def test_build_b_options(self) -> None:
42974297
self.init(srcdir, extra_args=['-Dbuild.b_lto=true'])
42984298

42994299
def test_install_skip_subprojects(self):
4300-
testdir = os.path.join(self.unit_test_dir, '92 install skip subprojects')
4300+
testdir = os.path.join(self.unit_test_dir, '91 install skip subprojects')
43014301
self.init(testdir)
43024302
self.build()
43034303

@@ -4344,7 +4344,7 @@ def check_installed_files(extra_args, expected):
43444344
check_installed_files(['--skip-subprojects', 'another'], all_expected)
43454345

43464346
def test_adding_subproject_to_configure_project(self) -> None:
4347-
srcdir = os.path.join(self.unit_test_dir, '93 new subproject in configured project')
4347+
srcdir = os.path.join(self.unit_test_dir, '92 new subproject in configured project')
43484348
self.init(srcdir)
43494349
self.build()
43504350
self.setconf('-Duse-sub=true')
@@ -4394,7 +4394,7 @@ def test_clang_format_check(self):
43944394
if not shutil.which('clang-format'):
43954395
raise SkipTest('clang-format not found')
43964396

4397-
testdir = os.path.join(self.unit_test_dir, '94 clangformat')
4397+
testdir = os.path.join(self.unit_test_dir, '93 clangformat')
43984398
newdir = os.path.join(self.builddir, 'testdir')
43994399
shutil.copytree(testdir, newdir)
44004400
self.new_builddir()
@@ -4419,7 +4419,7 @@ def test_clang_format_check(self):
44194419
self.build('clang-format-check')
44204420

44214421
def test_custom_target_implicit_include(self):
4422-
testdir = os.path.join(self.unit_test_dir, '95 custominc')
4422+
testdir = os.path.join(self.unit_test_dir, '94 custominc')
44234423
self.init(testdir)
44244424
self.build()
44254425
compdb = self.get_compdb()
@@ -4459,7 +4459,7 @@ def test_env_flags_to_linker(self) -> None:
44594459
self.assertEqual(sorted(link_args), sorted(['-flto']))
44604460

44614461
def test_install_tag(self) -> None:
4462-
testdir = os.path.join(self.unit_test_dir, '99 install all targets')
4462+
testdir = os.path.join(self.unit_test_dir, '98 install all targets')
44634463
self.init(testdir)
44644464
self.build()
44654465

@@ -4630,7 +4630,7 @@ def test_install_script_dry_run(self):
46304630

46314631

46324632
def test_introspect_install_plan(self):
4633-
testdir = os.path.join(self.unit_test_dir, '99 install all targets')
4633+
testdir = os.path.join(self.unit_test_dir, '98 install all targets')
46344634
introfile = os.path.join(self.builddir, 'meson-info', 'intro-install_plan.json')
46354635
self.init(testdir)
46364636
self.assertPathExists(introfile)
@@ -4902,7 +4902,7 @@ def test_rust_rlib_linkage(self) -> None:
49024902
}}
49034903
''')
49044904

4905-
testdir = os.path.join(self.unit_test_dir, '102 rlib linkage')
4905+
testdir = os.path.join(self.unit_test_dir, '101 rlib linkage')
49064906
gen_file = os.path.join(testdir, 'lib.rs')
49074907
with open(gen_file, 'w', encoding='utf-8') as f:
49084908
f.write(template.format(0))
@@ -4950,7 +4950,7 @@ def test_bindgen_drops_invalid(self) -> None:
49504950
return
49514951

49524952
def test_custom_target_name(self):
4953-
testdir = os.path.join(self.unit_test_dir, '100 custom target name')
4953+
testdir = os.path.join(self.unit_test_dir, '99 custom target name')
49544954
self.init(testdir)
49554955
out = self.build()
49564956
if self.backend is Backend.ninja:

unittests/linuxliketests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,7 +1333,7 @@ def test_link_arg_fullname(self):
13331333
see: https://github.com/mesonbuild/meson/issues/9000
13341334
https://stackoverflow.com/questions/48532868/gcc-library-option-with-a-colon-llibevent-a
13351335
'''
1336-
testdir = os.path.join(self.unit_test_dir, '98 link full name','libtestprovider')
1336+
testdir = os.path.join(self.unit_test_dir, '97 link full name','libtestprovider')
13371337
oldprefix = self.prefix
13381338
# install into installdir without using DESTDIR
13391339
installdir = self.installdir
@@ -1346,7 +1346,7 @@ def test_link_arg_fullname(self):
13461346
self.new_builddir()
13471347
env = {'LIBRARY_PATH': os.path.join(installdir, self.libdir),
13481348
'PKG_CONFIG_PATH': _prepend_pkg_config_path(os.path.join(installdir, self.libdir, 'pkgconfig'))}
1349-
testdir = os.path.join(self.unit_test_dir, '98 link full name','proguser')
1349+
testdir = os.path.join(self.unit_test_dir, '97 link full name','proguser')
13501350
self.init(testdir,override_envvars=env)
13511351

13521352
# test for link with full path
@@ -1752,7 +1752,7 @@ def test_cmake_multilib(self):
17521752

17531753
@skipUnless(is_linux() or is_osx(), 'Test only applicable to Linux and macOS')
17541754
def test_install_strip(self):
1755-
testdir = os.path.join(self.unit_test_dir, '104 strip')
1755+
testdir = os.path.join(self.unit_test_dir, '103 strip')
17561756
self.init(testdir)
17571757
self.build()
17581758

unittests/platformagnostictests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_relative_find_program(self):
3232
Tests that find_program() with a relative path does not find the program
3333
in current workdir.
3434
'''
35-
testdir = os.path.join(self.unit_test_dir, '101 relative find program')
35+
testdir = os.path.join(self.unit_test_dir, '100 relative find program')
3636
self.init(testdir, workdir=testdir)
3737

3838
def test_invalid_option_names(self):
@@ -91,11 +91,11 @@ def write_file(code: str):
9191
interp.process, fname)
9292

9393
def test_python_dependency_without_pkgconfig(self):
94-
testdir = os.path.join(self.unit_test_dir, '103 python without pkgconfig')
94+
testdir = os.path.join(self.unit_test_dir, '102 python without pkgconfig')
9595
self.init(testdir, override_envvars={'PKG_CONFIG': 'notfound'})
9696

9797
def test_debug_function_outputs_to_meson_log(self):
98-
testdir = os.path.join(self.unit_test_dir, '105 debug function')
98+
testdir = os.path.join(self.unit_test_dir, '104 debug function')
9999
log_msg = 'This is an example debug output, should only end up in debug log'
100100
output = self.init(testdir)
101101

0 commit comments

Comments
 (0)