summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Jamfile.jam25
1 files changed, 15 insertions, 10 deletions
diff --git a/test/Jamfile.jam b/test/Jamfile.jam
index bedc2ad..5189add 100644
--- a/test/Jamfile.jam
+++ b/test/Jamfile.jam
@@ -43,6 +43,16 @@ project : requirements
<toolset>tidy:<librarydef>boost
;
lib test : [ glob *.cpp : test-*.cpp perf-*.cpp ] ;
+rule perfrun ( main + : extra-requirements * : runtime-dependency * : command-args * ) {
+ local name = $(main[0]:S=) ;
+ local benchmark = $(main[0]:S=.benchmark) ;
+ explicit $(name) ;
+ exe $(benchmark) : $(main) :
+ <library>benchmark
+ <library>test
+ $(extra-requirements) ;
+ run $(benchmark) : $(command-args) : : <dependency>$(runtime-dependency) : $(name) ;
+}
run test-collection.cpp ;
run test-maths.cpp ;
@@ -55,22 +65,17 @@ run test-enumDetails.cpp ;
run test-render.cpp : -- : test-assetFactory : <library>test ;
run test-glContextBhvr.cpp ;
run test-assetFactory.cpp : -- : [ sequence.insertion-sort [ glob-tree $(res) : *.* ] fixtures/rgb.txt test-instancing ] : <library>test ;
-run perf-assetFactory.cpp : \< : test-assetFactory : <library>benchmark <library>test ;
-run perf-geoData.cpp : \< : test-geoData : <library>test <library>benchmark ;
-run perf-terrain.cpp : \< : test-geoData : <library>test <library>benchmark ;
-run perf-persistence.cpp : \< : test-persistence : <library>benchmark <library>test ;
+perfrun perf-assetFactory.cpp : : test-assetFactory ;
+perfrun perf-geoData.cpp : : test-geoData ;
+perfrun perf-terrain.cpp : : test-geoData ;
+perfrun perf-persistence.cpp : : test-persistence ;
run test-worker.cpp ;
run test-instancing.cpp : -- : test-glContainer : <library>test ;
-run perf-instancing.cpp : \< : test-instancing : <library>benchmark <library>test ;
+perfrun perf-instancing.cpp : : test-instancing ;
run test-glContainer.cpp : : : <library>test ;
run test-pack.cpp : : : <library>test ;
run test-environment.cpp : : : <library>test ;
compile test-static-enumDetails.cpp ;
compile test-static-stream_support.cpp ;
-explicit perf-assetFactory ;
-explicit perf-persistence ;
-explicit perf-geoData ;
-explicit perf-instancing ;
-explicit perf-terrain ;
alias perf : perf-assetFactory perf-persistence perf-geoData perf-instancing perf-terrain ;
explicit perf ;