Skip to content

Commit cdf4b39

Browse files
committed
Condense directory names for 1.8 rc1.
1 parent 028abfe commit cdf4b39

File tree

167 files changed

+39
-39
lines changed

Some content is hidden

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

167 files changed

+39
-39
lines changed

run_format_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def check_format() -> None:
5151
'work area',
5252
'.eggs', '_cache', # e.g. .mypy_cache
5353
'venv', # virtualenvs have DOS line endings
54-
'121 rewrite', # we explicitly test for tab in meson.build file
54+
'120 rewrite', # we explicitly test for tab in meson.build file
5555
'3 editorconfig',
5656
}
5757
for (root, _, filenames) in os.walk('.'):
File renamed without changes.

unittests/allplatformstests.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ def test_replace_unencodable_xml_chars_unit(self):
488488
'''
489489
if not shutil.which('xmllint'):
490490
raise SkipTest('xmllint not installed')
491-
testdir = os.path.join(self.unit_test_dir, '112 replace unencodable xml chars')
491+
testdir = os.path.join(self.unit_test_dir, '111 replace unencodable xml chars')
492492
self.init(testdir)
493493
tests_command_output = self.run_tests()
494494
junit_xml_logs = Path(self.logdir, 'testlog.junit.xml')
@@ -648,7 +648,7 @@ def test_forcefallback(self):
648648
self.run_tests()
649649

650650
def test_implicit_forcefallback(self):
651-
testdir = os.path.join(self.unit_test_dir, '96 implicit force fallback')
651+
testdir = os.path.join(self.unit_test_dir, '95 implicit force fallback')
652652
with self.assertRaises(subprocess.CalledProcessError):
653653
self.init(testdir)
654654
self.init(testdir, extra_args=['--wrap-mode=forcefallback'])
@@ -2082,7 +2082,7 @@ def check_pcfile(name, *, relocatable, levels=2):
20822082
check_pcfile('libvartest2.pc', relocatable=False)
20832083

20842084
self.wipe()
2085-
testdir_abs = os.path.join(self.unit_test_dir, '106 pkgconfig relocatable with absolute path')
2085+
testdir_abs = os.path.join(self.unit_test_dir, '105 pkgconfig relocatable with absolute path')
20862086
self.init(testdir_abs)
20872087

20882088
check_pcfile('libsimple.pc', relocatable=True, levels=3)
@@ -2164,7 +2164,7 @@ def get_opt():
21642164
self.assertDictEqual(original, expected)
21652165

21662166
def test_executable_names(self):
2167-
testdir = os.path.join(self.unit_test_dir, '122 executable suffix')
2167+
testdir = os.path.join(self.unit_test_dir, '121 executable suffix')
21682168
self.init(testdir)
21692169
self.build()
21702170
exe1 = os.path.join(self.builddir, 'foo' + exe_suffix)
@@ -2255,7 +2255,7 @@ def test_options_with_choices_changing(self) -> None:
22552255

22562256
def test_options_listed_in_build_options(self) -> None:
22572257
"""Detect when changed options become listed in build options."""
2258-
testdir = os.path.join(self.unit_test_dir, '114 list build options')
2258+
testdir = os.path.join(self.unit_test_dir, '113 list build options')
22592259

22602260
out = self.init(testdir)
22612261
for line in out.splitlines():
@@ -2493,7 +2493,7 @@ def test_check_module_linking(self):
24932493
self.assertIn(msg, out)
24942494

24952495
def test_mixed_language_linker_check(self):
2496-
testdir = os.path.join(self.unit_test_dir, '97 compiler.links file arg')
2496+
testdir = os.path.join(self.unit_test_dir, '96 compiler.links file arg')
24972497
self.init(testdir)
24982498
cmds = self.get_meson_log_compiler_checks()
24992499
self.assertEqual(len(cmds), 5)
@@ -4331,7 +4331,7 @@ def test_build_b_options(self) -> None:
43314331
self.init(srcdir, extra_args=['-Dbuild.b_lto=true'])
43324332

43334333
def test_install_skip_subprojects(self):
4334-
testdir = os.path.join(self.unit_test_dir, '92 install skip subprojects')
4334+
testdir = os.path.join(self.unit_test_dir, '91 install skip subprojects')
43354335
self.init(testdir)
43364336
self.build()
43374337

@@ -4378,7 +4378,7 @@ def check_installed_files(extra_args, expected):
43784378
check_installed_files(['--skip-subprojects', 'another'], all_expected)
43794379

43804380
def test_adding_subproject_to_configure_project(self) -> None:
4381-
srcdir = os.path.join(self.unit_test_dir, '93 new subproject in configured project')
4381+
srcdir = os.path.join(self.unit_test_dir, '92 new subproject in configured project')
43824382
self.init(srcdir)
43834383
self.build()
43844384
self.setconf('-Duse-sub=true')
@@ -4428,7 +4428,7 @@ def test_clang_format_check(self):
44284428
if not shutil.which('clang-format'):
44294429
raise SkipTest('clang-format not found')
44304430

4431-
testdir = os.path.join(self.unit_test_dir, '94 clangformat')
4431+
testdir = os.path.join(self.unit_test_dir, '93 clangformat')
44324432
newdir = os.path.join(self.builddir, 'testdir')
44334433
shutil.copytree(testdir, newdir)
44344434
self.new_builddir()
@@ -4453,7 +4453,7 @@ def test_clang_format_check(self):
44534453
self.build('clang-format-check')
44544454

44554455
def test_custom_target_implicit_include(self):
4456-
testdir = os.path.join(self.unit_test_dir, '95 custominc')
4456+
testdir = os.path.join(self.unit_test_dir, '94 custominc')
44574457
self.init(testdir)
44584458
self.build()
44594459
compdb = self.get_compdb()
@@ -4499,7 +4499,7 @@ def DISABLED_test_env_flags_to_linker(self) -> None:
44994499
# self.assertEqual(sorted(link_args), sorted(['-flto']))
45004500

45014501
def test_install_tag(self) -> None:
4502-
testdir = os.path.join(self.unit_test_dir, '99 install all targets')
4502+
testdir = os.path.join(self.unit_test_dir, '98 install all targets')
45034503
self.init(testdir)
45044504
self.build()
45054505

@@ -4670,7 +4670,7 @@ def test_install_script_dry_run(self):
46704670

46714671

46724672
def test_introspect_install_plan(self):
4673-
testdir = os.path.join(self.unit_test_dir, '99 install all targets')
4673+
testdir = os.path.join(self.unit_test_dir, '98 install all targets')
46744674
introfile = os.path.join(self.builddir, 'meson-info', 'intro-install_plan.json')
46754675
self.init(testdir)
46764676
self.assertPathExists(introfile)
@@ -4985,7 +4985,7 @@ def test_rust_rlib_linkage(self) -> None:
49854985
}}
49864986
''')
49874987

