aboutsummaryrefslogtreecommitdiff
path: root/test cases/d
AgeCommit message (Collapse)AuthorFilesLines
2020-03-11compilers: Don't put split soname args in start groupsDylan Baker4-1/+42
Some compilers that act as linker drivers (dmd and ldc) need to split arguments that GCC combines with , (ie, -Wl,-foo,bar -> -L=-foo -L=bar). As such we need to detect that the previous argument contained -soname, and not wrap that in a --start-group/--end-group This modifies the shared library test to demonstrate the problem, with a test case. Fixes #6359
2020-03-09project_tests: Add the option to the test format to mark the languageDylan Baker7-15/+15
This is needed when mixing D and C code, as it's possible to end up witha combination of linkers and compilres such that C produces pdb files but D does not.
2020-03-09tests: Add pdb files for d testsDylan Baker7-8/+22
2020-03-09project_tests: Add "version" to "shared_lib" and "pdb" typesDylan Baker2-21/+21
This allows the harness to apply the version correctly, putting it in the right place, dropping the right amount of numbers, etc. pdb taking a version allows it to be more easily copied from the shared_lib type.
2020-03-06project_tests: Add a "shared_lib" typeDylan Baker2-4/+4
This allows fixing tests that produce .dylib's on macOS and .so's on elf Unices.
2020-02-25test: merge installed_files.txt into test.jsonDaniel Mensinger14-44/+72
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.
2018-09-27Additional tests for D version and debug featuresGoaLitiuM2-1/+85
2018-09-17Fix regressed D test cases on WindowsGoaLitiuM2-10/+10
2018-09-14test cases: add missing files to installed_files.txtMarco Trevisan (Treviño)1-0/+1
All these are marked as files to be installed, so we need list them.
2018-08-20Fix D tests to run on WindowsGoaLitiuM12-30/+76
2018-08-20Improve D mixed language test caseGoaLitiuM2-2/+14
2018-08-20Remove dependency to D runtime in mixed language testsGoaLitiuM1-2/+2
It is undefined behaviour to call D I/O functions without initializing D runtime first. Simplify the test so it will work in all platforms.
2018-06-17test cases: add test case for dubFFY002-0/+37
2018-05-02Can combine D and C++ in a single target. Closes #3125.Jussi Pakkanen5-0/+34
2018-04-02Merge D feature flag fix branchJussi Pakkanen6-8/+40
2018-03-29Don't crash when using d_module_versions for pkg-configMatthias Klumpp1-0/+9
2018-03-29Add test to check that D feature flags get applied to all filesMatthias Klumpp6-8/+40
This adds regression tests for issue #3337
2018-02-25Use include_directories for D impdirs.Jussi Pakkanen1-1/+16
Change the code to store D properties as plain data. Only convert them to compiler flags in the backend. This also means we can fully parse D arguments without needing to know the compiler being used.
2017-10-28Test GDC shared libraries only from version 8, since 7 is broken in Debian ↵Jussi Pakkanen3-6/+6
at least.
2017-09-17d: Make feature names less verboseMatthias Klumpp1-6/+6
2017-09-12d: Implement specific properties for D featuresMatthias Klumpp1-13/+14
2017-09-12d: Add easy way to use D-specific featuresMatthias Klumpp4-0/+90
Of course D compilers have different flags to set some important D-specific settings. This adds a simple method to change these flags in a compiler-agnostic way in Meson. This replaces the previous `unittest_args` method with a more generic variant.
2017-08-29d: Newer GDC versions can compile shared librariesMatthias Klumpp3-6/+15
Actually, GDC supports shared libraries since version 6.2, but on Debian there are still issues with that version due to the standard library not being compiled with PIC. Therefore, we make a very conservative assumption here and only enable the tests for GDC >= 7.0
2017-08-29trivial: Fix typosMatthias Klumpp1-2/+2
2017-05-21Use assert instead of error.Mike Wey1-12/+4
2017-05-20Update the test case.Mike Wey2-2/+12
2017-05-20Add 'compiles' and 'has_multi_arguments' for dlang.Mike Wey2-0/+6
2017-04-15d: Add testcase for linking multiple versioned shared librariesMatthias Klumpp5-0/+55
2017-01-04tests: Use the new test skipping facility everywhereNirbheek Chauhan2-18/+15
2017-01-04Skip a few tests properlyNirbheek Chauhan2-9/+6
2016-08-21Split D library test into static/shared testsMatthias Klumpp22-19/+83
This allows us to disable the shared library test if the GNU D compiler is detected. This is useful, because gdc can not yet build proper shared libraries. We also add a new test here which tests versioning of D shared libraries.
2016-08-20Allow build definitions to retrieve the unittest flag of a D compilerMatthias Klumpp3-0/+43
D allows programmers to define their tests alongside the actual code in a unittest scope[1]. When compiled with a special flag, the compiler will build a binary containing the tests instead of the actual application. This is a strightforward and easy way to run tests and works well with Mesons test() command. Since using just one flag name to enable unittest mode would be too boring, compiler developers invented multiple ones. Adding this helper method makes it easy for people writing Meson build descriptions for D projects to enable unittestmode. [1]: https://dlang.org/spec/unittest.html
2016-08-19Add testcase for mixed C and D compilationMatthias Klumpp4-0/+39
2016-08-19Implement D supportMatthias Klumpp8-0/+56
This patch adds support for the D programming language[1] to Meson. The following compilers are supported: * LDC * GDC * DMD [1]: http://dlang.org/