Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Modify tests to cover ext2/3/4, XFS filesystems #137

Merged
merged 5 commits into from
Jun 15, 2022

Conversation

e-kov
Copy link
Collaborator

@e-kov e-kov commented Jun 14, 2022

This modification for the tests was done long time ago in scope of draft for #63
It allows to run tests/elio-test.sh with the file system specified as an argument.
Now tests can be executed like this

# Run tests, as usually, on the loop device and ext4 filesystem
sudo ./elio-test.sh

# Run tests on the loop device and ext3 filesystem
sudo ./elio-test.sh -f ext3

# Run tests on the /dev/vdb1 device and XFS filesystem
sudo ./elio-test.sh -d /dev/vdb1 -f xfs

The test test_track_writes is disabled for XFS due to #63.
And all the tests for XFS were disabled on Debian 8 due to the mount issue
(created new bug #139) and on Ubuntu 22.04 due to the issue with destroy
of unverified snapshot and incremental (see new bug #138).

I need to get it landed, because I'm going to extend tests with the LVM and RAID devices.

e-kov added 2 commits June 14, 2022 16:23
This modification for the tests was done long time ago in scope of draft for #63
It allows to run `tests/elio-test.sh` with the file system specified as an argument.
Now tests can be executed like this
```bash
sudo ./elio-test.sh

sudo ./elio-test.sh -f ext3

sudo ./elio-test.sh -d /dev/vdb1 -f xfs
```

The test `test_track_writes` is disabled for XFS due to #63.
And all the tests for XFS were disabled on Debian 8 due to some mount issue
which is a part of issue #63 too.
@e-kov e-kov force-pushed the feat/different-fs-tests branch from d3baad4 to aa23480 Compare June 14, 2022 20:42
@e-kov e-kov force-pushed the feat/different-fs-tests branch from aa23480 to c72104e Compare June 14, 2022 20:51
@@ -33,7 +33,8 @@ def setUpClass(cls):
util.dd("/dev/zero", cls.backing_store, 256, bs="1M")
cls.device = util.loop_create(cls.backing_store)

util.mkfs(cls.device)
cls.fs = os.getenv('TEST_FS') if os.getenv('TEST_FS') else "ext4"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest using the default value in the os.getenv() method

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. Applied.

@e-kov e-kov requested a review from skypodolsky June 15, 2022 14:03
@e-kov e-kov merged commit f61bdc5 into master Jun 15, 2022
@e-kov e-kov deleted the feat/different-fs-tests branch June 15, 2022 17:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants