1#!/bin/sh 2# SPDX-License-Identifier: GPL-2.0-or-later 3# Copyright (c) 2020 SUSE LLC <mdoucha@suse.cz> 4# 5# Run the new LVM testsuite, including initialization and cleanup. 6 7cd $(dirname $0) 8export LTPROOT=${LTPROOT:-"$PWD"} 9echo $LTPROOT | grep -q testscripts 10if [ $? -eq 0 ]; then 11 cd .. 12 export LTPROOT=${PWD} 13fi 14 15export PATH="${PATH}:${LTPROOT}:${LTPROOT}/bin:${LTPROOT}/testcases/bin" 16 17generate_lvm_runfile.sh && prepare_lvm.sh && runltp -f lvm.local 18cleanup_lvm.sh 19