aboutsummaryrefslogtreecommitdiff
path: root/test cases/windows
AgeCommit message (Collapse)AuthorFilesLines
2020-10-07Add win_subsystem kwarg. Closes #7765.Jussi Pakkanen1-3/+8
2020-07-19fix msvc not recognising b_ndebugElliot Haisley2-0/+16
fixes #7404
2020-02-25test: merge installed_files.txt into test.jsonDaniel Mensinger6-40/+52
2020-01-22tests/windows/16: Use pefile module instead of objdump/dumpbinNirbheek Chauhan2-25/+13
The pefile module is a CI dependency now, so we can use that instead of objdump/dumpbin which greatly simplifies the test. Of course, this module is also cross-platform so it will work if we add cross-win32 CI at some point.
2020-01-21Use python3 in some tests which were still using pythonSebastien Bacher1-1/+1
The unversioned command is deprecated and removed from some distributions
2019-12-04ci/test: unused args for WindowsMichael Hirsch, Ph.D21-13/+53
2019-11-18Use strict function prototypesMichael Hirsch, Ph.D6-6/+6
2019-11-17use '-Werror=unused-parameter' for gcc/clang on project tests and ↵Michael Hirsch, Ph.D7-8/+7
-fimplicit-none on fortran Fortran: check for undeclared variables by forcing implicit none everywhere C/C++: check for unused parameters and return types removed unused variables from test cases ci: do missing return and unused arg check with Github Actions
2019-10-09tests: Don't expect any *.pdb files installed in 'lib'Jakub Adam1-1/+0
Static libraries don't have PDB files. A PDB that would previously end up installed alongside a static library belonged in fact to the dynamic version of the same library built at the same time. This was because the former minstall.Installer implementation, when installing a file target, also blindly copied any *.pdb file it found whose filename was matching the target. So, for example installing foo.dll and foo.a would also install two copies of foo.pdb into both bin/ and lib/, which doesn't seem like the right thing to do - foo.pdb should only get installed with foo.dll.
2019-07-17Accept vs_module_defs for modulesMarc-André Lureau1-0/+1
Like shared libraries, modules may have vs_module_defs. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2019-07-05Fix windres module argument flatteningePirat1-1/+2
2019-01-05Testcase for library where the first object is an arch-neutral .res fileJon Turney2-0/+4
2018-12-09Apply work-around for windres bug with msys2 clang alsoJon Turney2-2/+2
The windres bug with paths with spaces appears irrespective of compiler
2018-11-06Install modules in a subdir to fit with platform name manglingJon Turney2-6/+8
Take advantage of fix_platform_name's new tricks in test '122 shared module'
2018-11-04Handle only llvm-objdump being availableJon Turney1-3/+7
llvm-objdump currently doesn't appear to output the Windows subsystem, so that part of the test needs to be skipped.
2018-10-24Move VS C++17 test to a unit test since it requires env setup.Jussi Pakkanen2-16/+0
2018-10-22add cpp_std support for MSVCNicole Mazzuca2-0/+16
2018-09-14run_project_tests: remove pdb workaround, just use filtersMarco Trevisan (Treviño)3-3/+4
And ignore .dll.a files in non cygwin gcc instances
2018-09-14test cases: add missing files to installed_files.txtMarco Trevisan (Treviño)1-0/+4
All these are marked as files to be installed, so we need list them.
2018-08-21Merge pull request #4036 from jon-turney/fix_issue_3999Jussi Pakkanen11-0/+74
Fix compiling multiple Windows resources using pathnames with non-unique basenames
2018-08-19Condense test dirs.Jussi Pakkanen5-0/+0
2018-08-16Extend test case to cover issue #3999Jon Turney11-0/+74
Extend test case for issue #3575 for Windows resource files with the same name to cover the case where duplicate outputs exist due to use of pathnames. Also Test using file objects as well as literal filenames
2018-08-15Extend test to check subsystem set by executable(gui_app:)Jon Turney3-0/+45
2018-08-15Add a test for Windows console application with main function in a libraryJon Turney3-0/+12
Currently, this test fails for ninja/VisualC, as we don't pass /SUBSYSTEM:CONSOLE to the linker, and it guesses wrongly that this is a GUI app https://lists.freedesktop.org/archives/mesa-dev/2018-June/197844.html
2018-07-31Condense test dirs.Jussi Pakkanen53-0/+0
2018-06-18Test windows.compile_resource() when depends: is a custom_targetJon Turney7-0/+104
This test covers the case where the resource script references a file which is created by a custom_target (in this case, an icon). Put icon in a separate directory to ensure we excercise setting the include path to the directory which contains it.
2018-06-17Merge pull request #3715 from jon-turney/duplicate-rsrc-script-nameJussi Pakkanen9-0/+51
Use a unique name for windows resource compilation custom target
2018-06-11Also test that the resource has the expected contentsJon Turney2-6/+32
2018-06-07Test for Windows resource compilation reusing the same script nameJon Turney8-0/+25
Extended from the test case in #3575. This exercises File objects and string filenames for the same resource script filename at different paths.
2018-06-07Install shared_module implibsJon Turney1-0/+2
On Windows, if we are going to link with a shared module, we need the implib. Use case: The Xorg server builds some X protocol extensions as modules. The implibs for these modules need to be shipped as part of the SDK, to enable building of 3rd party extensions which reference symbols in (and hence on Windows, need to be linked with) these modules.
2018-06-03Extend test_rc_depends_files test caseJon Turney3-2/+4
Extend test_rc_depends_files test case to also cover depfile generation for a resource file generated by a custom_target
2018-06-03Have the windows.resource_compiler() preprocesor write a depfileJon Turney1-0/+2
When using binutils's windres, we can instruct it to invoke the preprocessor in such a way that it writes a depfile, so that dependencies on #included files are automatically tracked. Not implemented for MSVC tools, so skip testing it in that case.
2018-06-03Install implib where expected if default install_dir: is explicitly givenJon Turney1-1/+1
Install the implib into the default import lib directory if an explicit install_dir: is given, but the value happens to be the same as the default.
2018-06-02test extra paths: move test to windowsMathieu Duponchelle8-0/+51
2018-06-01Add a depend_files: keyword to windows.compile_resources()Jon Turney1-0/+1
Expose depend_files: from the custom_target this creates. This is the change suggested in #2815, with tests and documentation added. Fixes #2789 (duplicate #2830)
2018-01-12Fix test cases/windows/13 resources with custom targetsAndrei Alexeyev1-1/+1
Analogous to #2851
2018-01-12windows.compile_resources: fix compiling multiple resources within one projectAndrei Alexeyev6-18/+24
2018-01-12[windows] make compile_resources use custom targets instead of generatorsAndrei Alexeyev8-0/+108
2017-12-31Fix test cases/windows/5 resourcesJon Turney1-1/+1
Currently, this test only tries to load a predefined icon, so the resource compilation and linking can be completely removed from the meson.build and it still passes. Change to try to load the icon contained in the resources we compile.
2017-07-20Make the name of the executable implib configurableJon Turney2-5/+9
2017-07-20Consolidate windows tests which are divided between mingw and msvcJon Turney10-100/+26
2017-07-20Support implibs for executables on WindowsJon Turney3-0/+17
Add a boolean 'implib' kwarg to executable(). If true, it is permitted to use the returned build target object in link_with: On platforms where this makes sense (e.g. Windows), an implib is generated for the executable and used when linking. Otherwise, it has no effect. (Rather than checking if it is a StaticLibrary or SharedLibary, BuildTarget subclasses gain the is_linkable_target method to test if they can appear in link_with:) Also install any executable implib in a similar way to a shared library implib, i.e. placing the implib in the appropriate place Add tests of: - a shared_module containing a reference to a symbol which is known (at link time) to be provided by the executable - trying to link with non-implib executables (should fail) - installing the implib (This last one needs a little enhancement of the installed file checking as this is the first install test we have which needs to work with either MSVC-style or GCC-style implib filenames)
2017-06-21Consistently use windows.h, not Windows.hJon Turney1-1/+1
This is significant when compiling using gcc on a case-sensitive filesystem.
2017-05-16Allow vs_module_defs to use a custom_targetJon Turney5-0/+31
Allow vs_module_defs to use a custom_target Add a test and update documentation
2017-05-12Make vs_module_defs: do something for gcc on Windows as wellJon Turney4-14/+6
Module definition files may be useful when building with gcc on Windows also (e.g. if the existing build uses them, if exports are aliased, if we were retro enough to export by ordinal, etc.) Add the .def file to the link command line when using gcc on Windows Run the appropriate windows tests irrespective of compiler.
2017-04-10Allow using generated files to shared_library vs_module_defs. Closes #1605Dylan Baker5-0/+28
This detects and allows passing a generated file as a vs_module_def, it also adds a testcase that tests using configure_file to generate the .def file.
2017-04-10tests/windows/7: Fix test on CygwinNirbheek Chauhan1-2/+2
Not sure how this was missed.
2017-04-09Merge pull request #1469 from centricular/install-secondary-outputsJussi Pakkanen4-0/+18
Support multiple install dirs for built/custom targets
2017-04-06Run test cases/windows/ tests on CygwinJon Turney1-1/+1
Also, always run 'test cases/windows/5 resources' on Cygwin since it can handle args containing spaces correctly.
2017-04-06Use correct shared library naming for CygwinJon Turney1-4/+4
Use correct shared library naming for Cygwin when building and installing