xref: /aosp_15_r20/external/ltp/testscripts/lvmtest.sh (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1*49cdfc7eSAndroid Build Coastguard Worker#!/bin/sh
2*49cdfc7eSAndroid Build Coastguard Worker# SPDX-License-Identifier: GPL-2.0-or-later
3*49cdfc7eSAndroid Build Coastguard Worker# Copyright (c) 2020 SUSE LLC <[email protected]>
4*49cdfc7eSAndroid Build Coastguard Worker#
5*49cdfc7eSAndroid Build Coastguard Worker# Run the new LVM testsuite, including initialization and cleanup.
6*49cdfc7eSAndroid Build Coastguard Worker
7*49cdfc7eSAndroid Build Coastguard Workercd $(dirname $0)
8*49cdfc7eSAndroid Build Coastguard Workerexport LTPROOT=${LTPROOT:-"$PWD"}
9*49cdfc7eSAndroid Build Coastguard Workerecho $LTPROOT | grep -q testscripts
10*49cdfc7eSAndroid Build Coastguard Workerif [ $? -eq 0 ]; then
11*49cdfc7eSAndroid Build Coastguard Worker	cd ..
12*49cdfc7eSAndroid Build Coastguard Worker	export LTPROOT=${PWD}
13*49cdfc7eSAndroid Build Coastguard Workerfi
14*49cdfc7eSAndroid Build Coastguard Worker
15*49cdfc7eSAndroid Build Coastguard Workerexport PATH="${PATH}:${LTPROOT}:${LTPROOT}/bin:${LTPROOT}/testcases/bin"
16*49cdfc7eSAndroid Build Coastguard Worker
17*49cdfc7eSAndroid Build Coastguard Workergenerate_lvm_runfile.sh && prepare_lvm.sh && runltp -f lvm.local
18*49cdfc7eSAndroid Build Coastguard Workercleanup_lvm.sh
19