summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Change pvscan --lvmetad to pvscan --cache.Alasdair Kergon2012-03-021-1/+1
|
* Wait for mirror in syncZdenek Kabelac2012-03-021-3/+8
| | | | 1s could be too short
* Add a regression test for the PSize bug in pvs/lvmetad.Petr Rockai2012-03-011-0/+20
|
* Make the calls to pvscan --lvmetad in the testsuite slightly more civilised.Petr Rockai2012-02-234-7/+13
|
* Unit testing for some string libdm functionsZdenek Kabelac2012-02-233-1/+86
| | | | TODO: more functions need to be unit tested.
* Add a vgscan to lvcreate-repair.sh. The old test applied device filter hacks toPetr Rockai2012-02-231-0/+1
| | | | | | | make devices invisible to lvm, but the behaviour of those is slightly different than of actual missing devices. Running vgscan after re-enabling the device triggers a metadata repair which is not done by vgremove -ff. This is not a regression, merely an odd behaviour that has been around even before lvmetad.
* Kick out a debugging call to valgrind in lvmcache-exercise.sh.Petr Rockai2012-02-231-1/+0
|
* The lvmetad client-side integration. Only active when use_lvmetad = 1 is set inPetr Rockai2012-02-238-32/+51
| | | | lvm.conf *and* lvmetad is running.
* Run tests with lvmetad if we have it.Petr Rockai2012-02-153-7/+15
|
* Deal with slower test processingZdenek Kabelac2012-02-151-1/+2
| | | | If the merge was faster then query - deal with it and pass the test.
* In the test harness, do the back-substitution (@TESTDIR@, @PREFIX@) also on thePetr Rockai2012-02-151-2/+10
| | | | live VERBOSE output, not just the post-mortem dumps.
* Add test for memory allocation failuresZdenek Kabelac2012-02-101-2/+2
| | | | | | Replace asserts with test for failing memory allocation. Add at least stack traces. Index counter starts from 1 (0 reserved for error), so replacing fingerprint.
* TARGETS macro has to be defined before inclusion of make.tmplZdenek Kabelac2012-01-271-1/+3
| | | | Use @TESTING@ check in this case.
* Build test run target only for $(TESTING)Zdenek Kabelac2012-01-261-3/+3
| | | | Add libraries properly in LDLIBS.
* If clvmd is not started, die test instead of skipping itZdenek Kabelac2012-01-261-3/+3
|
* Use suspend|resume_origin_only when up-converting RAID LVs, as mirrors do.Jonathan Earl Brassow2012-01-241-3/+23
| | | | | | | | | | | Failure to do so results in "Performing unsafe table load while X device(s) are known to be suspended" errors. While fixing the problem in this way works and is consistent with the way the mirror segment type does it, it would be nice to find a solution that uses the generic suspend/resume calls. Also included in this check-in are additions to the test suite that perform conversions on RAID LVs under a snapshot. These tests are disabled for the time being due to a kernel bug that is yet to be tracked down.
* Minor oldstyle warning updateZdenek Kabelac2012-01-091-1/+1
|
* Thin update test caseZdenek Kabelac2011-12-211-4/+4
| | | | Use thin-pool instead of thin_pool type.
* Add a unit test for config cascade (overlay). Needs expanding though.Petr Rockai2011-12-181-0/+30
|
* Cleanup test compile warningZdenek Kabelac2011-12-134-22/+26
| | | | | Add some declaration and cast to cleanup gcc warnings. Add missing dm_config_destroy() to cleanup pool leak report.
* Use a more canonic regex escaping in the default lvm.conf file for testing.Petr Rockai2011-12-121-1/+1
|
* Add a shell test for config parsing and merging (lvm dumpconfig).Petr Rockai2011-12-111-0/+35
|
* Add a unit test for dm_config_clone_node.Petr Rockai2011-12-111-19/+58
|
* Start a rudimentary unit test for the dm_config_* interface.Petr Rockai2011-12-113-1/+86
|
* Use pkg-config to look for CUnit (needed for systems where it's not on thePetr Rockai2011-12-111-3/+4
| | | | standard include path).
* Nowadays, lvm-version.h is generated from lvm-version.h.in, and lives in thePetr Rockai2011-12-101-1/+1
| | | | build directory, not the source one -> fix test/shell/000-basic.sh.
* Try longer sleepZdenek Kabelac2011-11-231-3/+3
| | | | | Seems like testing machine could be busy - so 10s might not be enough for rechecking status.
* Cleanup files from testingZdenek Kabelac2011-11-233-3/+5
| | | | | | Cleanup generated files from coverage testing. Do not skip standard .o compilation for lib/not and lib/harness. Make a bit longer string in harness to fit new shell/ in.
* Swap condition orderZdenek Kabelac2011-11-231-1/+1
| | | | | Swap condtion so the make line does not return 'false'. Remove cleanup of lvm2api.sh since it is not created anymore.
* Put back devmapper-event linkageZdenek Kabelac2011-11-231-1/+8
| | | | | Older systems are not able to get this library from lvm2api library and need this library to be passed to the linker (i.e. Debian Lenny).
* Cleanup test makefilesZdenek Kabelac2011-11-233-69/+36
| | | | | | Simplify /api makefile and use SUBDIRS target for test dir. Properly cleanup Makefiles with distclean in /test. Use symbolic links for shell scripts for non-srcdir compilation.
* Cleanup gcc warningZdenek Kabelac2011-11-211-1/+1
| | | | | | | bitset_t.c:39: warning: 'last' may be used uninitialized in this function Compiler is not smart enough to see the code path which avoid using unitialized 'last'.
* Add some cflags to ldflagsZdenek Kabelac2011-11-211-1/+1
| | | | | Things like gcov needs the compilation flags for linker as well. TODO: cleanup compilation flags usage
* Fix a bug in dmeventd snapshot monitoring code where the monitoring thresholdPetr Rockai2011-11-211-1/+12
| | | | would grow with subsequent snapshot extensions (RHBZ 754198).
* Fix the last fix (t-XXX -> shell/XXX).Petr Rockai2011-11-214-4/+4
|
* Fix the fallout in shell tests from the t-XXX -> shell/XXX move.Petr Rockai2011-11-214-4/+4
|
* Tidy the shell tests into their own subdir. We now have:Petr Rockai2011-11-2188-2/+3
| | | | | | | - test/lib -- infrastructure and helper code - test/api -- liblvm2app API tests - test/unit -- C-based unit tests - test/shell -- shell-based functional tests
* Fix a syntax error.Petr Rockai2011-11-201-1/+1
|
* Implement a CUnit-based runner for unit tests. Copy and adapt (actual unit)Petr Rockai2011-11-206-0/+1291
| | | | | | | tests from unit-tests/*/*_t.c (now under test/unit). The valgrind/pool test is missing, since it's not really a unit test and probably not too valuable either. Available via "make unit" (and if --enable-testing was passed to configure, also executed by make check).
* Query before removing inactive snapshotsZdenek Kabelac2011-11-181-1/+1
| | | | | | | | | | | Removal of an inactive origin removes also all related snapshots. When we now support 'old' external snapshots with thin volumes, removal of pool will not only drop all thin volumes, but as a consequence also all snapshots - which might be seen a bit unexpected for the user - so add a query to confirm such action. lvremove -f will skip the prompt.
* Thin send create_snap messageZdenek Kabelac2011-11-101-2/+3
| | | | | Start creating snapshots for real. Update test suite to check it happens.
* Thin update testing scriptZdenek Kabelac2011-11-101-70/+109
|
* Add generic function to check for target versionZdenek Kabelac2011-11-101-0/+33
| | | | | | | So the test script may use a simple line like i.e.: aux target_at_least dm-thin-pool 1 0 0 || skip aux target_at_least snapshot-origin 1 6 || skip
* Do not repeat a failed test's output when VERBOSE is in effect.Petr Rockai2011-11-071-3/+5
|
* Fix core on buggy config fileZdenek Kabelac2011-10-281-0/+3
| | | | Since fixed within unreleased version so no WHATS_NEW
* Test with -F flagZdenek Kabelac2011-10-231-1/+4
| | | | | | | | | | | grep need -F to check what we really want to test. Add better test for existing device. Currently this test DOES NOT work with real /dev handle via udev since our tool does not see such device listet through udev. FIXME: We might be able to see it at least through dmsetup table and use for lvm.
* Used device name instead of device pathZdenek Kabelac2011-10-231-1/+2
| | | | | Udev is tricky here - since with udev the node does not exists until it resume happens. So we need to resume devices via its name.
* Do not make link in the real /devZdenek Kabelac2011-10-231-1/+1
| | | | Skip trying to make link when real /dev dir is used for test.
* Expect failure with real /dev dirZdenek Kabelac2011-10-231-5/+8
| | | | | As udev is for now incapable to create such devices turn this test error into warning.
* In t-lvcreate-large, do not create a clustered VG. LV activation/suspend doesPetr Rockai2011-10-231-5/+2
| | | | not work yet with singlenode clvmd in clustered VGs.