Skip to content

Commit

Permalink
Add generated test runner.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Mar 20, 2015
1 parent fbb8ece commit d52d242
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ src_libbitcoin_la_SOURCES = \
#------------------------------------------------------------------------------
if WITH_TESTS

# Execute 'test/libbitcoin_test' as a test.
TESTS = test/libbitcoin_test
TESTS = libbitcoin_test_runner.sh

check_PROGRAMS = test/libbitcoin_test
test_libbitcoin_test_CFLAGS = ${iconv_CFLAGS} ${pthread_CFLAGS} ${rt_CFLAGS}
Expand Down
2 changes: 1 addition & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
###############################################################################
# Copyright (c) 2014-2015 libbitcoin developers (see COPYING).
#
Expand Down
22 changes: 22 additions & 0 deletions libbitcoin_test_runner.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh
###############################################################################
# Copyright (c) 2014-2015 libbitcoin developers (see COPYING).
#
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
#
###############################################################################

# Define tests and options.
#==============================================================================
BOOST_UNIT_TEST_OPTIONS=\
"--run_test=* "\
"--random=1 "\
"--show_progress=yes "\
"--detect_memory_leak=0 "\
"--report_level=no "\
"--build_info=yes"


# Run tests.
#==============================================================================
./test/libbitcoin_test ${BOOST_UNIT_TEST_OPTIONS}

0 comments on commit d52d242

Please sign in to comment.