forked from boostorg/assert
Add quick test target
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Boost.Assert Library test Jamfile
|
# 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.
|
# Distributed under the Boost Software License, Version 1.0.
|
||||||
# See accompanying file LICENSE_1_0.txt or copy at
|
# See accompanying file LICENSE_1_0.txt or copy at
|
||||||
@@ -9,17 +9,18 @@
|
|||||||
# bring in rules for testing
|
# bring in rules for testing
|
||||||
import testing ;
|
import testing ;
|
||||||
|
|
||||||
test-suite "assert"
|
run assert_test.cpp ;
|
||||||
:
|
run current_function_test.cpp : : : <test-info>always_show_run_output ;
|
||||||
[ run assert_test.cpp ]
|
run verify_test.cpp ;
|
||||||
[ run current_function_test.cpp : : : <test-info>always_show_run_output ]
|
run assert_is_void_test.cpp ;
|
||||||
[ 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
|
||||||
# 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_exp_test.cpp ]
|
run exp/assert_msg_exp_test.cpp ;
|
||||||
[ run exp/assert_msg_exp_test.cpp ]
|
run exp/verify_exp_test.cpp ;
|
||||||
[ run exp/verify_exp_test.cpp ]
|
run exp/verify_msg_exp_test.cpp ;
|
||||||
[ run exp/verify_msg_exp_test.cpp ]
|
run assert_test2.cpp ;
|
||||||
[ run assert_test2.cpp ]
|
run assert_msg_test2.cpp ;
|
||||||
[ run assert_msg_test2.cpp ]
|
|
||||||
;
|
# quick test (for CI)
|
||||||
|
run quick.cpp ;
|
||||||
|
18
test/quick.cpp
Normal file
18
test/quick.cpp
Normal file
@@ -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 <boost/assert.hpp>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int x = 1;
|
||||||
|
BOOST_ASSERT( x == 1 );
|
||||||
|
}
|
Reference in New Issue
Block a user