rpm/tests
Panu Matilainen f67d239ccd Actually report the involved macro names in macro tracebacks
Should make macro debugging a little saner, including but not limited
to Lua.

Fixes: #545
2021-01-29 13:54:54 +01:00
..
data Generate requires for "pure" ELF DSO's regardless of executable bit 2020-11-24 14:47:12 +02:00
Makefile.am Generate requires for "pure" ELF DSO's regardless of executable bit 2020-11-24 14:47:12 +02:00
README Describe how to run single tests 2020-02-05 16:26:26 +02:00
atlocal.in Add test for libtool versioning sanity 2021-01-18 10:18:13 +02:00
debugedit.at debugedit: Fix missing relocation of .debug_types section. 2020-08-12 11:21:13 +03:00
local.at Disable implicit database creation on read-only handle 2020-11-24 07:18:20 +02:00
rpmbuild.at Fix 4.16.0 regression causing invalid spec file name on rpmbuild -ts 2020-12-07 12:25:17 +02:00
rpmbuildid.at Eliminate redundant source file copying from build tests 2020-06-15 11:59:40 +02:00
rpmconfig.at Merge %config tests sharing built content into common groups 2020-06-15 11:59:40 +02:00
rpmconfig2.at Merge %config symlink tests sharing built content into common groups 2020-06-15 11:59:40 +02:00
rpmconfig3.at Merge config filetype change tests sharing built content into common groups 2020-06-15 11:59:40 +02:00
rpmconflict.at Remove now redundant TOPDIR removals from tests 2020-06-12 13:18:56 +03:00
rpmdb.at Disable implicit database creation on read-only handle 2020-11-24 07:18:20 +02:00
rpmdepmatch.at Rearrange test-suite python helper macros a bit 2011-06-09 13:19:14 +03:00
rpmdeps.at Merge dependency tests sharing built material to common groups 2020-06-15 11:59:40 +02:00
rpmgeneral.at Add test for libtool versioning sanity 2021-01-18 10:18:13 +02:00
rpmi.at Upgrade FA_TOUCH to FA_CREATE if the file went away (RhBug:1872141) 2020-09-09 12:44:54 +03:00
rpmio.at Merge RPMDB_CLEAR into RPMDB_INIT, they're never used separately 2020-06-12 13:18:56 +03:00
rpmmacro.at Actually report the involved macro names in macro tracebacks 2021-01-29 13:54:54 +01:00
rpmorder.at Merge RPMDB_CLEAR into RPMDB_INIT, they're never used separately 2020-06-12 13:18:56 +03:00
rpmpython.at Disable implicit database creation on read-only handle 2020-11-24 07:18:20 +02:00
rpmquery.at Add missing RPMDB_INIT wherever we write something in the tests 2020-06-12 13:18:56 +03:00
rpmreplace.at Merge file type replacement tests sharing built content into common groups 2020-06-15 11:59:40 +02:00
rpmscript.at Pass install scriptlet arguments to Lua as real local arguments 2020-10-09 12:52:47 +03:00
rpmsigdig.at Fix bogus test-suite failure when input is not a tty (#1290) 2020-06-26 11:35:08 +03:00
rpmspec.at Add NEVR provides for all packages that would be built into source rpms 2020-01-15 13:55:28 +02:00
rpmtests.at Add some debugedit tests. 2019-06-19 15:06:55 +03:00
rpmvercmp.at Add support for sorting caret ('^') higher than base version 2018-11-26 12:32:10 +02:00
rpmverify.at Fix (work around) FA_TOUCH not scoping correctly over hardlinks 2020-06-23 13:01:54 +03:00
rpmvfylevel.at Remove now redundant TOPDIR removals from tests 2020-06-12 13:18:56 +03:00

README

To run these tests you need at least these dependencies on the host:

    fakechroot (https://github.com/dex4er/fakechroot/wiki)
    gdb (https://www.gnu.org/software/gdb/)
    gnupg >= 2.0 (https://www.gnupg.org/)

Then run

   make check

The number of tests performed depends on enabled features at configure-time,
at least --with/without-lua and --enable/--disable-python.
See also the INSTALL file for more information.

To run single tests you can run

   make populate_testing ; ./rpmtests NNN MMM ...

where NNN and MMM are the numbers of the tests to be run. Use

      ./rpmtests -l

to get the list of available tests.
You can also select tests by keywords used in their description by using

     ./rpmtests -k KEYWORD

Use multiple -k parameters to have tests with different keywords run.
Use -k KEYWORD1,KEYWORD2 to execute tests matching both KEYWORD1 and KEYWORD2.

See

	./rpmtests --help

for more options. But be aware some (like -j) may not work properly with
the test suite unless a very restricted set of test is run.