diff options
author | Dudemanguy <random342@airmail.cc> | 2023-08-06 21:02:18 -0500 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2023-10-05 08:43:38 -0700 |
commit | 03a0d3ddfb092ceb48f1a30fdf5e4b6af2890235 (patch) | |
tree | 38483c65046712110207833530b59df99853499d /unittests/allplatformstests.py | |
parent | adb1a360b9f9edb26eda233326b1d539baeccd5b (diff) | |
download | meson-03a0d3ddfb092ceb48f1a30fdf5e4b6af2890235.zip meson-03a0d3ddfb092ceb48f1a30fdf5e4b6af2890235.tar.gz meson-03a0d3ddfb092ceb48f1a30fdf5e4b6af2890235.tar.bz2 |
mcompile: add suffix as an additional parameter
Since the previous commit allows for more scenarios with name
collisions, it makes sense to expand the compile command so that it can
also take into account suffixes. i.e. meson compile -C build foo.exe can
now work if the executable has an exe suffix along with being named foo.
Diffstat (limited to 'unittests/allplatformstests.py')
-rw-r--r-- | unittests/allplatformstests.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py index 030b216..f504883 100644 --- a/unittests/allplatformstests.py +++ b/unittests/allplatformstests.py @@ -2049,6 +2049,15 @@ class AllPlatformTests(BasePlatformTests): self.assertPathExists(exe2) self.assertNotEqual(exe1, exe2) + # Wipe and run the compile command against the target names + self.init(testdir, extra_args=['--wipe']) + self._run([*self.meson_command, 'compile', '-C', self.builddir, './foo']) + self._run([*self.meson_command, 'compile', '-C', self.builddir, './foo.bin']) + self.assertPathExists(exe1) + self.assertPathExists(exe2) + self.assertNotEqual(exe1, exe2) + + def opt_has(self, name, value): res = self.introspect('--buildoptions') found = False |