Testsuite for apitrace
C++ C Python CMake Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
apps
cli cmake: Use PROJECT_SOURCE_DIR. Sep 18, 2016
cmake
thirdparty cmake: Use a single GLFW instance. Jan 31, 2017
traces cmake: Use PROJECT_SOURCE_DIR. Sep 18, 2016
trim_stress cmake: Use PROJECT_SOURCE_DIR. Sep 18, 2016
.gitignore Rename src json filenames to match reference more closely. May 10, 2014
CMakeLists.txt cmake: Use a single GLFW instance. Jan 31, 2017
README.markdown apps/?gl: Replace GLEW with GLAD. Jun 29, 2015
app_driver.py apps: Allow testing mhook injection. Sep 18, 2016
base_driver.py apps: Leverage SKIP_RETURN_CODE property being introduced with cmake 3.0 Jun 3, 2014
cli_driver.py
tool_driver.py cli: Add test for sed. Jun 24, 2015
tracematch.py
tracemeld.sh
trim_stress_driver.py Update tests from trim/trim-auto split. Aug 6, 2015

README.markdown

About

This is an automated test suite for apitrace.

Requirements

Same as apitrace requirements.

Usage

To run the test suite do on Unices:

cmake -DAPITRACE_SOURCE_DIR=/path/to/apitrace/tree -DAPITRACE_EXECUTABLE=/path/to/apitrace/build/apitrace -H. -Bbuild
export CTEST_OUTPUT_ON_FAILURE=1
make -C build all test

You can run multiple tests in parallel by specifying CTEST_PARALLEL_LEVEL environment variable.

Or on Windows:

cmake -G "Visual Studio 10" -H. -Bbuild
set CTEST_OUTPUT_ON_FAILURE=1
cmake --build build --target ALL_BUILD
cmake --build build --target RUN_TESTS

A detailed log will be written to Testing/Temporary/LastTest.log.

Tips

Some tests will crash on purpose. On Mac OS X you can avoid the application quit unexpectedly doing

defaults write com.apple.CrashReporter DialogType none