xref: /aosp_15_r20/external/ltp/testscripts/lvmtest.sh (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0-or-later
3# Copyright (c) 2020 SUSE LLC <[email protected]>
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