summaryrefslogtreecommitdiff
path: root/boost/tools/build/example/testing
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2018-12-19 22:58:32 +0100
committerChristoph Berg <myon@debian.org>2018-12-19 22:58:32 +0100
commite0737c56c1e384e05064a0c6e1ac46979371041b (patch)
treea0123d694a2d36c43dabdf0a3907392fce11d457 /boost/tools/build/example/testing
parentb4aebf2d137b892f53503b13785ecae900062ff7 (diff)
New upstream version 2.0.0+repackupstream/2.0.0+repack
Diffstat (limited to 'boost/tools/build/example/testing')
-rw-r--r--boost/tools/build/example/testing/compile-fail.cpp17
-rw-r--r--boost/tools/build/example/testing/fail.cpp17
-rw-r--r--boost/tools/build/example/testing/jamroot.jam10
-rw-r--r--boost/tools/build/example/testing/success.cpp17
4 files changed, 61 insertions, 0 deletions
diff --git a/boost/tools/build/example/testing/compile-fail.cpp b/boost/tools/build/example/testing/compile-fail.cpp
new file mode 100644
index 00000000..a219fa5c
--- /dev/null
+++ b/boost/tools/build/example/testing/compile-fail.cpp
@@ -0,0 +1,17 @@
+// Copyright (c) 2014 Rene Rivera
+//
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+//
+// http://www.boost.org
+//
+
+#include <iostream>
+#include <cstdlib>
+
+int main()
+{
+ std::cout << "Bye!\n";
+ return EXIT_FAILURE
+}
diff --git a/boost/tools/build/example/testing/fail.cpp b/boost/tools/build/example/testing/fail.cpp
new file mode 100644
index 00000000..96566118
--- /dev/null
+++ b/boost/tools/build/example/testing/fail.cpp
@@ -0,0 +1,17 @@
+// Copyright (c) 2014 Rene Rivera
+//
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+//
+// http://www.boost.org
+//
+
+#include <iostream>
+#include <cstdlib>
+
+int main()
+{
+ std::cout << "Bye!\n";
+ return EXIT_FAILURE;
+}
diff --git a/boost/tools/build/example/testing/jamroot.jam b/boost/tools/build/example/testing/jamroot.jam
new file mode 100644
index 00000000..047aff39
--- /dev/null
+++ b/boost/tools/build/example/testing/jamroot.jam
@@ -0,0 +1,10 @@
+# Copyright 2014 Rene Rivera
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
+
+using testing ;
+
+run success.cpp : : ;
+run-fail fail.cpp : : ;
+compile success.cpp : : success-compile ;
+compile-fail compile-fail.cpp ;
diff --git a/boost/tools/build/example/testing/success.cpp b/boost/tools/build/example/testing/success.cpp
new file mode 100644
index 00000000..bf558806
--- /dev/null
+++ b/boost/tools/build/example/testing/success.cpp
@@ -0,0 +1,17 @@
+// Copyright (c) 2014 Rene Rivera
+//
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+//
+// http://www.boost.org
+//
+
+#include <iostream>
+#include <cstdlib>
+
+int main()
+{
+ std::cout << "Hi!\n";
+ return EXIT_SUCCESS;
+}