From 177d2f2f79d7a7d53ddce2b3338b9289c8f282db Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 6 Aug 2020 17:25:47 +0100 Subject: [PATCH] build: add script for torturing the VFS --- bin/test-repeat-vfs.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 bin/test-repeat-vfs.sh diff --git a/bin/test-repeat-vfs.sh b/bin/test-repeat-vfs.sh new file mode 100755 index 000000000..396b232c8 --- /dev/null +++ b/bin/test-repeat-vfs.sh @@ -0,0 +1,27 @@ +#!/bin/bash +# Thrash the VFS tests + +set -e + +base=$(dirname $(dirname $(realpath "$0"))) +echo ${base} +run=${base}/bin/test-repeat.sh +echo ${run} + +testdirs=" +vfs +vfs/vfscache +vfs/vfscache/writeback +vfs/vfscache/downloaders +cmd/cmount +" + +testdirs=" +cmd/cmount +" + +for testdir in ${testdirs}; do + echo "Testing ${testdir}" + cd ${base}/${testdir} + ${run} -c=100 -race -tags=cmount +done