]> git.cworth.org Git - apitrace-tests/commitdiff
trim_stress: Also test any traces in the directory trim_stress/local
authorCarl Worth <cworth@cworth.org>
Mon, 28 Jan 2013 11:04:56 +0000 (22:04 +1100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 6 Feb 2013 15:47:52 +0000 (15:47 +0000)
This is useful for performing testing on traces that are too large to
be considered for include in git, or for traces that cannot be shared
due to proprietary contents.

trim_stress/.gitignore
trim_stress/CMakeLists.txt
trim_stress/README.markdown

index 2c3a0d6d3c7808a5fd9b2db9d77f037da71f5b9a..d2c3ca2c0a64c566699ed3baf67d494ad2d75ca7 100644 (file)
@@ -3,3 +3,4 @@
 *-out
 *-index.html
 *.trace.trim
+local/
index 652590d09baa52fefc19ff0892f40184754ea0be..6df43eb4ec9c67543d42b1e18e33d203b37796b7 100644 (file)
@@ -1,5 +1,7 @@
 file (GLOB traces RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.trace)
+file (GLOB local_traces RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} local/*.trace)
 
+list (APPEND traces ${local_traces})
 list (SORT traces)
 
 foreach (trace ${traces})
index 5678ceb807d570ed5cf5e2c2b09e02790e4116e1..ed872fc08e0f161bd4d55b29970ea944ee4117c8 100644 (file)
@@ -24,3 +24,9 @@ Given <program>.trace:
 
         4. Move the frame snapshot from ./<program>-tmp-out to
            ./<program>-out
+
+Note that you can also put traces in the sub-directory local and they
+will be tested as well. The difference is that those files will be
+ignored by git. This can be useful for traces that are too large to be
+considered for inclusion for git, or for traces that cannot be shared
+due to proprietary contents.