https://github.com/osquery/osquery logo
#general
Title
# general
s

Stefano Bonicatti

06/03/2020, 7:24 PM
@Anatol Pomazau have you configured with
-DOSQUERY_BUILD_TESTS=ON
?
a

Anatol Pomazau

06/03/2020, 7:26 PM
I did not. I will add the flag and try to rebuild the project...
The build command fails for me because of
Copy code
[2/862] cd /home/anatol/sources/osquery/build/osquery/tables/syste....aug /home/anatol/sources/osquery/build/test_configs/augeas/lenses
FAILED: osquery/tables/system/tests/CMakeFiles/osquery_tables_system_tests_augeaslenses 
cd /home/anatol/sources/osquery/build/osquery/tables/system/tests && /usr/bin/cmake -E make_directory /home/anatol/sources/osquery/build/test_configs/augeas/lenses && /usr/bin/cmake -E copy /*.aug /home/anatol/sources/osquery/build/test_configs/augeas/lenses
Error copying file "/*.aug" to "/home/anatol/sources/osquery/build/test_configs/augeas/lenses"
osquery/tables/system/tests/CMakeLists.txt probably needs adjustments for devendorized build
s

Stefano Bonicatti

06/03/2020, 7:42 PM
Ah yeah, the tests expect access to the augeas lenses under the CMake
${TEST_CONFIGS_DIR}/augeas/lenses
folder, which is normally under the build folder, you can see the value of
TEST_CONFIGS_DIR
being set here https://github.com/osquery/osquery/blob/ef65c779b1be7bb8f8de65d60ccb8f1e03d60536/cmake/globals.cmake#L52. And the code that copies the lenses there is here https://github.com/osquery/osquery/blob/master/osquery/tables/system/tests/CMakeLists.txt#L180-L182
5 Views