summaryrefslogtreecommitdiffstats
path: root/test/Makefile.in
Commit message (Collapse)AuthorAgeFilesLines
* Improve test suiteZdenek Kabelac2012-03-281-0/+21
| | | | | | | | | Add make help target. Add LVM_TEST_PARALLEL to support parallel runs of tests Work around the problem the dmsetup table/info may return error by using dmtable and dminfo function that will use 'should'. (Error happens when some concurently running process removes table entry while dmsetup command resolves table entries inside the loop.)
* Use proper "" for absolute pathsZdenek Kabelac2012-03-141-11/+11
|
* Run tests with lvmetad if we have it.Petr Rockai2012-02-151-5/+5
|
* Cleanup files from testingZdenek Kabelac2011-11-231-2/+3
| | | | | | 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.
* Cleanup test makefilesZdenek Kabelac2011-11-231-29/+18
| | | | | | 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.
* Tidy the shell tests into their own subdir. We now have:Petr Rockai2011-11-211-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-201-0/+10
| | | | | | | 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).
* ImprovementsZdenek Kabelac2011-09-241-16/+18
| | | | | | | | | Simplify RUN_BASE Put .tests-stamp deps only for check target and fix its cleanup. Fix abs_top_srcdir. vgimportclone needs srcdir. Clean api subdir.
* Ensure fsadm.sh is executableZdenek Kabelac2011-09-191-1/+2
| | | | | | | When the srcdir == builddir we get the link on non-exectable file. So make always sure fsadm.sh is executable script file. Add cleanup target for lib/fsadm.
* Add link for fsadm scriptZdenek Kabelac2011-09-191-0/+1
| | | | Prepare to enabling t-fsadm.sh test
* A compromise integration of LVMetaD into the build: I have kept all thePetr Rockai2011-08-311-4/+5
| | | | | | | | | | daemon/common code in a single libdaemon.a, which is completely private. This is currently linked into the lvmetad binary, and will be linked into LVM (the client part, since static linking only picks up only symbols that are actually used). I have also added --enable/disable-lvmetad to ./configure; although the current default is off, I expect this to be flipped to on shortly. There's no LVM-side support yet, but when there is, even when built, it'll still need to be enabled by an lvm.conf option.
* Add missing cleanup for vgimportclone scriptZdenek Kabelac2011-04-281-1/+2
|
* Add vgimportclone symlink for nightly test.Dave Wysochanski2011-04-211-0/+1
|
* Always copy all tests to builddir regardless of T/S, since subsequent runsPetr Rockai2011-04-191-2/+3
| | | | (possibly with different T or S) skip that step.
* Remove -f from list of targets for cleanupZdenek Kabelac2011-01-171-1/+1
| | | | rm -f is already in used for this cleanup.
* Include default make.tmplZdenek Kabelac2011-01-131-6/+3
| | | | | Use default clean targets for this Makefile Use also same build flags for compiling testing tools like harness.
* Fix up the make clean target in test/.Petr Rockai2011-01-071-0/+3
|
* Substantial rework of the functional test support code. Some new features:Petr Rockai2011-01-051-51/+30
| | | | | | | | - 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
* Fix sed substitution in copying tests to builddir (test/Makefile.in).Petr Rockai2010-12-141-1/+1
|
* Hack up the RUN_BASE computation in the test Makefile.in a bit more (so that itPetr Rockai2010-12-141-1/+1
| | | | actually works... sometimes).
* Fix the sed expression to get "base" names of tests.Petr Rockai2010-12-121-1/+1
|
* Only build the required bits under api/ on make check.Petr Rockai2010-12-121-3/+3
|
* First go at a somewhat more comprehensive mechanism to run "unit" tests for thePetr Rockai2010-12-121-18/+19
| | | | lvm2app API. Further factoring of the support code needed. RHBZ 654445
* Add a VERBOSE option to make check (make check VERBOSE=1).Petr Rockai2010-10-141-4/+5
|
* Add an option to skip some tests in make check (regex based, like T=): eg.Petr Rockai2010-10-121-1/+2
| | | | $ sudo make check S='mirror-basic|fsadm'
* Run tests in alphabetical (and thus stable across machines) order.Petr Rockai2010-05-121-1/+1
|
* Revert the "repeat failed tests with -vvvv" feature. Instead, dump debug logsPetr Rockai2010-05-121-0/+1
| | | | | | | to a file using log/file, with log/overwrite set and dump this file in STACKTRACE. The overall effect is that only the command that ran last before the failure has been triggered will get its debug output logged. This is similar to how we treat coredumps.
* Add some basic provisions for automated testing of dmeventd.Petr Rockai2010-05-061-0/+5
|
* Add a "should" alongside "not" to the test utilities. When a "should" commandPetr Rockai2010-04-301-0/+1
| | | | | | fails, the test will carry on but will issue a warning. The harness detects such warnings from tests and marks tests that passed with warnings with a special status.
* Add check_cluster and check_local targets in addition to just "check".Petr Rockai2010-04-131-1/+9
|
* Make it easy to run just a subset of tests by saying `make check T="regex"`.Petr Rockai2010-04-131-3/+6
|
* Add a new helper script for the testsuite, that makes checking for variousPetr Rockai2010-04-121-1/+5
| | | | (lvm) properties easier and produces nicer output.
* INSTALL rules updatesZdenek Kabelac2010-04-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Patch is inspired by Debian's extra patch. - removes OWNER & GROUP make vars they are parts of INSTALL command. - adds INSTALL_PROGRAM for executable, uses $(INSTALL) - adds INSTALL_DATA for non-executable data, uses ($INSTALL) - adds INSTALL_WDATA for writable non-executable data, uses ($INSTALL) - adds configure option --enable-write_install - to support installatin of writable files used by distribution - replaces usage of ifeq @LIB_SUFFIX@ with $(LIB_SUFFIX) - installs .a files from static builds without executable flag - installs .a files to $(usrlibdir) instead of $(libdir) - installs all static binaries to $(staticdir) - create .so links for devel package in $(usrlibdir) instead of $(libdir) - makes .so and .so.LIB_VERSION files within builddir - removes VERSIONED_SHLIB and created versioned LIB_SHARED automagicaly - install LIB_SHARED via install_lib_shared target - install plugins via install_lib_shared_plugin target - prints whole 'install' command during installation instead of less informative "Installing $(something) $(somewhere)" - install multiple man pages with one INSTALL command - use DISTCLEAN_TARGETS instead of creating multiple distclean targets
* Refactor the test utilities, dropping the legacy test-lib.sh and curtailingPetr Rockai2010-04-071-1/+1
| | | | | lvm-utils.sh. Clears up lots of unused code, should have little observable impact (it does change test directory layout slightly).
* Missed to convert T -> SCRIPTSZdenek Kabelac2010-03-311-1/+1
|
* Fix also error code from clean:Zdenek Kabelac2010-03-291-2/+2
| | | | And fix previous commit which missed test.
* Oops, avoid returning errors from shell to makefile for builddir == srcdirZdenek Kabelac2010-03-291-1/+1
|
* Split long line in Makefile and keep $abs_top_buildir as shell variableZdenek Kabelac2010-03-291-2/+4
| | | | within init.sh.
* Fixing another set of distclean problems where we left some generated filesZdenek Kabelac2010-03-291-6/+6
| | | | | | | | in clvmd, dmevend, man, tests. Don't include dependency files for clow and cscope.out targets Improve dependency tracking for dmeventd and liblvm2cmd sources.
* Run both locking_type 1 and 3 tests (forgot to uncomment locking_type 1 beforePetr Rockai2010-03-181-1/+1
| | | | last checkin).
* Add infrastructure for running the functional testsuite with locking_type setPetr Rockai2010-03-181-1/+5
| | | | to 3, using a local (singlenode) clvmd.
* Use udev transactions in testsuite.Peter Rajnoha2010-02-151-4/+2
|
* Define {DM, LVM}_UDEV_DISABLE_CHECKING=1 env. variables for tests.Peter Rajnoha2010-01-111-0/+7
| | | | | We need to disable udev checking for our tests since they use their own location for device nodes and symlinks.
* The sourcedir instances of the test scripts are not PHONY.Petr Rockai2009-11-301-4/+1
|
* Don't fail in the builddir == srcdir case, though. (testsuite)Petr Rockai2009-11-301-3/+3
|
* More fixes for the testsuite in the $(builddir) != $(srcdir) situation.Petr Rockai2009-11-301-15/+15
|
* Fix the dmeventd LD_LIBRARY_PATH in the testsuite.Petr Rockai2009-11-191-1/+1
|
* Rudimentary support for running testsuite in a builddir != srcdir situation.Petr Rockai2009-11-021-10/+13
|