summaryrefslogtreecommitdiff
path: root/test/scripts/continuous-merge-test.sh
blob: 3bb6de231e76c3d96d2eae44c5d59f395f7d8ef2 (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
#!/bin/sh

set -o nounset
set -o errexit

top_srcdir=$(cd $(dirname $0)/../..; pwd)

. ${top_srcdir}/test/test.shvars

SCRIPTS=${top_srcdir}/test/scripts

tests_start() {
    ${SCRIPTS}/light-system-test-start.sh
    ${SCRIPTS}/continuous-merge-start.sh &
}

tests_stop() {
    ${SCRIPTS}/continuous-merge-stop.sh
    ${SCRIPTS}/light-system-test-stop.sh
}

echo "$0: starting"
${SCRIPTS}/light-system-test-prepare.sh
tests_start
${SCRIPTS}/continuous-merge-test-run-1.sh || (echo "Tests failed"; sleep 5; tests_stop; false)
sleep 5
tests_stop