From: José Fonseca Date: Sun, 30 Oct 2011 11:17:26 +0000 (+0000) Subject: Brief documentation. X-Git-Url: https://git.cworth.org/git?p=apitrace-tests;a=commitdiff_plain;h=007d3dd1a9ca4b00cdb81d7b72a608687c024d50 Brief documentation. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 907f0ba..7975877 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,9 +59,12 @@ if (MSVC) add_definitions (-wd4244) # conversion' conversion from 'type1' to 'type2', possible loss of data endif () - -set (APITRACE_BINARY_DIR "${CMAKE_BINARY_DIR}/.." CACHE PATH "apitrace build directory") - +if (NOT APITRACE_BINARY_DIR) + set (APITRACE_BINARY_DIR "${CMAKE_BINARY_DIR}/.." CACHE PATH "apitrace build directory") +endif () +if (NOT EXISTS ${APITRACE_BINARY_DIR}) + message (SEND_ERROR "Invalid APITRACE_BINARY_DIR") +endif () enable_testing() diff --git a/README.md b/README.md new file mode 100644 index 0000000..7b7a7e6 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +This is an attempt to write an automated test suite for apitrace. + +It is still work in progress, and has a lot unfinished code/ideas. + +To run the test suite do + + cmake -DAPITRACE_BINARY_DIR=/path/to/apitrace/build/ . + make + make test