summaryrefslogtreecommitdiffstats
path: root/tests/imsm-grow-template (follow)
Commit message (Collapse)AuthorAgeFilesLines
* func.sh: do not hang when grow-continue can't finishKinga Stefaniuk2024-11-131-2/+0
| | | | | | | | When grow-continue process is ongoing, sync_action indicates that recovery is in progress. If grow-continue does not finish, even if sync_action is not "reshape" anymore, the test should fail. Signed-off-by: Kinga Stefaniuk <kinga.stefaniuk@intel.com>
* tests: remove --autoMariusz Tkaczyk2024-11-071-5/+5
| | | | | | It is deprecated and it is not tested now. Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
* tests: Avoid passing chunk size when creating RAID 1Mateusz Grzonka2021-08-021-5/+13
| | | | | | | | | | | | | | Tests fail because passing chunk size for RAID 1 is now forbidden. Failing tests: - 14imsm-r1_2d-grow-r1_3d - 14imsm-r1_2d-takeover-r0_2d - 18imsm-1d-takeover-r1_2d - 18imsm-r1_2d-takeover-r0_1d Correct tests to not pass chunk size when RAID level is 1. Signed-off-by: Mateusz Grzonka <mateusz.grzonka@intel.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
* tests, imsm: Test shouldn't call grow with chunk and level in one commandMichal Zylowski2018-07-111-3/+8
| | | | | | | | | | Since a3b831c9 "Grow.c: Block any level migration with chunk size change" there is no possibility to perform migration between level and chunk in one operation. When any test tries to do this error message is printed and tests finishes with fail. Signed-off-by: Michal Zylowski <michal.zylowski@intel.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
* tests/imsm-grow-template change 'wait' to 'check wait'NeilBrown2015-05-281-4/+4
| | | | | | | 'wait' is a shell builtin that isn't doing anything useful. It should be calling 'check wait' I think. Signed-off-by: NeilBrown <neilb@suse.de>
* tests/imsm-grow-template: sleep a bit more.NeilBrown2015-05-151-0/+2
| | | | | | | | | | The current sleep/wait doesn't seem long enough, particularly when two arrays are being reshaped in the one container. So wait a bit more... Signed-off-by: NeilBrown <neilb@suse.de>
* imsm: Unit Tests - remove backup-file during grow commandAdam Kwolek2011-06-081-3/+2
| | | | | | | | Update reshape/migration unit tests to not to use backup file. Imsm native check-pointing has to be used (internally) instead. Signed-off-by: Krzysztof Wojcik <krzysztof.wojcik@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
* FIX: Tests: raid0->raid10 without degradationKrzysztof Wojcik2011-03-241-5/+2
| | | | | | | | | | | | | | | raid0->raid10 transition needs at least 2 spare devices. After level changing to raid10 recovery is triggered on failed (missing) disks. At the end of recovery process we have fully operational (not degraded) raid10 array. Initialy there was possibility to migrate raid0->raid10 without recovery triggering (it results degraded raid10). Now it is not possible. This patch adapt tests to new mdadm's behavior. Signed-off-by: Krzysztof Wojcik <krzysztof.wojcik@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
* imsm: FIX: existing backup file fails unit testsAdam Kwolek2011-03-141-2/+6
| | | | | | | | | | | During normal test execution, backup file is deleted after test execution. If test is interrupted/broken, backup file can remain for next run. When backup file exists before unit test run, suits 12 and 13 fails. To avoid this remove backup file before grow is executed. Signed-off-by: Adam Kwolek <adam.kwolek@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
* imsm: Test for raid1 -> raid0 takeover addedKrzysztof Wojcik2011-02-131-1/+1
| | | | | | | | Patch introduces test for raid1 to raid0 takeover operation verification for imsm metadata format. Signed-off-by: Krzysztof Wojcik <krzysztof.wojcik@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
* Enable tests for OLCE, takeover, migrations for imsm metadataKrzysztof Wojcik2010-12-261-0/+104
Patch provides set of tests for On-line Capacity Expansion, takeover, migrations operations for imsm metadata type. Tests are grouped by operation type: 12 - On-line Capacity Expansion on one volume 13 - On-line Capacity Expansion on two volumes 14 - Negative tests for takeover, migrations 15 - Chunk size migrations 16 - raid0 -> raid5, raid5 -> raid0 migrations 18 - takeover operations To run particular test group, following command should be executed: (from mdadm's source code root directory) ./test <group number> Example: To run On-line Capacity Expansion on one volume tests: ./test 12 Tests execution results: - In case of test pass, "succeeded" word is printed on console - If test is failed, "FAILED" word is printed on console and logs are stored in <mdadm-root-dir>/tests/log/ directory Signed-off-by: Artur Wojcik <artur.wojcik@intel.com> Signed-off-by: Krzysztof Wojcik <krzysztof.wojcik@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>