Zdenek Kabelac
69c2f56005
tests: keep using [] for hidden volumes
...
Figure out which test needs to see hidden volumes without [].
But normally use [] for debug printing in tests.
It's confusing otherwise.
2016-04-22 01:14:56 +02:00
Zdenek Kabelac
11dd362454
tests: GLIBC decided to obsolete readdir_r
...
Keep the code compilatible without warnings on newer glibc.
2016-04-21 17:48:19 +02:00
Zdenek Kabelac
545b58542c
tests: still show systems stas when command has not produced debug.log file
...
When no debug.log* file is present whole stacktracking was skipped.
Add extra test the file exists to catch this case.
2016-04-21 00:34:01 +02:00
David Teigland
662090e358
tests: fix check_lvmlockd_test
2016-04-15 12:35:20 -05:00
Marian Csontos
e6768997e1
test: Fix testing of installed lvmdbusd
...
If lvmdbusd is missing expression triggers ERR trap instead of skipping
the test.
2016-04-08 16:26:25 +02:00
Zdenek Kabelac
307ab2c179
tests: do not break teardown on failing losetup
...
Ignore failing 'losetup -d' - i.e. device may have disappeared...
2016-04-06 11:54:37 +02:00
Marian Csontos
82d92009ae
test: Move bus configuration to prepare function
2016-03-23 12:27:34 +01:00
Marian Csontos
1b0775916b
test: Remove pidfile after killing the process
...
Though unlikely keeping files in place may result in random process
killed.
2016-03-23 12:25:18 +01:00
Marian Csontos
bb93a28bc1
test: Fix lvmdbusd tests to work with installed testsuite
2016-03-23 11:59:04 +01:00
Marian Csontos
c1d376b1ab
test: Fix checks to skip lvmdbusd tests
...
The executable is always present in the tree, need to check the
runtime dependencies.
2016-03-23 11:58:48 +01:00
Zdenek Kabelac
0d5b9deff2
tests: use own PID path for lvmetad checking
...
Do not try to check PID of running lvmetad and use own path.
2016-03-14 23:45:45 +01:00
Marian Csontos
e655ccb418
test: Add prepare_lvmdbusd
...
- Check for running lvmdbusd at start
- Add teardown for lvmdbusd
2016-03-09 10:58:21 +01:00
Marian Csontos
cb968ee875
test: Comment out incorrect lockd setup
2016-03-09 10:58:21 +01:00
Marian Csontos
2cf13b701a
test: Update kernels to skip thin-flags with
...
See ed5e5c38b5
2016-03-09 10:09:29 +01:00
David Teigland
ad9cbe2714
tests: direct control of lvm1 usage in tests
...
Using lvm1 metadata with lvmetad is not generally allowed,
but nothing has prevented creating new lvm1 metadata with
lvmetad (missing error checking in pvcreate/vgcreate.)
Various tests are using lvm1 with lvmetad and happen to
work because of the missing error checks.
This commit fixes the tests so they won't fail when the
lvm1/lvmetad error checking is fixed. A new variable
LVM_TEST_LVM1 is defined and is used in the scripts to
decide if lvm1 metadata should be tested. LVM_TEST_LVM1
is not defined when lvmetad is being tested, and the
combination of LVM_TEST_LVM1 and LVM_TEST_LVMETAD can
be used to verify the desired lvmetad+lvm1 behavior.
2016-03-03 14:43:19 -06:00
Peter Rajnoha
45c82260db
tests: add "get lvh_field" for "lvs -H"
2016-03-03 13:50:59 +01:00
Bryn M. Reeves
3dae416229
tests: add driver_at_least() to aux.sh
...
Add a function to test whether the running device-mapper driver
version is at least equal to some given version.
2016-02-25 16:40:58 +00:00
David Teigland
0236a34224
tests: updates for check_lvmlockd
...
Move the lvmlockd-related setup functions into aux.
For check_lvmlockd_test, start a new instance of
lvmlockd --test for each shell test.
2016-02-23 14:00:28 -06:00
David Teigland
f54253d396
tests: add SKIP_WITH_LVMLOCKD
...
to all tests that don't already used vgcreate $SHARED
2016-02-23 09:28:48 -06:00
David Teigland
161ae36363
test: add make check_lvmlockd_test
...
Which runs lvmlockd in --test mode, without
any lock manager.
Also make some adjustments to the check_lvmlockd
variations using the lock managds.
2016-02-22 09:36:35 -06:00
Zdenek Kabelac
ed5e5c38b5
tests: skip thin-flags test on 32bit el6 kernel
...
Until kernel is fixed, stop running test always hitting OOPS there.
2016-02-22 14:59:28 +01:00
Zdenek Kabelac
fcbef05aae
doc: change fsf address
...
Hmm rpmlint suggest fsf is using a different address these days,
so lets keep it up-to-date
2016-01-21 12:11:37 +01:00
Peter Rajnoha
04d1a8a5e4
cleanup: rename 'invisible devices' to 'hidden devices'
2016-01-13 16:43:25 +01:00
Peter Rajnoha
c66a83fdc3
tests: update tests to deal with invisible devices consistently
2016-01-13 13:55:24 +01:00
Zdenek Kabelac
8d86c5db03
tests: improve teardown
...
Do not try to execute vgremove, when test has left suspended devices.
2015-11-24 11:29:28 +01:00
Marian Csontos
6f002c29a5
tests: stacktrace on skip if message is empty
2015-11-19 12:18:33 +01:00
Marian Csontos
2a23550cf3
tests: add missing --skip option and S env.variable
2015-11-19 12:00:59 +01:00
Zdenek Kabelac
ab4773671b
tests: do not skip test when delay is missing
...
Rather then skipping whole test - just do not use it.
Failing tests that have required delay need to deal with reality
and shell either check for HAVE_DM_DELAY and skip portion
of test or using should when needed.
2015-11-09 12:21:17 +01:00
Zdenek Kabelac
6e1e0e8813
tests: using matching type
...
Compare time_t.
2015-10-27 16:00:10 +01:00
Zdenek Kabelac
76cff10a73
tests: avoid reading utils when skipping
...
Save even more CPU/time and avoid reading utils, when skipping test.
2015-10-27 16:00:09 +01:00
Zdenek Kabelac
a2dd1f6e19
tests: support skip flags
2015-10-26 23:57:47 +01:00
Zdenek Kabelac
c301cc5d38
tests: extend timer for 4 hours
...
Extend max time for test suite to 4 hours.
Also replace some 'non-ascii' chars from source files
and keep them plain ascii.
2015-10-26 23:57:47 +01:00
Zdenek Kabelac
2786cd27da
tests: enable raid test on 4.3
...
With kernel -rc6 it's passing our raid tests again - so enable
it in tests.
Note: related only to Fedora rawhide kernels...
2015-10-22 22:46:10 +02:00
Zdenek Kabelac
c4cc5eabfe
tests: start logging dmeventd output
...
Log dmeventd output from test - keep output logging in test
and avoid sending messages to syslog.
2015-10-13 16:02:21 +02:00
Zdenek Kabelac
8cc21354c2
tests: better regex check
...
Enhance check for matching prefix.
2015-10-13 16:02:20 +02:00
Zdenek Kabelac
2cb1f6eafe
tests: show status in in_sync
...
Make visible actual status line when returing 'raid' is in sync.
Useful to prove when kernel is wrong.
2015-10-13 16:02:20 +02:00
Zdenek Kabelac
277dd0aa7a
tests: check devices with prefix aren't in use
...
Avoid running tests, when prefix already exist in the system.
As prefix just uses PID number, we may hit a case for long
running tests, where devices from some previous runs were not
properly cleared away - detect this and fail early.
(Such machine should be inspected and fixed).
2015-10-06 15:23:55 +02:00
Marian Csontos
efcb3bbc8d
test: Fix timeout handling
...
Timeouts were considered as warnings only. Signalling failure is
preferred.
2015-10-01 13:19:29 +02:00
Zdenek Kabelac
7e63364529
tests: check for block device
...
Need to detect if block device exist.
2015-09-22 00:08:44 +02:00
Zdenek Kabelac
9b8c876293
tests: remove only existing loops
...
If loop device meanwhile dissapered, skip 'losetup -d' call.
2015-09-10 17:28:47 +02:00
Zdenek Kabelac
e94ab01940
tests: fix check lv_not_exist
...
Use 'not' to set proper 'expected return status'
so we do not 'leak' debug logs printed for failing case.
2015-09-10 17:28:47 +02:00
Zdenek Kabelac
596ec5c74b
tests: skip raid testing on 4.[1,2] fc24 kernels
...
Hopefull 4.3 will be fixed and test will be updated to let
raid test running again.
Meanwhile using md-raid may effectively kill kernel,
so leave at least other tests running.
2015-09-08 12:12:38 +02:00
David Teigland
e53758c5f6
tests: add lib function to test hidden LVs with lvs -a
2015-08-21 15:09:38 -05:00
Marian Csontos
b785a50da4
test: Help, default and relative paths in runner
...
Add help message.
Handle relative paths first.
Use `.` for OUTDIR instead of `/` if empty.
2015-07-17 20:36:50 +02:00
Marian Csontos
2bc0525e93
test: Fix hardcoded /usr/share in testsuite
2015-07-17 20:36:50 +02:00
Marian Csontos
47ac6a1a2e
test: Fix syntax error in prepare_devs
2015-07-10 16:15:15 +02:00
David Teigland
fe70b03de2
Add lvmlockd
2015-07-02 15:42:26 -05:00
Zdenek Kabelac
9c86d33e68
cleanup: avoid printing gcc warning
...
Casting to (void) with gcc doesn't remove unused_result warning.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509
2015-06-23 11:06:02 +02:00
Zdenek Kabelac
778b66a719
tests: check for idle only for raid type
2015-05-27 11:59:10 +02:00
Zdenek Kabelac
d3abc25e76
tests: check for clmvd socket
...
A bit hacky since it expects PID_DIR == DEFAULT_RUN_DIR for now,
just to check whether it fixes startup clvmd sync problem.
2015-05-27 11:10:43 +02:00