summaryrefslogtreecommitdiff
path: root/test/Makefile.in
Commit message (Collapse)AuthorAgeFilesLines
* makefiles: forgotten to install some test configZdenek Kabelac2023-04-221-1/+1
| | | | rpm testing missed config files.
* tests: lvmdbus testing use --debug optinally nowZdenek Kabelac2023-02-171-1/+2
| | | | | To shorten down logging output of lvmdbus - use for now lvmdbus with --debug option only when LVM_DEBUG_LVMDBUS=1 is set.
* tests: rework makefileZdenek Kabelac2022-09-071-118/+95
| | | | | | Improve dependency tracking Use 'foreach()' with better tracing support Link whole 'shell' dir instead of linking individual *.sh files
* tests: add lvm_vdo_wrapperZdenek Kabelac2022-06-071-0/+1
| | | | | | | | | | | | Introduce a replacement vdo manager wrapper for testing. When using test suite on a system without vdo manager (which has got deprecated) - we still need its functionality to prepare 'vdo volume' for testing lvm_import_vdo. Wrapper currently need 2 binaries from older 'vdo 6.2' package - to be named: oldvdoformat - format VDO metadata with older format oldvdoprepareforlvm - shift vdo metadata by 1MiB
* vdo: Rename vdoimport to lvm_import_vdo.Marian Csontos2021-08-261-1/+1
|
* vdo: add vdoimport supportZdenek Kabelac2021-07-091-0/+1
| | | | | | | | | | | | | Add tool 'vdoimport' to support easy conversion of an existing VDO manager managed VDO volumes into lvm2 managed VDO LV. When physical converted volume is already a logical volume, conversion happens with the VG itself, just with validation for extent_size, so the virtually sized logical VDO volume size can be expressed in extents. Example of basic simple usage: vdoimport --name vg/vdolv /dev/mapper/vdophysicalvolume
* tests: Fix building for IDM programLeo Yan2021-06-161-1/+1
| | | | | | | | | | | | | | | | | | When execute IDM testing, the command reports error: /usr/bin/install: cannot stat ‘lib/idm_inject_failure’: No such file or directory Since there have a stale program in my local environment, thus Makefile always uses the stale program and doesn't report any issue. In the brand new repository, it doesn't contain an idm_inject_failure program, and Makefile doesn't build it without specifying the dependency, thus the test command complaints the file 'idm_inject_failure' is not found. This patch adds the dependency 'lib/idm_inject_failure' for IDM testing, so it can firstly build the injection program and dismiss the error. Signed-off-by: Leo Yan <leo.yan@linaro.org>
* tests: multi-hosts: Add VG testingLeo Yan2021-06-031-0/+1
| | | | | | | | | | | | | | | | | | | | | This patch is to add VG testing on multi hosts. There have two scripts, the script multi_hosts_vg_hosta.sh is used to create VGs on one host, and the second script multi_hosts_vg_hostb.sh afterwards will acquire global lock and VG lock, and remove VGs. The testing flow verifies the locking operations between two hosts with lvmlockd and the backend locking manager. On the host A: make check_lvmlockd_idm \ LVM_TEST_BACKING_DEVICE=/dev/sdj3,/dev/sdk3,/dev/sdl3 \ LVM_TEST_MULTI_HOST=1 T=multi_hosts_vg_hosta.sh On the host B: make check_lvmlockd_idm \ LVM_TEST_BACKING_DEVICE=/dev/sdj3,/dev/sdk3,/dev/sdl3 \ LVM_TEST_MULTI_HOST=1 T=multi_hosts_vg_hostb.sh Signed-off-by: Leo Yan <leo.yan@linaro.org>
* tests: Support idm failure injectionLeo Yan2021-06-031-0/+5
| | | | | | | | | | | | | | | When the drive failure occurs, the IDM lock manager and lvmlockd should handle this case properly. E.g. when the IDM lock manager detects the lease renewal failure caused by I/O errors, it should invoke the kill path which is predefined by lvmlockd, so that the kill path program (like lvmlockctl) can send requests to lvmlockd to stop and drop lock for the relevant VG/LVs. To verify the failure handling flow, this patch introduces an idm failure injection program, it can input the "percentage" for drive failures so that can emulate different failure cases. Signed-off-by: Leo Yan <leo.yan@linaro.org>
* tests: Enable the testing for IDM locking schemeLeo Yan2021-06-031-0/+9
| | | | | | | | | This patch is to introduce testing option LVM_TEST_LOCK_TYPE_IDM, with specifying this option, the Seagate IDM lock manager will be launched as backend for testing. Also add the prepare and remove shell scripts for IDM. Signed-off-by: Leo Yan <leo.yan@linaro.org>
* makefiles: static linking enhancementsZdenek Kabelac2021-04-121-1/+1
|
* tests: check_devicesfileDavid Teigland2021-03-081-0/+7
| | | | | | | make check_devicesfile T=... (A number of tests should probably get a new SKIP_WITH_DEVICES_FILE.)
* tests: allow tests to use real devicesDavid Teigland2021-02-231-0/+1
| | | | | | | | user creates a file listing real devices they want lvm tests to use, and sets LVM_TEST_DEVICE_LIST. lvm tests can use these with prepare_real_devs and get_real_devs. Other aux functions do not work with these devs.
* makefiles: document supported var in make helpZdenek Kabelac2020-09-251-0/+1
|
* tests: enusure lib is initilizedZdenek Kabelac2019-11-141-1/+1
|
* test: Restore testing of D-Bus APIMarian Csontos2019-05-311-4/+5
|
* makefiles: ensure test dir can run unit-testZdenek Kabelac2018-12-011-2/+2
|
* makefiles: updates for less verbosityZdenek Kabelac2018-11-291-59/+79
|
* tests: still more libs needsZdenek Kabelac2018-11-171-1/+1
|
* tests: makefile fixesZdenek Kabelac2018-11-171-2/+2
| | | | New tests needs more options and libs.
* tests: secure data eraseZdenek Kabelac2018-11-171-3/+12
|
* tests: keep results configurableZdenek Kabelac2018-11-081-5/+5
|
* tests: drop lvmetad bitsDavid Teigland2018-09-101-3/+0
|
* test: Remove excessive comma resulting in empty flavourMarian Csontos2018-07-261-2/+2
|
* tests: remove lvmetad testsDavid Teigland2018-07-111-59/+8
|
* tests: fix rules for mke2fs.conf installZdenek Kabelac2018-06-221-8/+9
|
* tests: more tolerable makefileZdenek Kabelac2018-06-151-3/+6
|
* tests: drop some clvmd refsZdenek Kabelac2018-06-141-6/+5
| | | | | Do not try to link clvmd binary. Ensure lib is created new and does not refer old binaries.
* build: better srcdir builddir supportZdenek Kabelac2018-06-141-1/+1
| | | | | | With the move to top-level makefile - there are some issues with subdir recursive makefile. Make the building more tolerant for now until fully resolved.
* Remove python bindings for liblvm2appDavid Teigland2018-06-081-7/+4
|
* tests: drop unit subdirZdenek Kabelac2018-06-081-1/+2
| | | | | Until we resolve top-level making, drop inclusion of subdir Makefile written for top-level usage so at least integrational tests are running.
* tests: separate lvmlockd tests with or without lvmetadDavid Teigland2018-05-301-0/+9
|
* build: set clean vars earlierZdenek Kabelac2018-05-181-11/+12
| | | | For better cleaning of test dirs.
* build: install unit-testZdenek Kabelac2018-05-121-1/+3
|
* build: fix build rules for srcdirZdenek Kabelac2018-05-121-3/+7
| | | | | | | | | | | It's very hard to use some 'non-recurive' Makefiles with rest of system running 'recursively'. So ATM drop inclusion of subdir makefile and add support for 2 new top-level targets: unit-test (builds test/unit dir) run-unit-test (build & run test/unit/unit-test run)
* tests: try running tests over ramdiskZdenek Kabelac2018-05-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | Currently usage of loop device over backend file in ramdisk (tmpfs) is actually causing unnecassary memory consution, since just reading such loop device is causing RAM provisioning. This patch add another possible way how to use ramdisk directly through 'brd' device when possible (and allowed). This however has it's limitation as well - brd does not support TRIM, so the only way how to erase is to remove brd module ?? Alse there is 4K sector size limitation imposed by ramdisk. Anyway - for some mirror test that were using large amount of disk space (tens of MB) this brings noticable speed boost. (But could be worth to solve the slowness of loop in kernel?) To prevent using 'brd' for testing set LVM_TEST_PREFER_BRD=0 like this: make check_local LVM_TEST_PREFER_BRD=0
* build: remove --with-{snapshots,mirrors,raid,thin,cache} options from ↵Joe Thornber2018-04-301-3/+0
| | | | | | ./configure It now behaves as if the were all set as 'internal'
* [build] include test/unit/Makefile rather than recursive buildJoe Thornber2018-04-201-1/+1
| | | | FIXME: unit tests are not currently run as part of make check.
* Makefile: help shows hint about LVM_LOG_FILE_MAX_LINESZdenek Kabelac2017-10-261-2/+3
|
* tests: update makefilesZdenek Kabelac2017-08-011-2/+2
|
* tests: export many shell vars with 1 commandZdenek Kabelac2017-07-101-16/+20
|
* tests: fix typo in makefileZdenek Kabelac2017-03-301-2/+2
| | | | Use properly $(SORT)
* makefiles: use configure varsZdenek Kabelac2017-02-141-2/+2
| | | | Use binaries found in configure.
* tests: ensure there is dbus config fileZdenek Kabelac2016-11-261-4/+3
| | | | | Copy lvmdbusd.profile to lib as installed place. Use TESTOLDPWD and avoid add new 'same' variable test_data_dir.
* tests: update make targetsZdenek Kabelac2016-11-111-0/+18
| | | | | | | | | | | | | | Add new targets: make check_lvmpolld make check_cluster_lvmpolld make check_lvmetad_lvmpolld make check_all_lvmpolld So check_lvmetad runs only base lvmetad test - to much logic of remaining targets. Previous behavior is available via check_all_lvmpolld.
* tests: add mke2fs.confZdenek Kabelac2016-07-041-0/+1
| | | | | | | | Add config for mkfs to get more predicatable results when using mkfs across variety of distributions. In future maybe use this per all tests as default. For now user has to specify in a test MKE2FS_CONFIG envvar to use it.
* vgimportclone: add native commandDavid Teigland2016-06-221-2/+1
| | | | | This is cleaner and more efficient than the script. The args and usage are unchanged.
* tests: add dmstats to CLEAN_TARGETS for make cleanPeter Rajnoha2016-05-311-1/+1
|
* tests: document make parametr for tracing aux scriptsZdenek Kabelac2016-04-211-0/+1
|
* test: Add missing directoryMarian Csontos2016-03-291-1/+1
| | | | Fix commit bb93a28bc1