blob: e7c8f15f5a6c42a22956ba37595c39fc1924fdb3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#! /bin/sh
set -e
# Smoke-test wt2909_checkpoint_integrity as part of running "make check".
# The cmake build passes in the builddir with -b; it should be passed through.
builddir_arg=
while getopts ":b:" opt; do
case $opt in
b) builddir_arg="-b $OPTARG" ;;
esac
done
shift $(( OPTIND - 1 ))
if [ -n "$1" ]
then
# If the test binary is passed in manually.
test_bin=$1
else
# If $top_builddir/$top_srcdir aren't set, default to building in build_posix
# and running in test/csuite.
top_builddir=${top_builddir:-../../build_posix}
top_srcdir=${top_srcdir:-../..}
test_bin=$top_builddir/test/csuite/test_wt2909_checkpoint_integrity
fi
$TEST_WRAPPER $test_bin $builddir_arg -t r
$TEST_WRAPPER $test_bin $builddir_arg -t c
|