]> git.proxmox.com Git - ceph.git/blame - ceph/qa/run_xfstests_qemu.sh
update ceph source to reef 18.2.0
[ceph.git] / ceph / qa / run_xfstests_qemu.sh
CommitLineData
11fdf7f2 1#!/usr/bin/env bash
7c673cae
FG
2#
3# TODO switch to run_xfstests.sh (see run_xfstests_krbd.sh)
4
5set -x
6
7[ -n "${TESTDIR}" ] || export TESTDIR="/tmp/cephtest"
8[ -d "${TESTDIR}" ] || mkdir "${TESTDIR}"
9
10URL_BASE="https://git.ceph.com/?p=ceph.git;a=blob_plain;f=qa"
11SCRIPT="run_xfstests-obsolete.sh"
12
13cd "${TESTDIR}"
14
39ae355f 15curl -O "${URL_BASE}/${SCRIPT}"
20effc67
TL
16# mark executable only if the file isn't empty since ./"${SCRIPT}"
17# on an empty file would succeed
18if [[ -s "${SCRIPT}" ]]; then
19 chmod +x "${SCRIPT}"
20fi
21
22TEST_DEV="/dev/vdb"
23if [[ ! -b "${TEST_DEV}" ]]; then
24 TEST_DEV="/dev/sdb"
25fi
26SCRATCH_DEV="/dev/vdc"
27if [[ ! -b "${SCRATCH_DEV}" ]]; then
28 SCRATCH_DEV="/dev/sdc"
29fi
7c673cae
FG
30
31# tests excluded fail in the current testing vm regardless of whether
32# rbd is used
33
20effc67 34./"${SCRIPT}" -c 1 -f xfs -t "${TEST_DEV}" -s "${SCRATCH_DEV}" \
7c673cae
FG
35 1-7 9-17 19-26 28-49 51-61 63 66-67 69-79 83 85-105 108-110 112-135 \
36 137-170 174-191 193-204 206-217 220-227 230-231 233 235-241 243-249 \
20effc67 37 252-259 261-262 264-278 281-286 289
7c673cae
FG
38STATUS=$?
39
40rm -f "${SCRIPT}"
41
42exit "${STATUS}"