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
|**OPTION_TEST_MEMORYCHECK**| Enable Valgrind with memcheck tool for the tests. | OFF |
618
+
|**OPTION_BUILD_SANITIZER**| Build with AddressSanitizer family (GCC and Clang). | OFF |
619
+
620
+
Both options are mutually exclusive. Valgrind is not compatible with AddressSanitizer. The current implementation does not support MSVC compiler (yet). Some run-times may fail if they are not compiled with AddressSanitizer too, for example NetCore. Due to this, tests implying may fail with signal 11. The same problem happens with Valgrind, due to that, some tests are excluded of the memcheck target.
621
+
622
+
For running all tests with Valgrind, enable the `OPTION_TEST_MEMORYCHECK` flag and then run:
623
+
624
+
```sh
625
+
make memcheck
626
+
```
627
+
628
+
For runing a test (or all) with AddressSanitizer, enable the `OPTION_BUILD_SANITIZER` flag and then run:
629
+
630
+
```sh
631
+
# Run one test
632
+
make py_loader rb_loader node_loader metacall-node-port-test # Build required dependencies and a test
633
+
ctest -VV -R metacall-node-port-test # Run one test (verbose)
634
+
635
+
# Run all
636
+
make
637
+
ctest
638
+
```
639
+
640
+
For running other Valgrind's tools like helgrind or similar, I recommend running them manually. Just run one test with `ctest -VV -R metacall-node-port-test`, copy the environment variables, and configure the flags by yourself.
641
+
610
642
## 7. Platform Support
611
643
612
644
The following platforms and architectures have been tested an work correctly with all plugins of **METACALL**.
0 commit comments