4988-
testdir = os.path.join(self.unit_test_dir, '102 rlib linkage')
4988+
testdir = os.path.join(self.unit_test_dir, '101 rlib linkage')
49894989
gen_file = os.path.join(testdir, 'lib.rs')
49904990
with open(gen_file, 'w', encoding='utf-8') as f:
49914991
f.write(template.format(0))
@@ -5033,15 +5033,15 @@ def test_bindgen_drops_invalid(self) -> None:
50335033
return
50345034

50355035
def test_custom_target_name(self):
5036-
testdir = os.path.join(self.unit_test_dir, '100 custom target name')
5036+
testdir = os.path.join(self.unit_test_dir, '99 custom target name')
50375037
self.init(testdir)
50385038
out = self.build()
50395039
if self.backend is Backend.ninja:
50405040
self.assertIn('Generating file.txt with a custom command', out)
50415041
self.assertIn('Generating subdir/file.txt with a custom command', out)
50425042

50435043
def test_symlinked_subproject(self):
5044-
testdir = os.path.join(self.unit_test_dir, '108 subproject symlink')
5044+
testdir = os.path.join(self.unit_test_dir, '107 subproject symlink')
50455045
subproject_dir = os.path.join(testdir, 'subprojects')
50465046
subproject = os.path.join(testdir, 'symlinked_subproject')
50475047
symlinked_subproject = os.path.join(testdir, 'subprojects', 'symlinked_subproject')
@@ -5057,7 +5057,7 @@ def test_symlinked_subproject(self):
50575057
self.build()
50585058

