mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
overlay: configure TEST/SCRATCH vars to base fs
Instead of setting the vars TEST/SCRATCH_DEV to overlay base dirs, allow setting them to block devices to configure the base fs partition, where overlay dirs will be created. For example, the following config file can be used to run tests on xfs test/scratch partitions: TEST_DEV=/dev/sda5 TEST_DIR=/mnt/test SCRATCH_DEV=/dev/sda6 SCRATCH_MNT=/mnt/scratch FSTYP=xfs Using the same config file, but executing './check -overlay' will use the same partitions as base fs for overlayfs directories and set TEST_DIR/SCRATCH_MNT values to overlay mount points, i.e.: /mnt/test/ovl-mnt and /mnt/scratch/ovl-mnt. The base fs should be pre-formatted and mounted when starting the test. An upcoming change is going to support mount/umount of base fs. The new vars OVL_BASE_SCRATCH_MNT/TEST_DIR are set to point at the overlayfs base dirs in either legacy or new config method. Tests should always use these vars and not the legacy SCRATCH/TEST_DEV vars when referring to overlay base dir. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
committed by
Eryu Guan
parent
6f5ba68b7b
commit
bcba40e3df
@@ -117,16 +117,18 @@ Running tests:
|
||||
- By default the tests suite will run xfs tests:
|
||||
- ./check '*/001' '*/002' '*/003'
|
||||
- ./check '*/06?'
|
||||
- You can explicitly specify NFS/CIFS/UDF, otherwise the filesystem type will
|
||||
be autodetected from $TEST_DEV:
|
||||
./check -nfs [test(s)]
|
||||
- Groups of tests maybe ran by: ./check -g [group(s)]
|
||||
See the 'group' file for details on groups
|
||||
- for udf tests: ./check -udf [test(s)]
|
||||
Running all the udf tests: ./check -udf -g udf
|
||||
- for running nfs tests: ./check -nfs [test(s)]
|
||||
- for running cifs/smb3 tests: ./check -cifs [test(s)]
|
||||
- To randomize test order: ./check -r [test(s)]
|
||||
- You can explicitly specify NFS/CIFS/UDF/OVERLAY, otherwise
|
||||
the filesystem type will be autodetected from $TEST_DEV:
|
||||
- for running nfs tests: ./check -nfs [test(s)]
|
||||
- for running cifs/smb3 tests: ./check -cifs [test(s)]
|
||||
- for udf tests: ./check -udf [test(s)]
|
||||
Running all the udf tests: ./check -udf -g udf
|
||||
- for overlay tests: ./check -overlay [test(s)]
|
||||
The TEST and SCRATCH partitions should be pre-formatted
|
||||
with another base fs, where the overlay dirs will be created
|
||||
|
||||
|
||||
The check script tests the return value of each script, and
|
||||
|
||||
Reference in New Issue
Block a user