Jussi Pakkanen
30827b5644
Do not install configure_file output if install_dir is empty. Closes #3270 .
7 years ago
Aleksey Filippov
6910f604ed
Disable b_ndebug tests on MSVC
7 years ago
Aleksey Filippov
39a3bdb43f
Add tests for b_ndebug=if-release and buildtype default options
...
Co-authored-by: David Seifert <soap@gentoo.org>
7 years ago
makise-homura
43be74cf81
Skipping PCH unit test for lcc compiler
7 years ago
David Seifert
7eb187c5f2
Add -Wl,-dead_strip_dylibs support
...
* `-Wl,-dead_strip_dylibs` is the analogue
of `-Wl,--as-needed` on macOS.
7 years ago
Jussi Pakkanen
cf5f1a83d5
Fix existing tests.
7 years ago
Aleksey Filippov
143dc3ca44
Add install_data() succeeding rename tests
7 years ago
Aleksey Filippov
7f042b5fe2
Use target.get_id() instead of basename and type_suffix concatenation at call site
...
Fixes the bug with flat layout and identical target names in subprojects.
Without this change directories are not created with subproject prefix
and they can collide.
Remove dead makedirs code in Backend.__init__(), during initialization
of backend build.targets is empty. Create output directories in
Vs2010Backend.generate_projects() instead.
Also use double blank line in run_unittests.py according to
https://www.python.org/dev/peps/pep-0008/#blank-lines .
7 years ago
Aleksey Filippov
3493a372e2
Use specific exception types instead of Exception
7 years ago
Aleksey Filippov
093bdcafc9
Use subprocess.check_output() instead of Popen().communicate()
7 years ago
Aleksey Filippov
e4faf396e6
Do not use bare except [flake8]
...
Use more specific exception types where appropriate.
This patch does not change bare except calls if exception is re-raised.
7 years ago
Jukka Laurila
2fcd9d35c5
Add test for bug https://github.com/mesonbuild/meson/issues/3185
7 years ago
Aleksey Filippov
c03a2fd283
Add indentation to 'common/64 custom header generator' test case
7 years ago
Aleksey Filippov
9b6d2f8a25
Skip whole_archive test for VS older than 2015
7 years ago
Aleksey Filippov
bcd076276e
Add 'common/180 generator link whole' test case
...
This test covers usage of generated files in static_library
that is later linked into shared_library.
7 years ago
Aleksey Filippov
9f1d4c0dbe
Add declare_dependency() test for transitive link_whole
7 years ago
Aleksey Filippov
cd245eccbd
Add declare_dependency() test for link_whole
7 years ago
Jon Turney
cd5dba5358
Fix flake8 'imported but unused' reports
...
$ flake8 | grep F401
./meson.py:17:1: F401 'mesonbuild.mesonlib' imported but unused
./meson.py:18:1: F401 'locale' imported but unused
./run_unittests.py:24:1: F401 'sys' imported but unused
./mesonbuild/minit.py:2:1: F401 'pyclbr.Function' imported but unused
./mesonbuild/minit.py:18:1: F401 'os' imported but unused
./mesonbuild/backend/vs2010backend.py:15:1: F401 'sys' imported but unused
./mesonbuild/backend/xcodebackend.py:19:1: F401 'sys' imported but unused
./mesonbuild/dependencies/ui.py:20:1: F401 'shutil' imported but unused
./mesonbuild/modules/python3.py:15:1: F401 'sys' imported but unused
./mesonbuild/modules/unstable_icestorm.py:15:1: F401 '..compilers' imported but unused
./mesonbuild/modules/unstable_icestorm.py:15:1: F401 '..mlog' imported but unused
./test cases/common/98 gen extra/srcgen3.py:3:1: F401 'os' imported but unused
7 years ago
Aleksey Filippov
d040ce4165
Refactor 'common/145 whole archive' test case
...
Former test is extremely hard to follow,
target names are inconsistent with directory names,
test case mixes up 2 separate testing scenarios,
names are meaningless. In order to fix this
provides comments what each command is doing and why,
renamed targets into descriptive and longer names,
made names consistent with contents so that it is easier
to follow test logic without looking up source code.
7 years ago
Jussi Pakkanen
cb176e9303
Look up compilers based on sources from deps, too. Closes #2768 .
7 years ago
Aleksey Filippov
d6b5d7fe9f
Add library with generated_pc and PkgConfigDependency support to pkgconfig.generate()
7 years ago
Jussi Pakkanen
0c3af38c3e
Renamed test dir with duplicate number.
7 years ago
Aleksey Filippov
c88f569599
Fix comment misprint in 'test cases/common/51 pkgconfig-gen/dependencies'
7 years ago
Peter Hutterer
6b550ae91f
Allow for missing install_dir in install_data()
...
The documentation doesn't require it and the interpreter code works around the
possibility of it being None. The ninja backend code however fails with
File "/home/whot/code/meson/mesonbuild/backend/ninjabackend.py", line 796, in generate_data_install
dstabs = os.path.join(subdir or None, plain_f)
File "/usr/lib64/python3.6/posixpath.py", line 78, in join
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
If install_dir is missing, default to datadir/projectname
7 years ago
Jon Turney
56286fd2b8
Fix test cases/failing/52 inconsistent comparison
...
Since PR #2884 , this is failing with an exception
Keep the behaviour we have had since PR #1810 (0.41.0), that ordering
comparisons of different types fail with an InterpreterException.
Also warn about equality comparisons of different types, which will one day
become an error, as per PR #2884 .
7 years ago
Dylan Baker
d3d0d4affb
tests/15 mixed pch: Add a test using only the headers
...
Which is supposed to work for GCC and Clang.
7 years ago
Dylan Baker
1270af4b9a
tests/15 mixed pch: Use current style
7 years ago
Matthias Klumpp
b57b82eaf9
Add test for subprojects in subdirectories
7 years ago
Tim-Philipp Müller
47508e217f
tests: add test to make sure include_directories() order is maintained
7 years ago
Jussi Pakkanen
54d7817087
User options can "yield to" a user option of the same name in superproject. Closes ##2853.
7 years ago
Jussi Pakkanen
0204895143
Expose integer options to build option files.
7 years ago
Jussi Pakkanen
a288b524bc
Add support for hex int literals.
7 years ago
Aleksey Filippov
549f9a41e5
Rename install_subdir() option elide_directory to strip_directory
7 years ago
Aleksey Filippov
8ca3cc0c3d
Add elide_directory keyword for install_subdir() function
...
If elide_directory=true install_subdir() installs directory contents
instead of directory itself, eliding name of the source directory.
Closes #2869 .
7 years ago
Jussi Pakkanen
6cd7372e26
Comparing objects of different type prints a warning. Closes #2870 .
7 years ago
Jon Turney
227ad7605b
Same for libwmf
7 years ago
Martin Kelly
36aca4cd3c
add meson.project_license() builtin
...
This Fixes #2941 .
7 years ago
Xavier Claessens
6e2e94c645
pkgconfig: Also ignore not found deps passed directly to pc generator
...
Currently only not found deps implicitly pulled from a Library object
are ignored. We should also ignore not found deps passed directly to
generate() method.
This makes the unit testing more complicated because libfoo pkgconfig
dependency cannot be found when generated from the within the same
meson.build.
7 years ago
Jussi Pakkanen
59d0434039
Removed two deprecations from 2016.
7 years ago
Hemmo Nieminen
fc8912384c
Fix a SideCI issue about an unused import in a unit test.
7 years ago
Hemmo Nieminen
7cf9c0a644
Rename a test to avoid duplicate numbering.
7 years ago
Jon Turney
cdf241420c
Same for cups
7 years ago
Jon Turney
638095125d
Same for pcap
7 years ago
Jon Turney
57cb597871
Same for Vulkan
7 years ago
Jon Turney
3748f5465a
Same for SDL2
7 years ago
Jon Turney
bd128bc301
Test case for GL pkgconfig dependency
...
Test that the GL pkgconfig dependency is actually a pkgconfig dependency
7 years ago
Nikita Churaev
de8018a17d
Add `export_dynamic` argument to `executable`. ( #2662 )
7 years ago
Dylan Baker
62fc6e7412
tests: fix "140 get define" on NetBSD
...
NetBSD's zlib is older (1.2.3), and doesn't have ZLIB_VER_MAJOR.
7 years ago
Dylan Baker
997b66d3ed
tests: fix "135 generated assembly" test on NetBSD
...
Which has GCC and uses GAS.
7 years ago
Dylan Baker
4cea88c2bb
tests: use GAS style assembly for FreeBSD as well
7 years ago