summaryrefslogtreecommitdiffstats
path: root/test/api
Commit message (Collapse)AuthorAgeFilesLines
* Update testsZdenek Kabelac2012-03-163-7/+12
| | | | | | | | | | | | | Indent Shell improvements - use internal function for checks Use PVs in "" (LV and VG cannot have spaces) Several test very starting 'dmeventd' without annoucing it via prepade_dmeventd. Fix some of test actually.
* Cleanup files from testingZdenek Kabelac2011-11-231-0/+1
| | | | | | 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.
* 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-231-37/+10
| | | | | | 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.
* Another vgremove for speedupZdenek Kabelac2011-09-191-0/+2
| | | | | | | It seems like test-suite is significantly slowed down on removal phase. Maybe it should be part of generic teardown - though the reason of slowdown should be also discovered - probably related to retry loop ?
* Fix kernel version parsing in tests, use common function.Milan Broz2011-06-091-2/+1
|
* Also check in the pe_start API test that the disks have not been touched.Petr Rockai2011-06-042-4/+6
|
* Add an API test that shows how to find a value of pe_start for a VG withoutPetr Rockai2011-06-043-1/+65
| | | | actually creating the VG on-disk.
* This patchset refactors some reporting code and completes the remainingPetr Rockai2011-04-121-0/+4
| | | | | | | lvseg properties for lvm2app, 'devices' and 'seg_pe_ranges'. Signed-off-by: Dave Wysochanski <dwysocha@redhat.com> Reviewed-by: Petr Rockai <prockai@redhat.com>
* Invert condition for READLINE checkZdenek Kabelac2011-03-011-1/+1
|
* Build test.c also without readline libraryZdenek Kabelac2011-03-011-2/+14
| | | | | Allow bulding of this testing tool also without readline library. Outputs message about build without readline library then.
* Quick fix to compile lvm2api tests when possibleZdenek Kabelac2011-03-011-3/+6
| | | | Do not build lvm2api tests when lvm2api lib is not enabled.
* Query only test related vg nameZdenek Kabelac2011-01-281-1/+1
|
* Add missing lvm_quit in testZdenek Kabelac2011-01-261-1/+3
| | | | Fix occasional confusing memory leak report in testing.
* Skip the api/percent test on kernels <= 2.6.32.Petr Rockai2011-01-071-0/+3
|
* Remove *.t in test/api's make clean target.Petr Rockai2011-01-071-0/+3
|
* Substantial rework of the functional test support code. Some new features:Petr Rockai2011-01-052-5/+6
| | | | | | | | - somewhat neater, more consistent and more readable output - possible to set any lvm.conf value: aux lvmconf "section/key = value" - LVM_TEST_NODEBUG to suppress the (lengthy) "## DEBUG" output - back-substitution on test output ($TESTDIR/$PREFIX -> @TESTDIR@/@PREFIX@) - support code moved from test/ to test/lib/ --> less clutter
* Use system assert in test/api/percent.c, for now.Petr Rockai2011-01-031-11/+3
|
* Copyright notices for new files.Alasdair Kergon2010-12-212-0/+27
|
* Move var declarations to function beginingZdenek Kabelac2010-12-201-4/+9
| | | | As assert macro jumps to 'bad:' label - we need vg initialized.
* Add getters for copy_percent and snap_percent to the lvm2app API.Petr Rockai2010-12-143-1/+56
|
* Remove a redundant %.o: %.c rule from test/api/Makefile.in.Petr Rockai2010-12-121-3/+0
|
* Only build the required bits under api/ on make check.Petr Rockai2010-12-121-1/+3
|
* Do not build vgtest (superseded by vgtest.t). Fix the build line for .t files.Petr Rockai2010-12-121-5/+3
|
* First go at a somewhat more comprehensive mechanism to run "unit" tests for thePetr Rockai2010-12-122-2/+35
| | | | lvm2app API. Further factoring of the support code needed. RHBZ 654445
* Add interactive tests for functions to lookup a pv|lv by name|uuid.Petr Rockai2010-11-251-12/+95
| | | | | Signed-off-by: Dave Wysochanski <wysochanski@pobox.com> Reviewed-by: Petr Rockai <prockai@redhat.com>
* Update interactive tests for lvm2app lvseg and pvseg apis.Petr Rockai2010-11-171-49/+75
| | | | | Signed-off-by: Dave Wysochanski <wysochanski@pobox.com> Reviewed-by: Petr Rockai <prockai@redhat.com>
* Add vg_set_property to the interactive lvm2app test program.Petr Rockai2010-11-171-0/+34
| | | | | Signed-off-by: Dave Wysochanski <wysochanski@pobox.com> Reviewed-by: Petr Rockai <prockai@redhat.com>
* Add interactive tests for lvm_{pv|vg|lv}_get_property().Dave Wysochanski2010-10-251-0/+112
|
* Test lvm_vgname_from_{pvid|device}.Dave Wysochanski2010-05-191-0/+40
|
* Add missing readline linkage to lvm2app test.Dave Wysochanski2010-04-141-1/+1
|
* Use vpath instead of VPATH.Zdenek Kabelac2010-04-091-1/+0
| | | | | | | | | | | | | | | Usage of VPATH makes troubles when used within $(builddir). Not only source files are being found through VPATH, but targets as well. (make --debug=v) Thus if user builds the code in $(srcdir) and also in some $(builddir) he gets mangled results as some generated files (i.e. .export.sym) are 'reused' from $(srcdir) instead of $(builddir). This patch switches to use vpath were we could explicitly name suffixes that should be looked via vpath - we must take care, we do not generate files with these suffixes: .c, .in, .po, .exported_symbols
* Pthread linking changeZdenek Kabelac2010-03-041-1/+1
| | | | | | | | | Create new substituted variable PTHREAD_LIBS and link this library only with tools/libs which really needs it - i.e. dmeventd. Check for libpthread only for builds with clvmd or dmeventd. Remove variable LIB_PTHREAD
* Update lvm2app interactive unit test for vg/lv tags.Dave Wysochanski2010-02-241-6/+102
| | | | | | Simple test of vg/lv tag addition/deletion. Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
* Update simple lvm2app unit test for new size apis.Dave Wysochanski2010-02-141-2/+5
| | | | Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
* Fix test/api to work with srcdir != builddir.Petr Rockai2009-11-301-4/+4
|
* Allow for a build directory separate from the source.Alasdair Kergon2009-10-021-1/+2
|
* Fix build failure when enabling dmeventd and applib.Dave Wysochanski2009-09-141-0/+5
| | | | | This patch fixes a build with options similar to the following: ./configure --enable-debug --enable-applib --enable-dmeventd --enable-cmdlib
* Update lvm2app unit test vgtest - fix remove bug.Dave Wysochanski2009-09-041-3/+3
| | | | We now must commit to disk after lvm_vg_remove().
* Remove 'test' interative api unit tests from 'TARGET' line.Dave Wysochanski2009-09-041-1/+1
| | | | | | The test/api directory TARGET line will be reserved for non-interactive unit tests. Building the interactive test can still be done with "make test" from the test/api dir.
* Add lvm2app.sh to nightly testsuite.Dave Wysochanski2009-09-041-1/+1
| | | | | More tests to come but for now just call into vgtest. Fix warning in vgtest.c
* Update lvm2app vgtest to take vgname and devices as parameters.Dave Wysochanski2009-09-031-9/+27
|
* Make lvm2app lv_t handle definition consistent with lvm_t.Dave Wysochanski2009-08-131-6/+6
| | | | | | | This patch update lv_t handle to be consistent with lvm_t - define as a pointer to internal struct logical_volume. Author: Dave Wysochanski <dwysocha@redhat.com>
* Make lvm2app vg_t handle definition consistent with lvm_t.Dave Wysochanski2009-08-132-16/+16
| | | | | | | This patch update vg_t handle to be consistent with lvm_t - define as a pointer to internal struct volume_group. Author: Dave Wysochanski <dwysocha@redhat.com>
* Update test/api/test.c to call lvm_vg_create and lvm_vg_remove.Dave Wysochanski2009-08-071-5/+59
| | | | Also fix a couple bugs.
* renamed include filesAlasdair Kergon2009-07-292-2/+4
|
* Update interactive unit test - fix silly vg_close error.Dave Wysochanski2009-07-281-2/+2
|
* Update interactive unit test for liblvm - add vg_write, general cleanup.Dave Wysochanski2009-07-281-27/+52
|
* Add lvm_vg_get_seqno, updating lvm.h and unit test.Dave Wysochanski2009-07-281-2/+3
| | | | | | Adding the ability to get the seqno is important for an application to determine if something has changed in a VG. Otherwise, the only way to know is to open the VG with write permission and hold the handle.
* Add lvm_library_get_version() and update unit tests to display version.Dave Wysochanski2009-07-282-0/+2
|