فهرست منبع

Initial commit

[SVN r19032]
Beman Dawes 23 سال پیش
والد
کامیت
4d1b11bc7a

+ 28 - 0
tools/regression/test/Jamfile

@@ -0,0 +1,28 @@
+# Boost Regression Reporting test Jamfile
+
+#  (C) Copyright Beman Dawes 2003. Permission to copy, use, modify, sell and
+#  distribute this software is granted provided this copyright notice appears in
+#  all copies. This software is provided "as is" without express or implied
+#  warranty, and with no claim as to its suitability for any purpose.
+
+subproject tools/regression/test ;
+
+# bring in rules for testing
+SEARCH on testing.jam = $(BOOST_BUILD_PATH) ;
+include testing.jam ;
+
+# Make tests run by default.
+DEPENDS all : test ;
+
+{
+    # look in BOOST_ROOT for sources first, just in this Jamfile
+    local SEARCH_SOURCE = $(BOOST_ROOT) $(SEARCH_SOURCE) ;
+    
+    run compile-fail.cpp ;
+    run run-fail.cpp ;
+    run run-note-fail.cpp ;
+    run run-note-pass.cpp ;
+    run run-note-warn.cpp ;
+    run run-pass.cpp ;
+    run run-pass-warn.cpp ;
+}

+ 7 - 0
tools/regression/test/compile-fail.cpp

@@ -0,0 +1,7 @@
+//  (C) Copyright Beman Dawes 2003. Permission to copy,
+//  use, modify, sell and distribute this software is granted provided this
+//  copyright notice appears in all copies. This software is provided "as is"
+//  without express or implied warranty, and with no claim as to its
+//  suitability for any purpose.
+
+#error example of a compile failure

+ 13 - 0
tools/regression/test/run-fail.cpp

@@ -0,0 +1,13 @@
+//  (C) Copyright Beman Dawes 2003. Permission to copy,
+//  use, modify, sell and distribute this software is granted provided this
+//  copyright notice appears in all copies. This software is provided "as is"
+//  without express or implied warranty, and with no claim as to its
+//  suitability for any purpose.
+
+#include <iostream>
+
+int main()
+{
+  std::cout << "example of output from a run-time failure\n";
+  return 1;
+}

+ 15 - 0
tools/regression/test/run-note-fail.cpp

@@ -0,0 +1,15 @@
+//  (C) Copyright Beman Dawes 2003. Permission to copy,
+//  use, modify, sell and distribute this software is granted provided this
+//  copyright notice appears in all copies. This software is provided "as is"
+//  without express or implied warranty, and with no claim as to its
+//  suitability for any purpose.
+
+#include <iostream>
+
+int main()
+{
+  std::cout << "example of output before a <note> line\n";
+  std::cout << "<note>\n";
+  std::cout << "example of output after a <note> line\n";
+  return 1;
+}

+ 15 - 0
tools/regression/test/run-note-pass.cpp

@@ -0,0 +1,15 @@
+//  (C) Copyright Beman Dawes 2003. Permission to copy,
+//  use, modify, sell and distribute this software is granted provided this
+//  copyright notice appears in all copies. This software is provided "as is"
+//  without express or implied warranty, and with no claim as to its
+//  suitability for any purpose.
+
+#include <iostream>
+
+int main()
+{
+  std::cout << "example of output before a <note> line\n";
+  std::cout << "<note>\n";
+  std::cout << "example of output after a <note> line\n";
+  return 0;
+}

+ 19 - 0
tools/regression/test/run-note-warn.cpp

@@ -0,0 +1,19 @@
+//  (C) Copyright Beman Dawes 2003. Permission to copy,
+//  use, modify, sell and distribute this software is granted provided this
+//  copyright notice appears in all copies. This software is provided "as is"
+//  without express or implied warranty, and with no claim as to its
+//  suitability for any purpose.
+
+#include <iostream>
+
+int main()
+{
+  std::cout << "example of output before a <note> line\n";
+  std::cout << "<note>\n";
+  std::cout << "example of output after a <note> line\n";
+
+  // provoke a compiler warning to make sure <note> takes priority over
+  // a warning, but neither is lost from status reporting links HTML.
+  char x = 0xffffffff;
+  return x ? 0 : 0; // use x to eliminate other warnings
+}

+ 12 - 0
tools/regression/test/run-pass-warn.cpp

@@ -0,0 +1,12 @@
+//  (C) Copyright Beman Dawes 2003. Permission to copy,
+//  use, modify, sell and distribute this software is granted provided this
+//  copyright notice appears in all copies. This software is provided "as is"
+//  without express or implied warranty, and with no claim as to its
+//  suitability for any purpose.
+
+int main()
+{
+  // provoke a compiler warning
+  char x = 0xffffffff;
+  return x ? 0 : 0; // use x to eliminate other warnings
+}

+ 10 - 0
tools/regression/test/run-pass.cpp

@@ -0,0 +1,10 @@
+//  (C) Copyright Beman Dawes 2003. Permission to copy,
+//  use, modify, sell and distribute this software is granted provided this
+//  copyright notice appears in all copies. This software is provided "as is"
+//  without express or implied warranty, and with no claim as to its
+//  suitability for any purpose.
+
+int main()
+{
+  return 0;
+}

+ 9 - 0
tools/regression/test/test.bat

@@ -0,0 +1,9 @@
+@echo off
+echo Begin test processing...
+bjam --dump-tests %* >bjam.log 2>&1
+echo Begin log processing...
+process_jam_log <bjam.log
+start bjam.log
+echo Begin compiler status processing...
+compiler_status %BOOST_ROOT% test_status.html test_links.html
+start test_status.html

粤ICP备19079148号