Add quick test target

This commit is contained in:
Peter Dimov
2017-09-04 15:12:19 +03:00
parent f05a6fff37
commit cf19f2469a
2 changed files with 34 additions and 15 deletions

View File

@@ -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 : : : <test-info>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 : : : <test-info>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 ;

18
test/quick.cpp Normal file
View 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 );
}