Zdenek Kabelac
25a66737e3
tests: use 4K extent size
...
To work with for 4k backend devices.
2018-05-21 11:58:10 +02:00
Zdenek Kabelac
b2574c2f3a
python: use // for integer division
2018-05-18 16:25:44 +02:00
Zdenek Kabelac
3bbdde808a
tests: pick either python2 or python3 .so
...
Use matching PYTHON library implementation.
2018-05-18 16:25:44 +02:00
Zdenek Kabelac
fbf64fe730
tests; make sure python_lvm_unit.py is executable
2018-05-18 16:25:44 +02:00
Zdenek Kabelac
99cd7108d3
tests: better check for python libpath
...
Find also python3 lvm.so name.
And ATM just run a single test, otherwise we get too many cores.
2018-05-15 22:02:41 +02:00
Zdenek Kabelac
be154e30e8
tests: move into generated file
...
Since python path is evaluated and we cannot use anymore /usr/bin/env
switch to generated file.
2018-05-15 22:02:41 +02:00
Marian Csontos
512b2adc77
test: D-Bus test_nesting requires filter
2017-11-09 11:57:59 +01:00
Marian Csontos
cd3b5e60a8
test: Rename test nothing methods
...
These two methods might be useful for debugging, but are not testing
anything.
2017-11-09 11:31:54 +01:00
Zdenek Kabelac
2172115379
tests: have some space for 2nd mda
...
pvcreate with 2MDAs needs some extra space.
2017-11-08 00:02:54 +01:00
Zdenek Kabelac
19bd65207e
tests: update makefiles
2017-08-01 18:53:25 +02:00
Zdenek Kabelac
a60fd57236
tests: update makefile
2017-08-01 11:53:32 +02:00
Zdenek Kabelac
c4b6df94b4
tests: properly check variables were defined
...
When test suite is installed some vars are not defined.
2017-07-12 13:51:16 +02:00
Zdenek Kabelac
1daa1cc3a9
tests: use properly quoted device list
2017-07-12 13:50:25 +02:00
Zdenek Kabelac
0f2dccc601
tests: bounds still more vars
2017-07-12 01:37:29 +02:00
Zdenek Kabelac
c613fa48ff
tests: api updates
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
52f4042f1a
cmdline: fix missing NULL at end of array of args
...
lvm_run needs to place NULL as the last element into argv[].
Otherwise we get:
Conditional jump or move depends on uninitialised value(s)
_command_required_pos_matches (lvmcmdline.c:1443)
_find_command (lvmcmdline.c:1610)
lvm_run_command (lvmcmdline.c:2770)
lvm2_run (lvmcmdlib.c:91)
2017-06-26 20:07:21 +02:00
Zdenek Kabelac
bcf59a1b18
tests: test should clean devices it has created
...
To be able to detect lvm2 command is not leaking some
'unexpected' device - remove all devices before
test exits by its own command so test teardown
now can check what was 'left' unexpectedly.
2016-12-11 23:24:19 +01:00
Zdenek Kabelac
b0bda09005
tests: ensure there is dbus config file
...
Copy lvmdbusd.profile to lib as installed place.
Use TESTOLDPWD and avoid add new 'same' variable test_data_dir.
2016-11-26 00:22:38 +01:00
Tony Asleson
2830f72288
lvmdbusd: Disable lvm abort on too much log output
...
The commit:
https://git.fedorahosted.org/cgit/lvm2.git/commit/?id=34c55d98eefd88f85476c0f62f0649c706bde6f0
introduced an abort if lvm logs too much. In the case of utilizing
lvm shell this is a pretty normal occurance, so we will disable
when we use lvm shell.
2016-10-11 13:16:57 -05:00
Tony Asleson
20e74313cd
lvmdbustest.py: Add profile and path for lvm binary
2016-10-10 16:33:42 -05:00
Zdenek Kabelac
6336b5dedf
tests: reduce amount of pvcreates
...
Reduce number of evualted pvcreate commands.
Since 0 is default value used to fill missing params,
and 0 is also 1st. value in array, it's being tested.
Drop unused data_alignment_offset.
2016-07-11 15:29:28 +02:00
Marian Csontos
82d92009ae
test: Move bus configuration to prepare function
2016-03-23 12:27:34 +01:00
Marian Csontos
bb93a28bc1
test: Fix lvmdbusd tests to work with installed testsuite
2016-03-23 11:59:04 +01:00
Marian Csontos
ca7bac53cf
test: Turn on dbus test
...
(cherry picked from commit f1ea96c6c1dc6414169bda1a18cf14cd9ebb1493)
2016-03-21 15:22:58 +01:00
Marian Csontos
18291fd016
test: Remove work-in-progress code from dbustest
...
(cherry picked from commit 3189d4d50492f5b78cf3920a7f499fd1020983c6)
2016-03-09 14:04:28 +01:00
Ondrej Kozina
55d1105fc9
test: skip unrelated tests while testing lvmpolld
2016-03-09 12:59: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
f94fe2c91f
dbustest.sh: Get dbus test to work on buildbot
...
- stdout/stderr for test output
- debug.log* for daemon output
- use install instead of cp for DBus config
- use system bus
- DBus reloads on new file. Better having it created with correct
permissions.
Notes:
- Squashed commits from mcsontos development branch
- Still disabled at this time
Signed-off-by: Tony Asleson <tasleson@redhat.com>
2016-03-04 10:11:03 -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
Tony Asleson
05eb87ca2d
lvmdbusd: Initial unit test driver script
...
It's disabled until we can fix it up.
Signed-off-by: Tony Asleson <tasleson@redhat.com>
2016-02-22 16:07:54 -06:00
Marian Csontos
367fb85e44
spec: Fix 04ab1fa572
: Remove left-overs
2016-02-22 17:50:35 +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
Marian Csontos
83d3cc76f3
test: Run pytest with installed libs
2015-11-02 12:52:30 +01:00
Zdenek Kabelac
4159680a0e
tests: use more SKIP
...
Speed-up check_lvmpolld.
2015-10-27 16:00:09 +01:00
Zdenek Kabelac
ae76e8f0d0
tests: skip when snapshot does not work
...
Some older kernel (i.e. 3.11.10 on fc20) do not work properly.
Skip the test if snapshot does not meet 50%.
2015-06-23 13:25:09 +02:00
Zdenek Kabelac
caaca15854
tests: thin_restore not needed
...
Few more test which could live without thin_restore.
2015-05-18 12:45:42 +02:00
Tony Asleson
6d35c69b06
Python: Improve lv property test coverage
...
Improve the python unit test case to cover all of the properties of a LV and
the properties of a LV segment.
In addition we also add a 'tag' to the lv so that we can retrieve it
using the 'lv_tags' property to ensure that this works as expected.
Signed-off-by: Tony Asleson <tasleson@redhat.com>
2015-05-06 08:51:05 -05:00
Zdenek Kabelac
4f6660db7d
tests: use odirect
...
Fill snaphot with odirect so we know data hits disk
before we test how full the snapshot is.
2015-05-03 00:43:15 +02:00
Zdenek Kabelac
4daede06e5
tests: move kernel_at_least to aux
...
Hide func processing and reuse existing
version_at_least().
2015-05-01 15:07:58 +02:00
bkabrda@redhat.com
5d8b31ffad
python: python 3 compat patch for lvm2
...
As provided by rhbz: 1136366
2015-04-29 15:09:56 +02:00
Zdenek Kabelac
3216a9a819
tests: drop DEBUG log after success
...
At this moment LVM_LOG_FILE_EPOCH with
LVM_EXPECTED_EXIT_STATUS properly deletes debug logs
only for real commands - support for lvm2 API does not yet
exists
2015-04-22 10:55:37 +02:00
Tony Asleson
f29df9acfe
python: Unit test ws fixes
...
pep8 corrections for:
- mixed leading ws (tabs & spaces)
- spacing around arithmetic operators
Signed-off-by: Tony Asleson <tasleson@redhat.com>
2015-04-10 10:52:12 -05:00
Tony Asleson
2b557b595a
python: Make lv addTag/removeTag persistent
...
Added lvm_vg_write in the addTag/removeTag paths to make the
changes persist. Added unit test to ensure functionality.
https://bugzilla.redhat.com/show_bug.cgi?id=1210020
Signed-off-by: Tony Asleson <tasleson@redhat.com>
2015-04-10 10:38:43 -05:00
Zdenek Kabelac
74e6135c4f
tests: use proper LVMTEST prefix for VG name
...
Cleaner needs prefix to do its jobs and clean any left VG from python
test as well.
2014-11-24 14:39:04 +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
70616187b3
tests: pytest update
2014-10-26 18:37:13 +01:00
Peter Rajnoha
cfed0d09e8
report: select: refactor: move percent handling code to libdm for reuse
2014-06-17 16:27:21 +02:00
Peter Rajnoha
6766cdc8a1
tests: some more renames lib/test -> lib/inittest
2014-06-11 11:07:32 +02:00
Zdenek Kabelac
de12310c45
tests: disable python failing test
...
Aborts and needs fixes...
2014-06-05 23:07:23 +02:00
Zdenek Kabelac
eb7ca96b59
tests: adapt test for newline delimit
...
content of DEVICES is now delimited by newlines
2014-06-05 23:05:52 +02:00