...
| Code Block | ||||
|---|---|---|---|---|
| ||||
# Run on ~/rialto
# Configure the location of the output build files (default /build)
./build_ut.py -o build2
# Configure the file to write the results of the build and tests
# By not supplying this option output is defaulted to stdout
# If no string provided, results will be written to 'gtest_result.log' in the root of the repo
./build_ut.py -f
./build_ut.py -f test.log
# Configure which suite tests you would like to run
# By not supplying this option, all test suites will be run
./build_ut.py -s server
# Configure the googletest filter to use when running the tests
# For more details, see: https://github.com/google/googletest/blob/main/docs/advanced.md#running-a-subset-of-the-tests
./build_ut.py -gf TestFilter
# Option to list the tests available for the requested suites
./build_ut.py -l
# Option to clean the directory after running (remove output directory)
./build_ut.py -c
# Option to skip building of the tests
./build_ut.py -nb
# Option to skip running of the tests
./build_ut.py -nt
# Option to run tests with valgrind check. -f or -xml option can be used here to specify output file name.
./build_ut.py -val
# Option to run tests and generate coverage report. Output will be written to ./build/coverage_report/ directory.
./build_ut.py -cov |
...