50595059
def test_configure_same_noop(self):
5060-
testdir = os.path.join(self.unit_test_dir, '110 configure same noop')
5060+
testdir = os.path.join(self.unit_test_dir, '109 configure same noop')
50615061
args = [
50625062
'-Dstring=val',
50635063
'-Dboolean=true',
@@ -5095,7 +5095,7 @@ def test_configure_same_noop(self):
50955095

50965096
def __test_multi_stds(self, test_c: bool = True, test_objc: bool = False) -> None:
50975097
assert test_c or test_objc, 'must test something'
5098-
testdir = os.path.join(self.unit_test_dir, '116 c cpp stds')
5098+
testdir = os.path.join(self.unit_test_dir, '115 c cpp stds')
50995099
self.init(testdir, extra_args=[f'-Dwith-c={str(test_c).lower()}',
51005100
f'-Dwith-objc={str(test_objc).lower()}'])
51015101
# Invalid values should fail whatever compiler we have
@@ -5154,7 +5154,7 @@ def test_c_cpp_objc_objcpp_stds(self) -> None:
51545154
self.__test_multi_stds(test_objc=True)
51555155

51565156
def test_slice(self):
5157-
testdir = os.path.join(self.unit_test_dir, '124 test slice')
5157+
testdir = os.path.join(self.unit_test_dir, '126 test slice')
51585158
self.init(testdir)
51595159
self.build()
51605160

@@ -5192,7 +5192,7 @@ def test_rsp_support(self):
51925192
self.assertEqual(cc.linker.get_accepts_rsp(), has_rsp)
51935193

51945194
def test_nonexisting_bargs(self):
5195-
testdir = os.path.join(self.unit_test_dir, '117 empty project')
5195+
testdir = os.path.join(self.unit_test_dir, '116 empty project')
51965196
args = ['-Db_ndebug=if_release']
51975197
self.init(testdir, extra_args=args)
51985198

unittests/linuxliketests.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ def test_link_arg_fullname(self):
13631363
see: https://github.com/mesonbuild/meson/issues/9000
13641364
https://stackoverflow.com/questions/48532868/gcc-library-option-with-a-colon-llibevent-a
13651365
'''
1366-
testdir = os.path.join(self.unit_test_dir, '98 link full name','libtestprovider')
1366+
testdir = os.path.join(self.unit_test_dir, '97 link full name','libtestprovider')
13671367
oldprefix = self.prefix
13681368
# install into installdir without using DESTDIR
13691369
installdir = self.installdir
@@ -1376,7 +1376,7 @@ def test_link_arg_fullname(self):
13761376
self.new_builddir()
13771377
env = {'LIBRARY_PATH': os.path.join(installdir, self.libdir),
13781378
'PKG_CONFIG_PATH': _prepend_pkg_config_path(os.path.join(installdir, self.libdir, 'pkgconfig'))}
1379-
testdir = os.path.join(self.unit_test_dir, '98 link full name','proguser')
1379+
testdir = os.path.join(self.unit_test_dir, '97 link full name','proguser')
13801380
self.init(testdir,override_envvars=env)
13811381

13821382
# test for link with full path
@@ -1782,7 +1782,7 @@ def test_cmake_multilib(self):
17821782

17831783
@skipUnless(is_linux() or is_osx(), 'Test only applicable to Linux and macOS')
17841784
def test_install_strip(self):
1785-
testdir = os.path.join(self.unit_test_dir, '104 strip')
1785+
testdir = os.path.join(self.unit_test_dir, '103 strip')
17861786
self.init(testdir)
17871787
self.build()
17881788

@@ -1829,7 +1829,7 @@ def test_isystem_default_removal_with_symlink(self):
18291829
self.assertFalse(cpp.compiler_args([f'-isystem{symlink}' for symlink in default_symlinks]).to_native())
18301830

18311831
def test_freezing(self):
1832-
testdir = os.path.join(self.unit_test_dir, '111 freeze')
1832+
testdir = os.path.join(self.unit_test_dir, '110 freeze')
18331833
self.init(testdir)
18341834
self.build()
18351835
with self.assertRaises(subprocess.CalledProcessError) as e:
@@ -1838,7 +1838,7 @@ def test_freezing(self):
18381838

18391839
@skipUnless(is_linux(), "Ninja file differs on different platforms")
18401840
def test_complex_link_cases(self):
1841-
testdir = os.path.join(self.unit_test_dir, '115 complex link cases')
1841+
testdir = os.path.join(self.unit_test_dir, '114 complex link cases')
18421842
self.init(testdir)
18431843
self.build()
18441844
with open(os.path.join(self.builddir, 'build.ninja'), encoding='utf-8') as f:
@@ -1859,7 +1859,7 @@ def test_complex_link_cases(self):
18591859
self.assertIn('build t13-e1: c_LINKER t13-e1.p/main.c.o | libt12-s1.a libt13-s3.a\n', content)
18601860

18611861
def test_top_options_in_sp(self):
1862-
testdir = os.path.join(self.unit_test_dir, '124 pkgsubproj')
1862+
testdir = os.path.join(self.unit_test_dir, '125 pkgsubproj')
18631863
self.init(testdir)
18641864

18651865
def check_has_flag(self, compdb, src, argument):
@@ -1873,7 +1873,7 @@ def test_persp_options(self):
18731873
if self.backend is not Backend.ninja:
18741874
raise SkipTest(f'{self.backend.name!r} backend can\'t install files')
18751875

1876-
testdir = os.path.join(self.unit_test_dir, '123 persp options')
1876+
testdir = os.path.join(self.unit_test_dir, '122 persp options')
18771877

18781878
with self.subTest('init'):
18791879
self.init(testdir, extra_args='-Doptimization=1')
@@ -1926,7 +1926,7 @@ def test_persp_options(self):
19261926
self.check_has_flag(compdb, sub2src, '-O2')
19271927

19281928
def test_sanitizers(self):
1929-
testdir = os.path.join(self.unit_test_dir, '125 sanitizers')
1929+
testdir = os.path.join(self.unit_test_dir, '127 sanitizers')
19301930

19311931
with self.subTest('no b_sanitize value'):
19321932
try:

unittests/machinefiletests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def test_java_compiler(self):
388388
def test_java_classpath(self):
389389
if self.backend is not Backend.ninja:
390390
raise SkipTest('Jar is only supported with Ninja')
391-
testdir = os.path.join(self.unit_test_dir, '113 classpath')
391+
testdir = os.path.join(self.unit_test_dir, '112 classpath')
392392
self.init(testdir)
393393
self.build()
394394
one_build_path = get_classpath(os.path.join(self.builddir, 'one.jar'))

unittests/platformagnostictests.py

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

3939
def test_invalid_option_names(self):
@@ -92,11 +92,11 @@ def write_file(code: str):
9292
interp.process, fname)
9393

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

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

@@ -108,7 +108,7 @@ def test_debug_function_outputs_to_meson_log(self):
108108
self.assertIn(log_msg, mesonlog)
109109

110110
def test_new_subproject_reconfigure(self):
111-
testdir = os.path.join(self.unit_test_dir, '109 new subproject on reconfigure')
111+
testdir = os.path.join(self.unit_test_dir, '108 new subproject on reconfigure')
112112
self.init(testdir)
113113
self.build()
114114

@@ -271,7 +271,7 @@ def test_setup_loaded_modules(self):
271271
thing to do as new features are added, but keeping track of them is
272272
good.
273273
'''
274-
testdir = os.path.join(self.unit_test_dir, '117 empty project')
274+
testdir = os.path.join(self.unit_test_dir, '116 empty project')
275275

276276
self.init(testdir)
277277
self._run(self.meson_command + ['--internal', 'regenerate', '--profile-self', testdir, self.builddir])
@@ -286,7 +286,7 @@ def test_setup_loaded_modules(self):
286286

287287
def test_meson_package_cache_dir(self):
288288
# Copy testdir into temporary directory to not pollute meson source tree.
289-
testdir = os.path.join(self.unit_test_dir, '119 meson package cache dir')
289+
testdir = os.path.join(self.unit_test_dir, '118 meson package cache dir')
290290
srcdir = os.path.join(self.builddir, 'srctree')
291291
shutil.copytree(testdir, srcdir)
292292
builddir = os.path.join(srcdir, '_build')
@@ -295,7 +295,7 @@ def test_meson_package_cache_dir(self):
295295

296296
def test_cmake_openssl_not_found_bug(self):
297297
"""Issue #12098"""
298-
testdir = os.path.join(self.unit_test_dir, '120 openssl cmake bug')
298+
testdir = os.path.join(self.unit_test_dir, '119 openssl cmake bug')
299299
self.meson_native_files.append(os.path.join(testdir, 'nativefile.ini'))
300300
out = self.init(testdir, allow_fail=True)
301301
self.assertNotIn('Unhandled python exception', out)
@@ -521,7 +521,7 @@ def test_configure_new_option_subproject(self) -> None:
521521
self.assertEqual(self.getconf('subproject:new_option'), True)
522522

523523
def test_mtest_rebuild_deps(self):
524-
testdir = os.path.join(self.unit_test_dir, '107 underspecified mtest')
524+
testdir = os.path.join(self.unit_test_dir, '106 underspecified mtest')
525525
self.init(testdir)
526526

527527
with self.assertRaises(subprocess.CalledProcessError):

unittests/rewritetests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def test_target_remove_extra_files(self):
391391
self.assertDictEqual(out, expected)
392392

393393
def test_raw_printer_is_idempotent(self):
394-
test_path = Path(self.unit_test_dir, '121 rewrite')
394+
test_path = Path(self.unit_test_dir, '120 rewrite')
395395
meson_build_file = test_path / 'meson.build'
396396
# original_contents = meson_build_file.read_bytes()
397397
original_contents = meson_build_file.read_text(encoding='utf-8')

unittests/windowstests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def test_genvslite(self):
185185
if self.backend is not Backend.ninja:
186186
raise SkipTest('Test only applies when using the Ninja backend')
187187

188-
testdir = os.path.join(self.unit_test_dir, '118 genvslite')
188+
testdir = os.path.join(self.unit_test_dir, '117 genvslite')
189189

190190
env = get_fake_env(testdir, self.builddir, self.prefix)
191191
cc = detect_c_compiler(env, MachineChoice.HOST)

0 commit comments

Comments
 (0)