Petr Rockai
fa46385164
test: Write a results/list at the end of a test run.
2015-02-05 13:47:17 +01:00
Petr Rockai
bf16937869
test: Clean up fds properly in the runner.
2015-02-05 13:47:16 +01:00
Petr Rockai
d2dbc65f00
test: Implement journalling and --continue.
2015-02-05 13:47:16 +01:00
Petr Rockai
9dfbce0aa7
test: Split up the new runner into multiple files.
2015-02-05 13:47:16 +01:00
Petr Rockai
f476655fee
test: Import first draft of a new test runner.
2015-02-03 08:49:35 +01:00
Zdenek Kabelac
c75548300d
tests: prepare control node before clvmd
...
Make sure there is 'control' node before clvmd is started.
Somehow 'clvmd' is not allowed by selinux to create one.
TODO: Check is selinux policy is right here...
2014-11-19 23:22:52 +01:00
Zdenek Kabelac
740fcdae7d
tests: thin repair testing
...
More checks for thin related tools.
Add same functionality for cache related tools.
2014-11-17 00:41:33 +01:00
Zdenek Kabelac
3a1c609ac4
tests: reduce number of sync waiting
...
Lets assume faster systems, if we have too big raid arrays,
reduce them.
2014-11-17 00:34:44 +01:00
Zdenek Kabelac
776934aa08
tests: skip another older kernel from raid456
2014-11-17 00:32:49 +01:00
Zdenek Kabelac
21aa850b43
tests: add helper funcionality for using gdb
...
When there is need for using gdb within test suite
just prefix command with LVM_DBG and run test in
standard shell (for stdin).
2014-09-24 10:54:48 +02:00
Zdenek Kabelac
10a448eb2f
tests: update lv_no_exists
...
On successful exit path remove debug.log file.
2014-09-15 13:51:19 +02:00
Zdenek Kabelac
8d63d94d85
tests: still unusable kernel
2014-07-23 00:29:32 +02:00
Zdenek Kabelac
d1094ec4c6
tests: replace cat with $(<
...
Use shell built-in $(<
Print lvm.conf in use for test.
2014-07-02 10:45:44 +02:00
Zdenek Kabelac
6fb19f37fe
tests: wait for udev
...
Before test exits, wait for udev.
2014-06-17 13:43:04 +02:00
Zdenek Kabelac
5c5177c37c
tests: rename test to inittest
...
We are getting into problem when we use 'test' for commands like
should/not/...
So avoid overloading test name and change it to inittest.
2014-06-10 10:51:27 +02:00
Zdenek Kabelac
9f68aadb74
tests: make timeouts longer
...
Add more time for tests, since debug kernels are getting slower...
and we add more and more tests.
However many test should be shortened to avoid testing disk-perfomance
and focus on lvm functionality...
(Often we should probably test with inactive volumes when we check
metadata operation of lvm2)
We may need to support option for 'DEEP' longer testing.
Also something like LVM_TEST_TIMEOUT_FACTOR might be useful
though it would be much better if test suite could approximete
from system perfomance test lenght...
2014-06-10 10:51:26 +02:00
Petr Rockai
eda4c3a41d
test: Make it possible to enable/disable devices silently.
2014-06-08 21:10:47 +02:00
Zdenek Kabelac
77d4e317a4
tests: use manglename none for dmsetup
2014-06-05 17:49:34 +02:00
Zdenek Kabelac
9196942312
tests: add get_devs function
...
Instead of rereading device list via cat - keep
the list in bash array. (Also solves problem
with spaces in device path)
Move usage of "$path" out of lvm shell usage,
since we don't support such thing there...
2014-06-05 17:49:34 +02:00
Zdenek Kabelac
223bdc5eb2
tests: use shell arrays to keep device names
...
Better preserving spaces in device path name,
though admitely rest of test suite need
more repairs...
2014-06-05 17:49:34 +02:00
Zdenek Kabelac
21db25b3c4
tests: fix use of double apostrophes in get
...
Need to put "" around parameters.
2014-06-05 17:49:34 +02:00
Zdenek Kabelac
b0ff3359f2
tests: update aux disable_dev
...
disable_dev can't use transaction - since it may lead occasionaly to
weird error - example could be nomda-missing.sh test case.
Here occasionaly device instead of being removed was left as
error device and testing different code path (which is unfortunatelly
buggy)
When we want to test 'error' device - 'aux error_dev()' should be used.
2014-05-26 22:57:28 +02:00
Zdenek Kabelac
b7476e91ef
tests: add unusable kernel for raid5 testing
2014-05-23 23:35:42 +02:00
Zdenek Kabelac
1208e92b34
tests: add check vg_attr_bit
...
Similar function like 'check lv_attr_bit'
2014-05-22 12:01:44 +02:00
Zdenek Kabelac
9c4953df1b
tests: restore disable_dev behavior
...
Notify needs to go with major:minor before device disappears.
2014-05-21 16:59:38 +02:00
Zdenek Kabelac
c34c33d9ba
tests: notify loop needs maj:min
...
Missed in previous commit.
2014-05-21 12:00:32 +02:00
Zdenek Kabelac
cbdb8fa589
tests: notify lvmetad after udev transation
...
Delay udev notification after the point udev transaction
is finished - since otherwise some device may still
be found missing until udev transaction is finished.
2014-05-21 11:43:24 +02:00
Zdenek Kabelac
2e9792121f
tests: add have_cache and have_raid
...
Need to be aware of build options, when system would be
configure without raid or cache support
2014-05-20 21:50:30 +02:00
Alasdair G Kergon
0ee9d59b48
test: configurable write timeout
...
Hard-coded 3 minutes is far too short when investigating problems.
2014-04-24 22:44:22 +01:00
Zdenek Kabelac
22037ee328
tests: fix creation of scsi debug
...
Use proper '||' test form to avoid unwanted test abort
on failure.
(i.e. running failing test profiles-thin.sh on a real /dev)
2014-04-24 14:42:27 +02:00
Zdenek Kabelac
4d48577ab9
tests: implement lv_attr_bit
...
Add easy check function for cheking lv_attr bits
2014-04-14 13:02:28 +02:00
Peter Rajnoha
504c328e3d
tests: add profiles-thin and prepare_profiles helper fn
2014-04-01 15:52:54 +02:00
Zdenek Kabelac
5b44a036b1
tests: support invalid and fail results
...
Allow more detailed check for failing exit code:
invalid - expects 3
fail - expects 5
2014-03-28 00:41:19 +01:00
Zdenek Kabelac
fb471a372d
tests: remove also 3.14 fc21 kernels
2014-03-26 00:04:59 +01:00
Zdenek Kabelac
c0c55846b0
tests: wait for clvmd.pid file
...
Just like with dmeventd and lvmetad.
Do few indent changes around.
2014-03-21 22:29:28 +01:00
Zdenek Kabelac
81166a84be
tests: more fedora kernels unusable for testing raid456
2014-03-18 10:28:08 +01:00
Zdenek Kabelac
31b1d06ddd
tests: replace skip_if_mirror_recovery_broken
...
Use mirror_recovery_works instead with easier to follow logic.
2014-03-17 16:33:29 +01:00
Zdenek Kabelac
19fd6040c2
tests: quotes for LVM_TEST vars
2014-03-17 16:32:29 +01:00
Zdenek Kabelac
1a0fea104b
tests: put test envvar into braces
...
Ensure we not fail on space.
2014-03-17 14:31:45 +01:00
Zdenek Kabelac
7d3fa6fc32
tests: skip more Fedora kernels for raid456
2014-03-17 14:31:44 +01:00
Zdenek Kabelac
58e812a13f
tests: use DMEVENTD_PIDFILE
...
Test for compiled-in pidfile location
(so we are not based on assumption /var/run or /run link exists)
2014-03-14 11:16:24 +01:00
Zdenek Kabelac
900cb6717b
tests: quick update of location of pid file
...
Until better fix is put in - replace with /run.
2014-03-14 10:40:48 +01:00
Zdenek Kabelac
8b14ebb2f1
tests: another kernel with unusable kmem_check
2014-03-12 16:17:36 +01:00
Zdenek Kabelac
5dc9402774
tests: dmeventd valgrind testing
2014-03-10 12:24:11 +01:00
Zdenek Kabelac
c7262d5b38
tests: aux adds kill_sleep_kill_
...
Move common code to subfunction
2014-03-10 12:24:11 +01:00
Zdenek Kabelac
1c18fc42ec
tests: drop unused make_ioerror
2014-03-10 12:24:11 +01:00
Zdenek Kabelac
6cc75d1497
tests: workaround bash bug
...
Seems new bash4.3 is somewhat buggy
https://bugzilla.redhat.com/show_bug.cgi?id=1074202
Put in cheap workaround for now.
2014-03-10 12:24:10 +01:00
Zdenek Kabelac
4eed2c8142
tests: skip valgrind testing when assigned to 0
...
When LVM_VALGRIND_CLVMD/LVMETAD is set to 0 skip testing.
(Proviosly any value caused to run valgrind testing,
so now '0' skips testing))
2014-03-10 12:24:10 +01:00
Zdenek Kabelac
41e1b12e03
tests: skip another kernel
...
This kernel has still buggy kmem_cache debugging so skip it for raid456.
2014-03-10 12:24:10 +01:00
Peter Rajnoha
cfc9e178bf
tests: fix name-mangling test and remove udev transaction in dmsetup wrapper
2014-03-06 14:46:50 +01:00