rework completion iterators
[protos/libecoli.git] / test / test.sh
1 #!/bin/sh
2 # SPDX-License-Identifier: BSD-3-Clause
3 # Copyright 2016, Olivier MATZ <zer0@droids-corp.org>
4
5 set -e
6
7 SEED=100
8 while [ ${SEED} -gt 0 ]; do
9         CMD="./build/test --random-alloc-fail=1 --seed=${SEED} $*"
10         ${CMD} --log-level=0 || (
11                 echo "=== test failed, replay seed=${SEED} with logs ===" &&
12                 ${CMD} --log-level=6 ||
13                 echo "=== test failed: ${CMD}" &&
14                 false
15         )
16
17         SEED=$((SEED-1)) && continue
18 done