Skip to content

Commit 9df94f1

Browse files
committed
Add generated test runner.
1 parent 38073ec commit 9df94f1

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

Makefile.am

+1-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ src_libbitcoin_client_la_SOURCES = \
4242
#------------------------------------------------------------------------------
4343
if WITH_TESTS
4444

45-
# Execute 'test/libbitcoin_client_test' as a test.
46-
TESTS = test/libbitcoin_client_test
45+
TESTS = libbitcoin_client_test_runner.sh
4746

4847
check_PROGRAMS = test/libbitcoin_client_test
4948
test_libbitcoin_client_test_CPPFLAGS = -I${srcdir}/include ${bitcoin_CPPFLAGS} ${sodium_CPPFLAGS} ${czmq___CPPFLAGS}

autogen.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22
###############################################################################
33
# Copyright (c) 2014-2015 libbitcoin-client developers (see COPYING).
44
#

libbitcoin_client_test_runner.sh

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/sh
2+
###############################################################################
3+
# Copyright (c) 2014-2015 libbitcoin-client developers (see COPYING).
4+
#
5+
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
6+
#
7+
###############################################################################
8+
9+
# Define tests and options.
10+
#==============================================================================
11+
BOOST_UNIT_TEST_OPTIONS=\
12+
"--run_test=* "\
13+
"--random=1 "\
14+
"--show_progress=yes "\
15+
"--detect_memory_leak=0 "\
16+
"--report_level=no "\
17+
"--build_info=yes"
18+
19+
20+
# Run tests.
21+
#==============================================================================
22+
./test/libbitcoin_client_test ${BOOST_UNIT_TEST_OPTIONS}

0 commit comments

Comments
 (0)