From 1cf962e12780ce4ef3a4fd20c0bc74578b8b69b3 Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Fri, 31 Jan 2025 21:24:00 +0200 Subject: [PATCH] HOWTO.md: add a note about running the tests from the build dir directly ... without installation. I needed to export CLAZYPLUGIN_CXX and CLAZYSTANDALONE_CXX to point to the build dir. --- HOWTO.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/HOWTO.md b/HOWTO.md index a6bbcc72..6d87b449 100644 --- a/HOWTO.md +++ b/HOWTO.md @@ -43,6 +43,12 @@ which will generate the files you need to write, and edit others for you. - Look in `Utils.h`, `StringUtils.h`, `QtUtils.h`, `FixitUtils.h`, etc for helper functions you might need. +- If you try to run the tests from the build dir directly without installation, you may get error + messages about not finding `ClazyPlugin.so` and/or `clazy-standalone` when you call + `run_tests.py`. This can be resolved by exporting the following environment variables: + + `export CLAZYPLUGIN_CXX=/lib/ClazyPlugin.so && export CLAZYSTANDALONE_CXX=/bin/clazy-standalone` + ## Using ASTMatchers - See the `qcolor-from-literal` check for how to use ASTMatchers with clazy