From c18cbefe33ce93eb38acc25dddba75d3ca5697f2 Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Tue, 27 May 2014 18:35:36 +0400 Subject: [PATCH] qa: add run_xfstests_krbd.sh wrapper As run_xfstests.sh does no longer accept test lists, wrap it to provide an expunge file with a list of tests we want to skip for krbd runs. Signed-off-by: Ilya Dryomov --- qa/run_xfstests_krbd.sh | 65 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 qa/run_xfstests_krbd.sh diff --git a/qa/run_xfstests_krbd.sh b/qa/run_xfstests_krbd.sh new file mode 100644 index 0000000000000..4e724d92d6443 --- /dev/null +++ b/qa/run_xfstests_krbd.sh @@ -0,0 +1,65 @@ +#!/bin/bash +# +# This is a wrapper around run_xfstests.sh to provide an expunge file +# suitable for krbd xfstests runs. + +set -x + +[ -n "${TESTDIR}" ] || export TESTDIR="/tmp/cephtest" +[ -d "${TESTDIR}" ] || mkdir "${TESTDIR}" + +URL_BASE="https://ceph.com/git/?p=ceph.git;a=blob_plain;f=qa" +SCRIPT="run_xfstests.sh" + +cd "${TESTDIR}" + +wget -O "${SCRIPT}" "${URL_BASE}/${SCRIPT}" +chmod +x "${SCRIPT}" + +EXPUNGE="$(mktemp expunge.XXXXXXXXXX)" +cat > "${EXPUNGE}" <<-! + # mv - moved here from the old version of run_xfstests.sh + # and rbd_xfstests.yaml + # wasn't run - like 'mv', but wasn't specifically excluded + # new test - didn't exist in the xfstests version that was + # used by the old version of this script + + generic/062 # mv + generic/083 # mv + generic/127 # mv + generic/204 # mv + generic/306 # new test + + xfs/007 # new test + xfs/008 # mv, see 2db20d972125 + xfs/030 # mv + xfs/042 # mv + xfs/073 # mv + xfs/096 # mv + xfs/104 # mv + xfs/109 # mv + xfs/170 # mv + xfs/178 # mv + xfs/200 # mv + xfs/206 # mv + xfs/229 # mv + xfs/242 # mv + xfs/250 # mv + xfs/279 # wasn't run + xfs/287 # wasn't run + xfs/291 # wasn't run + xfs/292 # wasn't run + xfs/293 # wasn't run + xfs/295 # wasn't run + xfs/296 # wasn't run + xfs/301 # new test + xfs/302 # new test +! + +./"${SCRIPT}" -x "$(readlink -f "${EXPUNGE}")" "$@" +STATUS=$? + +rm -f "${EXPUNGE}" +rm -f "${SCRIPT}" + +exit "${STATUS}" -- 2.39.5