diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 094b96a..0b46665 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -1,6 +1,6 @@ # Boost.Assert Library test Jamfile # -# Copyright (c) 2014 Peter Dimov +# Copyright (c) 2014, 2017 Peter Dimov # # Distributed under the Boost Software License, Version 1.0. # See accompanying file LICENSE_1_0.txt or copy at @@ -9,17 +9,18 @@ # bring in rules for testing import testing ; -test-suite "assert" - : - [ run assert_test.cpp ] - [ run current_function_test.cpp : : : always_show_run_output ] - [ run verify_test.cpp ] - [ run assert_is_void_test.cpp ] - # expansion tests are in exp/ so that there is a backslash in the path on Windows - [ run exp/assert_exp_test.cpp ] - [ run exp/assert_msg_exp_test.cpp ] - [ run exp/verify_exp_test.cpp ] - [ run exp/verify_msg_exp_test.cpp ] - [ run assert_test2.cpp ] - [ run assert_msg_test2.cpp ] - ; +run assert_test.cpp ; +run current_function_test.cpp : : : always_show_run_output ; +run verify_test.cpp ; +run assert_is_void_test.cpp ; + +# expansion tests are in exp/ so that there is a backslash in the path on Windows +run exp/assert_exp_test.cpp ; +run exp/assert_msg_exp_test.cpp ; +run exp/verify_exp_test.cpp ; +run exp/verify_msg_exp_test.cpp ; +run assert_test2.cpp ; +run assert_msg_test2.cpp ; + +# quick test (for CI) +run quick.cpp ; diff --git a/test/quick.cpp b/test/quick.cpp new file mode 100644 index 0000000..ec3dba6 --- /dev/null +++ b/test/quick.cpp @@ -0,0 +1,18 @@ +// +// quick.cpp - a quick test for boost/assert.hpp +// +// Copyright 2017 Peter Dimov +// +// 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 +// + +#include + +int main() +{ + int x = 1; + BOOST_ASSERT( x == 1 ); +}