Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overlay: run unionmount testsuite test cases
Add support for running unionmount-testsuite from xfstests. This requires that unionmount-testsuite is installed under src dir or that UNIONMOUNT_TESTSUITE variable points to the location of the testsuite. It also requires a recent version of unionmount-testsuite that supports setting mount path via UNIONMOUNT_* environment variables. Add tests for 2 basic configurations: - overlay with upper/lower on same fs - overlay with upper/lower on non same fs The samefs test uses scratch partition for lower/upper layers. The nonsamefs test uses the scratch partition for upper layer and the test partition for lower layer. Signed-off-by: Amir Goldstein <amir73il@gmail.com>
- Loading branch information
Showing
8 changed files
with
150 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#! /bin/bash | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# Copyright (C) 2020 CTERA Networks. All Rights Reserved. | ||
# | ||
# FS QA Test 100 | ||
# | ||
# Run unionmount testsuite to verify correctness | ||
# with single lower layer on same fs as upper | ||
# | ||
seq=`basename $0` | ||
seqres=$RESULT_DIR/$seq | ||
echo "QA output created by $seq" | ||
|
||
here=`pwd` | ||
tmp=/tmp/$$ | ||
status=1 # failure is the default! | ||
trap "_unionmount_testsuite_cleanup; exit \$status" 0 1 2 3 15 | ||
|
||
# get standard environment, filters and checks | ||
. ./common/rc | ||
. ./common/filter | ||
|
||
# remove previous $seqres.full before test | ||
rm -f $seqres.full | ||
|
||
# real QA test starts here | ||
|
||
_supported_fs overlay | ||
_supported_os Linux | ||
_require_unionmount_testsuite | ||
|
||
_unionmount_testsuite_run --ov --samefs --verify | ||
|
||
# success, all done | ||
echo "Silence is golden" | ||
status=0 | ||
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
QA output created by 100 | ||
Silence is golden |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#! /bin/bash | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# Copyright (C) 2020 CTERA Networks. All Rights Reserved. | ||
# | ||
# FS QA Test 101 | ||
# | ||
# Run unionmount testsuite to verify correctness | ||
# with single lower layer not on same fs as upper | ||
# | ||
seq=`basename $0` | ||
seqres=$RESULT_DIR/$seq | ||
echo "QA output created by $seq" | ||
|
||
here=`pwd` | ||
tmp=/tmp/$$ | ||
status=1 # failure is the default! | ||
trap "_unionmount_testsuite_cleanup; exit \$status" 0 1 2 3 15 | ||
|
||
# get standard environment, filters and checks | ||
. ./common/rc | ||
. ./common/filter | ||
|
||
# remove previous $seqres.full before test | ||
rm -f $seqres.full | ||
|
||
# real QA test starts here | ||
|
||
_supported_fs overlay | ||
_supported_os Linux | ||
_require_unionmount_testsuite | ||
|
||
_unionmount_testsuite_run --ov --verify | ||
|
||
# success, all done | ||
echo "Silence is golden" | ||
status=0 | ||
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
QA output created by 101 | ||
Silence is golden |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters