]> git.cworth.org Git - apitrace-tests/commitdiff
Brief documentation.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Sun, 30 Oct 2011 11:17:26 +0000 (11:17 +0000)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sun, 30 Oct 2011 11:17:26 +0000 (11:17 +0000)
CMakeLists.txt
README.md [new file with mode: 0644]

index 907f0ba20737c739dfdaa7534fdde21f7352fa9a..7975877eb5ce776af09d7b3ea87be0cc6ee7448d 100644 (file)
@@ -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 (file)
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