diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-11-23 22:04:33 +0100 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-11-23 22:04:33 +0100 |
commit | 30bef54dcd03495ecd3e7701b9390b8825f21546 (patch) | |
tree | 13bd62505b73ce7c41311f1aad94919d8d3456d3 | |
parent | cb682d8e919ae18510461a6a67fc1c0a5cd843e0 (diff) | |
download | gnunet-30bef54dcd03495ecd3e7701b9390b8825f21546.tar.gz gnunet-30bef54dcd03495ecd3e7701b9390b8825f21546.zip |
meson: update readme
-rw-r--r-- | README.meson.md | 57 |
1 files changed, 55 insertions, 2 deletions
diff --git a/README.meson.md b/README.meson.md index a92046943..2ebf620f1 100644 --- a/README.meson.md +++ b/README.meson.md | |||
@@ -26,18 +26,71 @@ DISCLAIMER: This is a work in progress. The meson build system will be maintaine | |||
26 | 26 | ||
27 | ## Use | 27 | ## Use |
28 | 28 | ||
29 | To compile run: | ||
29 | 30 | ||
30 | ``` | 31 | ``` |
31 | $ meson setup $builddir | 32 | $ meson setup $builddir |
32 | $ cd $builddir | 33 | $ cd $builddir |
33 | $ meson configure -Dprefix=$string -Dexperimental=$bool -Dmonolith=$bool | 34 | $ meson configure -Dprefix=$PFX -Dexperimental=$BOOL |
34 | $ meson compile | 35 | $ meson compile |
36 | ``` | ||
37 | |||
38 | to install: | ||
39 | |||
40 | ``` | ||
35 | $ meson install | 41 | $ meson install |
42 | ``` | ||
43 | |||
44 | to make tarball (runs tests unless specified to skip): | ||
45 | |||
46 | ``` | ||
36 | $ meson dist | 47 | $ meson dist |
37 | ``` | 48 | ``` |
38 | 49 | ||
50 | to uninstall: | ||
51 | |||
52 | ``` | ||
53 | $ ninja uninstall | ||
54 | ``` | ||
55 | |||
56 | ## Test | ||
57 | |||
58 | You can run the tests as: | ||
59 | |||
60 | ``` | ||
61 | $ meson test | ||
62 | ``` | ||
63 | |||
64 | you can run individual tests as: | ||
65 | |||
66 | ``` | ||
67 | $ meson test $TESTNAME | ||
68 | ``` | ||
69 | |||
70 | for example: | ||
71 | |||
72 | |||
73 | ``` | ||
74 | $ meson test test_gnsrecord_crypto | ||
75 | ``` | ||
76 | |||
77 | you can run test suites for components as: | ||
78 | |||
79 | |||
80 | ``` | ||
81 | $ meson test --suite util | ||
82 | ``` | ||
83 | |||
84 | performance tests are not included by default. | ||
85 | To also have performance tests available use the ```full``` setup: | ||
86 | |||
87 | ``` | ||
88 | $ meson test --setup full | ||
89 | ``` | ||
90 | |||
91 | You can use this switch also when running suites or individual tests. | ||
39 | 92 | ||
40 | ## Open issues | 93 | ## Open issues |
41 | 94 | ||
42 | - Tests are always built: https://github.com/mesonbuild/meson/pull/6511 | 95 | - All tests are always built: https://github.com/mesonbuild/meson/pull/6511 |
43 | - libtool versioning is different from soversion and version in meson | 96 | - libtool versioning is different from soversion and version in meson |