diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-03-06 11:09:48 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2020-03-09 11:57:26 -0700 |
commit | 5ccda6878d3b8f494d65dfc084ba1a884329d57a (patch) | |
tree | f8258a53524f23c8af711ae654ec04d267195e20 /docs/markdown/Contributing.md | |
parent | ef1c6cdd543a44b6cfd1e86175ce64f2d742c415 (diff) | |
download | meson-5ccda6878d3b8f494d65dfc084ba1a884329d57a.zip meson-5ccda6878d3b8f494d65dfc084ba1a884329d57a.tar.gz meson-5ccda6878d3b8f494d65dfc084ba1a884329d57a.tar.bz2 |
project_tests: Add "version" to "shared_lib" and "pdb" types
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.
Diffstat (limited to 'docs/markdown/Contributing.md')
-rw-r--r-- | docs/markdown/Contributing.md | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/docs/markdown/Contributing.md b/docs/markdown/Contributing.md index 65460d9..4d52ce1 100644 --- a/docs/markdown/Contributing.md +++ b/docs/markdown/Contributing.md @@ -190,7 +190,7 @@ Exanple `test.json`: "installed": [ { "type": "exe", "file": "usr/bin/testexe" }, { "type": "pdb", "file": "usr/bin/testexe" }, - { "type": "shared_lib", "file": "usr/lib/z" }, + { "type": "shared_lib", "file": "usr/lib/z", "version": "1.2.3" }, ], "matrix": { "options": { @@ -246,6 +246,18 @@ current platform. The following values are currently supported: Except for the `file` and `expr` types, all paths should be provided *without* a suffix. +The `shared_lib` and `pdb` types takes an optional additional parameter, `version`, this is us a string in `X.Y.Z` format that will be applied to the library. Each version to be tested must have a single version. The harness will apply this correctly per platform: + +```json +{ + "type": "shared_lib", "file": "usr/lib/lib", + "type": "shared_lib", "file": "usr/lib/lib", "version": "1", + "type": "shared_lib", "file": "usr/lib/lib", "version": "1.2.3.", +} +``` + +This will be applied appropraitly per platform. On windows this expects `lib.dll` and `lib-1.dll`. on MacOS it expects `liblib.dylib` and `liblib.1.dylib`. On other Unices it expects `liblib.so`, `liblib.so.1`, and `liblib.so.1.2.3`. + If the `platform` key is present, the installed file entry is only considered if the platform matches. The following values for `platform` are currently supported: |