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

theopolis

10/13/2019, 1:11 AM
Copy code
cd osquery-dev
mkdir build
cd build/
cmake -DOSQUERY_BUILD_TESTS=ON -DOSQUERY_TOOLCHAIN_SYSROOT=/usr/local/osquery-toolchain ..
make -j$(nproc)
make test
😀 1
j

Jenny Mandl

10/13/2019, 5:04 PM
when I run make -j$(nproc) my computer does about 97% of this and then shuts down "due to an error" every time
s

Stefano Bonicatti

10/14/2019, 12:22 PM
Without the build log it's a bit difficult to know, but what
$(nproc)
gives you? how much ram do you have?
j

Jenny Mandl

10/19/2019, 9:33 PM
Errors while running CTest Makefile129 recipe for target 'test' failed make: * [test] Error 8
Could not find executable /home/JennySpaghetti/osquery/build/plugins/logger/tests/plugins_logger_tests_tlsloggertests-test
ok i got it rolling and its passing everything except test 92
The following tests FAILED: 92 - tests_integration_tables-test (Failed)
92: /home/JennySpaghetti/osquery/tests/integration/tables/deb_packages.cpp47 Failure 92: Expected equality of these values: 92: all_packages.count("linux-firmware") 92: Which is: 0 92: 1u 92: Which is: 1 92: [ FAILED ] DebPackages.test_sanity (16 ms) 92: [----------] 1 test from DebPackages (16 ms total) 92: [----------] 1 test from EtcProtocolsTest 92: [ RUN ] EtcProtocolsTest.test_sanity 92: /home/JennySpaghetti/osquery/tests/integration/tables/helper.cpp160 Failure 92: Value of: validate_value_using_flags(value, flags) 92: Actual: false 92: Expected: true 92: Standard validator of the column "alias" with value "" failed 92: [ FAILED ] EtcProtocolsTest.test_sanity (2 ms) 92: [----------] 1 test from EtcProtocolsTest (2 ms total)
t

theopolis

10/20/2019, 5:06 PM
I think that's ok for now. Those integration tests are flaky when run locally.
j

Jenny Mandl

10/21/2019, 2:29 PM
okay so it should not be an issue?
s

Stefano Bonicatti

10/21/2019, 2:35 PM
No, it's the tests not expecting some of the possible values, like https://github.com/osquery/osquery/issues/5805
j

Jenny Mandl

10/21/2019, 2:40 PM
ah so this is just another open issue
👍 1
2 Views