Bladeren bron

Added tests for found Boost.Build problems

[SVN r36090]
Misha Bergal 19 jaren geleden
bovenliggende
commit
356e079563

+ 11 - 0
tools/regression/test/test-boost-build/ignored_rc/ignored_rc.jam

@@ -0,0 +1,11 @@
+rule failure
+   {
+   }
+
+actions failure
+   {
+   dir _
+   echo a
+   }
+
+failure f ;

+ 12 - 0
tools/regression/test/test-boost-build/ignored_rc/recognized_rc.jam

@@ -0,0 +1,12 @@
+rule failure
+   {
+   }
+
+actions failure
+   {
+   dir _
+   if errorlevel 1 exit %errorlevel%
+   echo a
+   }
+
+failure f ;

+ 9 - 0
tools/regression/test/test-boost-build/missing_dependencies/Jamfile.v2

@@ -0,0 +1,9 @@
+project 
+    : requirements
+      <library>/boost/filesystem//boost_filesystem
+      <define>BOOST_ALL_NO_LIB
+    ;
+
+   test-suite "missing_dependencies" :
+       [ run test.cpp  lib//<link>static ]                  
+       ;

+ 7 - 0
tools/regression/test/test-boost-build/missing_dependencies/lib/Jamfile.v2

@@ -0,0 +1,7 @@
+SOURCES =
+    lib ;
+
+lib lib
+    :
+    $(SOURCES).cpp
+    ;

+ 1 - 0
tools/regression/test/test-boost-build/missing_dependencies/lib/lib.cpp

@@ -0,0 +1 @@
+#error

+ 1 - 0
tools/regression/test/test-boost-build/missing_dependencies/test.cpp

@@ -0,0 +1 @@
+int main() { return 0; }

粤ICP备19079148号