You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: doc/demo/README.md
+8
Original file line number
Diff line number
Diff line change
@@ -314,6 +314,14 @@ REFLECT-demodb_alt_test:=n
314
314
315
315
Here we're building a library .a file and linking it to this test. The last line is - not to generate reflection meta-information.
316
316
317
+
Check library has an utility called `checkmk`, which accepts a [special file format](https://github.com/libcheck/check/blob/master/checkmk/test/multiple_everything/in) as input and generates test that inludes tests. We also support that: such files must have name pattern `*.checkmk`. Metac will generate test binary with the name `*_checkmk` for such file. Here is the [converted example](step_02/demodb_alt.checkmk). And we need to make the corresponding changes in Makefile:
318
+
319
+
```Makefile
320
+
DEPS-demodb_alt_checkmk:=$(M)/libdemodb.a
321
+
LDFLAGS-demodb_alt_checkmk:=-L$(M) -ldemodb
322
+
REFLECT-demodb_alt_checkmk:=n
323
+
```
324
+
317
325
To make sure that this works ok - just run `make METAC_ROOT=../../.. test` or `make METAC_ROOT=../../..` in the folder [step_02](step_02/)
0 commit comments