summaryrefslogtreecommitdiff
path: root/sanity.jam
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2012-05-11 20:31:57 -0400
committerKenneth Heafield <github@kheafield.com>2012-05-11 20:31:57 -0400
commit5d2d8752f03934acb61dc9ca826563900d413e44 (patch)
treef16863dfe3df191193a221b99ae96be58d4611cc /sanity.jam
parent45a28264df3f1347eba603ee0758e5d7f063c327 (diff)
Fix relative paths in tests.
Diffstat (limited to 'sanity.jam')
-rw-r--r--sanity.jam12
1 files changed, 7 insertions, 5 deletions
diff --git a/sanity.jam b/sanity.jam
index 1b37a4e7..a89e95f9 100644
--- a/sanity.jam
+++ b/sanity.jam
@@ -21,11 +21,7 @@ rule test_flags ( flags * ) {
echo $(cmd) ;
echo $(ret) ;
}
- if $(ret[2]) = 0 {
- return true ;
- } else {
- return ;
- }
+ return $(ret[2]) == 0 ;
}
rule test_header ( name ) {
@@ -182,3 +178,9 @@ rule install-headers ( name : list * : source-root ? ) {
source-root ?= "." ;
install $(name) : $(list) : <location>$(includedir) <install-source-root>$(source-root) ;
}
+
+rule build-projects ( projects * ) {
+ for p in $(projects) {
+ build-project $(p) ;
+ }
+}