Title
#general
Stefano Bonicatti

Stefano Bonicatti

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

Anatol Pomazau

06/03/2020, 7:26 PM
I did not. I will add the flag and try to rebuild the project...
7:30 PM
The build command fails for me because of
[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"
7:30 PM
osquery/tables/system/tests/CMakeLists.txt probably needs adjustments for devendorized build
Stefano Bonicatti

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