Peter Rajnoha
2a19866a74
cleanup: make report type condition consistent with the rest of the code
...
It's just more readable this way (each condition resulting in a certain
report type is always on one line), just like it's used elsewhere in the
code.
2015-02-10 16:05:23 +01:00
David Teigland
455ef6f2f5
toollib: prepare select_match_{pv,vg,lv} hooks
...
These hooks will check currently processed PV/VG/LV with current selection
criteria and the processing continues only if there's a match.
2015-02-10 16:04:41 +01:00
Peter Rajnoha
123a3383a0
libdm: report: add dm_report_object_is_selected
...
The new dm_report_object_is_selected fn makes it possible to opt whether the
object reported should be displayed on output or not. Also, in addition to
that, it makes it possible to save the result of selection (either 0 or 1).
So dm_report_object_is_selected is simply more general form of object
reporting fn - combinations now allow for:
dm_report_object_is_selected(rh, object, 1, NULL):
This is exactly the original dm_report_object fn and it's fully equal
to it.
dm_report_object_is_selected(rh, object, 0, selected):
Do not display the result on output, but save info whether the object
is selected or not in 'selected' variable.
dm_report_object_is_selected(rh, object, 1, selected):
Display the result on output (if it passes selection criteria) and save
whether the object is selected or not in 'selected' variable.
dm_report_object(rh, object, 0, NULL):
This combination is not allowed - it will end up with internal error.
We're either interested in selection status or we want to display the
result on output or both, but never nothing of the two.
2015-02-10 16:04:38 +01:00
Petr Rockai
2ee3bcb877
test: Fix a typo in shell/pvmove-restart.sh.
2015-02-10 12:42:05 +01:00
Peter Rajnoha
b6f558adcc
lvm: recognize LVM_COMMAND_PROFILE env var for default command profile to use in LVM commands
...
Once LVM_COMMAND_PROFILE environment variable is specified, the profile
referenced is used just like it was specified using "<lvm command> --commandprofile".
If both --commandprofile cmd line option and LVM_COMMAND_PROFILE env
var is used, the --commandprofile cmd line option gets preference.
2015-02-09 14:16:30 +01:00
Peter Rajnoha
4e4ea46cfe
reporter: properly check for _do_info_and_status return value and free the mempool if created within the fn
2015-02-09 11:48:21 +01:00
Petr Rockai
4065741a67
configure: Fix a warning about test/Makefile.in.
2015-02-05 16:30:50 +01:00
Petr Rockai
43d6b44a9f
NIX: Request {fedora,centos}-release packages explicitly.
2015-02-05 14:21:31 +01:00
Petr Rockai
b9a017d94c
NIX: Adjust install_rpms (kernel rpm is now required).
2015-02-05 13:51:39 +01:00
Petr Rockai
81b34dce61
NIX: We need to install lcov for ./configure now as well.
2015-02-05 13:51:38 +01:00
Petr Rockai
5cd6cce5a4
NIX: Move corosynclib-devel & valgrind-devel out of common.
2015-02-05 13:51:37 +01:00
Petr Rockai
57c39ecbcd
NIX: Allow adding/overriding test configurations.
2015-02-05 13:51:07 +01:00
Petr Rockai
7c9d690f9e
NIX: Set ulimit -c to unlimited, to get backtraces in logs.
2015-02-05 13:51:07 +01:00
Petr Rockai
6ba05212f7
NIX: Add a CentOS 7.0 64b build.
2015-02-05 13:51:06 +01:00
Petr Rockai
4686b8cea5
test: Fix a segfault in the test runner.
2015-02-05 13:51:06 +01:00
Petr Rockai
45e2aee8f9
test: It is not an error for a test daemon to exit before teardown.
2015-02-05 13:51:06 +01:00
Petr Rockai
78ba413ed1
test: Remove spurious set -x in lvm-wrapper.
2015-02-05 13:51:06 +01:00
Petr Rockai
d8983d4bd4
test: Properly detect warnings from testcases.
2015-02-05 13:51:06 +01:00
Petr Rockai
c96e42006d
test: Only force an IO sync when the testcase has finished.
2015-02-05 13:51:06 +01:00
Petr Rockai
72ee3f920b
test: Allow a longer timeout for lvextend-snapshot-dmeventd.
2015-02-05 13:51:06 +01:00
Petr Rockai
839ea48aa9
test: Make dmsetup remove more robust in pvmove-restart.
2015-02-05 13:51:06 +01:00
Petr Rockai
210a66fbf8
test: Make killing local (test) daemons more robust.
2015-02-05 13:51:06 +01:00
Petr Rockai
17575403d4
test: Disable lvmetad debug log on another bunch of tests.
2015-02-05 13:51:06 +01:00
Petr Rockai
1f727f3f3d
test: Call $VALGRIND directly in lvm-wrapper.
2015-02-05 13:51:06 +01:00
Petr Rockai
3af008d405
NIX: Add valgrind-devel to the build environment.
2015-02-05 13:51:04 +01:00
Petr Rockai
2a8dc7fb53
memlock: Do not check memory balance if RUNNING_ON_VALGRIND.
2015-02-05 13:50:34 +01:00
Petr Rockai
d571eab3b2
configure: Look for valgrind.h independently of VALGRIND_POOLS.
2015-02-05 13:50:34 +01:00
Petr Rockai
5d833fd458
test: Add support for running LVM commands in tests through strace.
2015-02-05 13:50:34 +01:00
Petr Rockai
a6d006d9db
test: Make lvm-wrapper available in the installed testsuite, too.
2015-02-05 13:50:33 +01:00
Petr Rockai
41c2e07a8d
NIX: Install valgrind, gdb and strace in the test environment.
2015-02-05 13:50:23 +01:00
Petr Rockai
e4d5e22c91
NIX: Make timeout and test envvars configurable via --arg.
2015-02-05 13:47:21 +01:00
Petr Rockai
c2b7642d4d
test: Fix prepare_scsi_debug_dev.
2015-02-05 13:47:21 +01:00
Petr Rockai
580370bea3
test: Avoid passing -c to flock.
2015-02-05 13:47:21 +01:00
Petr Rockai
7a0aa25c28
test: Re-try with loopback if a backing device is too small.
2015-02-05 13:47:21 +01:00
Petr Rockai
f3cc6576ee
NIX: Detect that the VM booted up more directly.
2015-02-05 13:47:21 +01:00
Petr Rockai
734a183c56
NIX: Avoid a spurious failure when all tests pass.
2015-02-05 13:47:21 +01:00
Petr Rockai
bd0806e1f5
test: Fix failures due to undefined abs_top_builddir.
2015-02-05 13:47:21 +01:00
Petr Rockai
c6f9c46223
test: Avoid running 'dmsetup remove' with no devices.
2015-02-05 13:47:21 +01:00
Petr Rockai
ad0267b2ad
test: Fix 100%FREE RAID tests since test device sizes changed slightly.
2015-02-05 13:47:20 +01:00
Petr Rockai
c82c69bb56
test: Update brick-shelltest (configurable timeout, better banner, exit code).
2015-02-05 13:47:20 +01:00
Petr Rockai
b6884f8a87
NIX: Mark builds with failed tests as such.
2015-02-05 13:47:20 +01:00
Petr Rockai
8b80e949ea
test: Do not rely on dev/mapper/* nodes in pvmove-restart.sh.
2015-02-05 13:47:20 +01:00
Petr Rockai
d04c7ca0b6
test: Fix implementation of check targets with new flavour system.
2015-02-05 13:47:20 +01:00
Petr Rockai
68f7b422c1
NIX: Update path to /xchg (was /tmp/xchg with older nixpkgs).
2015-02-05 13:47:20 +01:00
Petr Rockai
f1d273a0b0
NIX: Do not fail aggregation when a sub-job fails to produce output.
2015-02-05 13:47:20 +01:00
Petr Rockai
93d8455faa
NIX: Run each test flavour as a separate derivation.
2015-02-05 13:47:20 +01:00
Petr Rockai
003bf24723
NIX: Add --kmsg to lvm2-testsuite invocations.
2015-02-05 13:47:20 +01:00
Petr Rockai
7ed8fc8f7d
test: Update brick-shelltest.h.
2015-02-05 13:47:20 +01:00
Petr Rockai
f9df76f8b3
NIX: Keep the udev log out of tmpfs.
2015-02-05 13:47:20 +01:00
Petr Rockai
e2dbf44116
NIX: Some kernels need ide/ata modules (i.e. no builtin ata).
2015-02-05 13:47:20 +01:00