Hey anybody, can I get some help on testing osque...
# core
t
Hey anybody, can I get some help on testing osquery? docs say `cmake --build . --target test`(https://osquery.readthedocs.io/en/latest/development/building/) but I get a
make: *** No rule to make target 'test'.  Stop.
response from my cwd:
osquery/build/osquery
anything I’m missing?
s
What command did you run. I can’t tell from your comment
t
I ran
cmake --build . --target test
s
Should be something like:
Copy code
mkdir build
cd build
cmake -DOSQUERY_BUILD_TESTS=ON ../
cmake --build . --target test
What did you run before that?
t
I just ran the `cmake build ../`so that makes sense, I didn’t have tests active
s
Beware that running
cmake --build . --target test
won't actually build the tests, it will only try to run them. You need to build with
cmake --build . -j <jobs>
first. This is all mentioned at the top of the
Testing
section in the docs.
We can maybe better clarify that part and put a
Build tests
title as its done with the run part.