summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-10-24 19:19:49 -0600
committerJens Axboe <axboe@kernel.dk>2019-10-24 19:19:49 -0600
commit4fb3c9e9c737c2cf2d4df4e1972e68d596a626f7 (patch)
tree5f2f7590ca34332f80223811cfb7c3c20493cde8
parenta769aa109c7e1368c8a80c92ce8849ce3e3322d4 (diff)
downloadliburing-4fb3c9e9c737c2cf2d4df4e1972e68d596a626f7.tar.gz
liburing-4fb3c9e9c737c2cf2d4df4e1972e68d596a626f7.tar.bz2
Add runtests-loop target
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--Makefile2
-rw-r--r--test/Makefile2
-rwxr-xr-xtest/runtests-loop.sh16
3 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4f524df..cc457bb 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,8 @@ all:
runtests:
@$(MAKE) -C test runtests
+runtests-loop:
+ @$(MAKE) -C test runtests-loop
config-host.mak: configure
@if [ ! -e "$@" ]; then \
diff --git a/test/Makefile b/test/Makefile
index 412fe99..175afda 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -37,3 +37,5 @@ clean:
runtests:
@./runtests.sh $(all_targets)
+runtests-loop:
+ @./runtests-loop.sh $(all_targets)
diff --git a/test/runtests-loop.sh b/test/runtests-loop.sh
new file mode 100755
index 0000000..4019eba
--- /dev/null
+++ b/test/runtests-loop.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+TESTS="$@"
+ITER=0
+
+while true; do
+ ./runtests.sh "$TESTS"
+ RET="$?"
+ if [ "${RET}" -ne 0 ]; then
+ echo "Tests failed at loop $ITER"
+ break
+ fi
+ echo "Finished loop $ITER"
+ ((ITER++))
+done
+