summaryrefslogtreecommitdiffstats
path: root/RPM4/t
Commit message (Collapse)AuthorAgeFilesLines
* CPAN testers: display RPM versionThierry Vignaud2022-07-181-0/+1
|
* Skip failing test Te->files on mga[2-7]Thierry Vignaud2022-04-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We added the test in commit f6d333affb60e5364bf30355869fd359da2317e8 when switching to the new API. But sadly this new test fails on older mga releases. Eg Te->files segfaults on mga3 with rpm-4.11.0.1: Stack trace when testing Te->files in RPM-0.45+: ok 32 - Running transaction justdb ok 33 - Running traverse on transaction ok 34 - Can find header in transaction *** Error in `/usr/bin/perl': free(): invalid next size (fast): 0x0000000000f9a1b0 *** Program received signal SIGSEGV, Segmentation fault. 0x00007ffff69932fb in malloc_consolidate () from /lib64/libc.so.6 (gdb) bt #0 0x00007ffff69932fb in malloc_consolidate () from /lib64/libc.so.6 #1 0x00007ffff699442d in _int_malloc () from /lib64/libc.so.6 #2 0x00007ffff699712d in calloc () from /lib64/libc.so.6 #3 0x00007ffff7de830f in _dl_new_object () from /lib64/ld-linux-x86-64.so.2 #4 0x00007ffff7de3fdc in _dl_map_object_from_fd () from /lib64/ld-linux-x86-64.so.2 #5 0x00007ffff7de5c2b in _dl_map_object () from /lib64/ld-linux-x86-64.so.2 #6 0x00007ffff7df01fc in dl_open_worker () from /lib64/ld-linux-x86-64.so.2 #7 0x00007ffff7dec526 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2 #8 0x00007ffff7defd39 in _dl_open () from /lib64/ld-linux-x86-64.so.2 #9 0x00007ffff6a42202 in do_dlopen () from /lib64/libc.so.6 #10 0x00007ffff7dec526 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2 #11 0x00007ffff6a422c4 in __libc_dlopen_mode () from /lib64/libc.so.6 #12 0x00007ffff6a1c4e5 in init () from /lib64/libc.so.6 #13 0x00007ffff6cd89f0 in pthread_once () from /lib64/libpthread.so.0 #14 0x00007ffff6a1c604 in backtrace () from /lib64/libc.so.6 #15 0x00007ffff698cea5 in __libc_message () from /lib64/libc.so.6 #16 0x00007ffff6993e66 in _int_free () from /lib64/libc.so.6 #17 0x00007ffff54354a9 in rfree () from /lib/../lib64/librpmio.so.3 #18 0x00007ffff56880e9 in rpmfiFree () from /lib/../lib64/librpm.so.3 #19 0x00007ffff56829de in rpmalFree () from /lib/../lib64/librpm.so.3 #20 0x00007ffff5691a99 in rpmtsClean () from /lib/../lib64/librpm.so.3 #21 0x00007ffff5691aec in rpmtsEmpty () from /lib/../lib64/librpm.so.3 #22 0x00007ffff5691b85 in rpmtsFree () from /lib/../lib64/librpm.so.3 #23 0x00007ffff58bd910 in XS_RPM4__Transaction_DESTROY (my_perl=<optimized out>, cv=<optimized out>) at RPM4.xs:1424 #24 0x00007ffff7b11a22 in Perl_pp_entersub () from /usr/lib/perl5/5.16.3/x86_64-linux-thread-multi/CORE/libperl.so #25 0x00007ffff7a9fc69 in Perl_call_sv () from /usr/lib/perl5/5.16.3/x86_64-linux-thread-multi/CORE/libperl.so #26 0x00007ffff7b1ae6b in S_curse () from /usr/lib/perl5/5.16.3/x86_64-linux-thread-multi/CORE/libperl.so #27 0x00007ffff7b1b808 in Perl_sv_clear () from /usr/lib/perl5/5.16.3/x86_64-linux-thread-multi/CORE/libperl.so #28 0x00007ffff7b1bbe2 in Perl_sv_free2 () from /usr/lib/perl5/5.16.3/x86_64-linux-thread-multi/CORE/libperl.so #29 0x00007ffff7b3eea0 in Perl_free_tmps () from /usr/lib/perl5/5.16.3/x86_64-linux-thread-multi/CORE/libperl.so #30 0x00007ffff7b0a835 in Perl_pp_nextstate () from /usr/lib/perl5/5.16.3/x86_64-linux-thread-multi/CORE/libperl.so #31 0x00007ffff7b0a196 in Perl_runops_standard () from /usr/lib/perl5/5.16.3/x86_64-linux-thread-multi/CORE/libperl.so #32 0x00007ffff7aa5b45 in perl_run () from /usr/lib/perl5/5.16.3/x86_64-linux-thread-multi/CORE/libperl.so #33 0x0000000000400f09 in main () Stack trace when testing Te->files in RPM-0.44: Program received signal SIGABRT, Aborted. 0x00007ffff694d6e5 in raise () from /lib64/libc.so.6 (gdb) bt #0 0x00007ffff694d6e5 in raise () from /lib64/libc.so.6 #1 0x00007ffff694ed48 in abort () from /lib64/libc.so.6 #2 0x00007ffff698ce8b in __libc_message () from /lib64/libc.so.6 #3 0x00007ffff6993e66 in _int_free () from /lib64/libc.so.6 #4 0x00007ffff54354a9 in rfree () from /lib/../lib64/librpmio.so.3 #5 0x00007ffff5688062 in rpmfiFree () from /lib/../lib64/librpm.so.3 #6 0x00007ffff56829de in rpmalFree () from /lib/../lib64/librpm.so.3 #7 0x00007ffff5691a99 in rpmtsClean () from /lib/../lib64/librpm.so.3 #8 0x00007ffff5691aec in rpmtsEmpty () from /lib/../lib64/librpm.so.3 #9 0x00007ffff5691b85 in rpmtsFree () from /lib/../lib64/librpm.so.3 #10 0x00007ffff58bd910 in XS_RPM4__Transaction_DESTROY (my_perl=<optimized out>, cv=<optimized out>) at RPM4.xs:1424 #11 0x00007ffff7b11a22 in Perl_pp_entersub () from /usr/lib/perl5/5.16.3/x86_64-linux-thread-multi/CORE/libperl.so #12 0x00007ffff7a9fc69 in Perl_call_sv () from /usr/lib/perl5/5.16.3/x86_64-linux-thread-multi/CORE/libperl.so #13 0x00007ffff7b1ae6b in S_curse () from /usr/lib/perl5/5.16.3/x86_64-linux-thread-multi/CORE/libperl.so #14 0x00007ffff7b1b808 in Perl_sv_clear () from /usr/lib/perl5/5.16.3/x86_64-linux-thread-multi/CORE/libperl.so #15 0x00007ffff7b1bbe2 in Perl_sv_free2 () from /usr/lib/perl5/5.16.3/x86_64-linux-thread-multi/CORE/libperl.so #16 0x00007ffff7b3eea0 in Perl_free_tmps () from /usr/lib/perl5/5.16.3/x86_64-linux-thread-multi/CORE/libperl.so #17 0x00007ffff7b0a835 in Perl_pp_nextstate () from /usr/lib/perl5/5.16.3/x86_64-linux-thread-multi/CORE/libperl.so #18 0x00007ffff7b0a196 in Perl_runops_standard () from /usr/lib/perl5/5.16.3/x86_64-linux-thread-multi/CORE/libperl.so #19 0x00007ffff7aa5b45 in perl_run () from /usr/lib/perl5/5.16.3/x86_64-linux-thread-multi/CORE/libperl.so #20 0x0000000000400f09 in main ()
* Skip a failing test on known broken rpmsThierry Vignaud2022-04-291-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | It was recently re-enabled in commit e2c45e167796ffb6d6d5c21e0fadfec82d2d4ebf It worked fine on mga9 but it makes several freebsd & mga[3-7] to choke on that test perl: rpmal.c:293: rpmalAdd: Assertion `dspool == ((void *)0) || dspool == al->pool' failed. That assertion was removed in later rpms The stack trace is: Program received signal SIGABRT, Aborted. 0x00007ffff7b21a7a in raise () from /lib64/libc.so.6 (gdb) bt #0 0x00007ffff7b21a7a in raise () from /lib64/libc.so.6 #1 0x00007ffff7b0a524 in abort () from /lib64/libc.so.6 #2 0x00007ffff7b0a40f in __assert_fail_base.cold.0 () from /lib64/libc.so.6 #3 0x00007ffff7b169a2 in __assert_fail () from /lib64/libc.so.6 #4 0x00007ffff788b682 in rpmalAdd () from /lib/../lib64/librpm.so.8 #5 0x00007ffff787c74b in rpmtsCreateAl () from /lib/../lib64/librpm.so.8 #6 0x00007ffff787d99f in rpmtsOrder () from /lib/../lib64/librpm.so.8 #7 0x00007ffff78ddde8 in XS_RPM4__Transaction_transorder (my_perl=<optimized out>, cv=<optimized out>) at RPM4.xs:1718 #8 0x00007ffff7da1b21 in Perl_pp_entersub () from /lib64/libperl.so.5.28 #9 0x00007ffff7d97e16 in Perl_runops_standard () from /lib64/libperl.so.5.28 #10 0x00007ffff7d15a17 in perl_run () from /lib64/libperl.so.5.28 #11 0x000000000040125a in main ()
* Prepare for rpm-4.19: switch away from rpmteFI()Thierry Vignaud2022-04-271-0/+1
| | | | Test Te->files btw (which shows it was segfaulting before...)
* Reenable the removing transactionThierry Vignaud2022-04-271-2/+3
|
* Always check for problems after running a transactionThierry Vignaud2022-04-271-0/+1
|
* Test removing a non existing rpmThierry Vignaud2022-04-271-0/+1
|
* Add a TODO itemThierry Vignaud2022-04-271-0/+1
|
* (process_problems) skip tests if no problemsThierry Vignaud2022-04-271-0/+1
|
* Enable to debug with extra verbosityThierry Vignaud2022-04-271-0/+3
|
* Display problemsThierry Vignaud2022-04-271-0/+1
|
* Check problems after test transaction tooThierry Vignaud2022-04-271-1/+2
|
* Don't provide a number of tests in advanceThierry Vignaud2022-04-271-2/+2
| | | | It'll be simpler for next commits
* Split process_problems() for late reuseThierry Vignaud2022-04-271-15/+19
|
* Split callback so that it can be reusedThierry Vignaud2022-04-271-1/+6
|
* Fix & enable Problem testsThierry Vignaud2022-04-271-4/+2
| | | | | Was disabled at least since commit 9e2966a33f9148fdc8ef81783bab1fe18e87bd34 16 years ago
* Fix running traverse(): return 1Thierry Vignaud2022-04-271-0/+2
| | | | | | | | | Else traverse() is short-circuited... which breaks the testsuite... I wonder how the testsuite was working previous to rpm-4.17.0 which fixed something that exposed that issue. This test runs smoothly on mga[2-8] Note for future: traverse() really should be documented...
* Clarify some test namesThierry Vignaud2022-04-261-5/+5
|
* rename variable for next commitThierry Vignaud2020-04-241-4/+11
| | | | Also alter the way we count the plan
* *BSD/Debian/Ubuntu do not have a system wide rpmdbThierry Vignaud2018-09-183-3/+21
|
* rpmbuild is not functional on most *BSD & DebianThierry Vignaud2018-09-181-3/+6
|
* skip a test with rpm-4.1[12] due to a segfaultThierry Vignaud2017-11-061-2/+5
|
* fix a rpm-4.14 regressionThierry Vignaud2017-10-281-1/+3
| | | | Reloading the spec file object else next build fails with rpm-4.14
* disable tests that involve a pasphraseThierry Vignaud2017-10-271-3/+3
| | | | | | rationale: since rpm-4.13, rpm no more offer to ask for passphrase, this is left to gpg see commit 0bce5fcf270711a2e077fba0fb7c5979ea007eb5
* reenable some teststv2016-10-261-3/+3
| | | | git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@264 971eb68f-4bfb-0310-8326-d2484c010a4c
* fix & reenable a test since injecting a header is not supported anymoretv2016-10-261-3/+3
| | | | git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@263 971eb68f-4bfb-0310-8326-d2484c010a4c
* kill commented tests about no more existing methodstv2016-10-261-3/+0
| | | | git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@262 971eb68f-4bfb-0310-8326-d2484c010a4c
* fix some wrong descriptionstv2016-10-261-2/+2
| | | | git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@260 971eb68f-4bfb-0310-8326-d2484c010a4c
* fix a verbose warningtv2012-12-181-1/+1
| | | | git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@240 971eb68f-4bfb-0310-8326-d2484c010a4c
* perl_checker cleanupstv2012-12-189-99/+99
| | | | git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@237 971eb68f-4bfb-0310-8326-d2484c010a4c
* blacklist some modulestv2012-12-181-0/+8
| | | | git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@236 971eb68f-4bfb-0310-8326-d2484c010a4c
* help syntax highlighthin in emacstv2012-12-1811-0/+11
| | | | git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@235 971eb68f-4bfb-0310-8326-d2484c010a4c
* (_newspec,newspec) drop unused 'cookie', 'passphrase', 'rootdir' & 'verify' ↵tv2012-06-251-3/+1
| | | | | | | | parameters (useless with rpm-4.9.x anyway) git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@217 971eb68f-4bfb-0310-8326-d2484c010a4c
* (platformscore) kill it (unimplemented for 5 years)tv2012-06-151-7/+1
| | | | git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@205 971eb68f-4bfb-0310-8326-d2484c010a4c
* just drop test that will never work with rpm.orgtv2012-06-121-36/+1
| | | | | | (they're disabled since upgrading to rpm-4.6 3+ years ago) git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@201 971eb68f-4bfb-0310-8326-d2484c010a4c
* reeanble traverse() tests now that it's usefull again with rpm-4.9tv2012-01-021-40/+40
| | | | git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@179 971eb68f-4bfb-0310-8326-d2484c010a4c
* reeanble 2nd rpmdbverify() test now rpmdbinit() really workstv2012-01-021-2/+2
| | | | git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@177 971eb68f-4bfb-0310-8326-d2484c010a4c
* reenable some tests:tv2012-01-021-7/+7
| | | | | | | | | | - 4 of the 5 tests disabled by nanardon in r147 ("disable some test, it seems internal of rpm has changed") - and 2 of the 3 tests I disabled in r163 ("disable tests segfaulting in rpmSpecBuild()") git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@175 971eb68f-4bfb-0310-8326-d2484c010a4c
* disable 2 tests that fails with rpm-4.9tv2011-12-141-3/+3
| | | | | | (all functions needed by iurt & youri* pass the testsuite) git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@165 971eb68f-4bfb-0310-8326-d2484c010a4c
* disable tests using unimplemented functionstv2011-12-141-43/+43
| | | | | | (only 2 tests failing with rpm-4.9 now) git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@164 971eb68f-4bfb-0310-8326-d2484c010a4c
* disable tests segfaulting in rpmSpecBuild()tv2011-12-141-4/+4
| | | | git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@163 971eb68f-4bfb-0310-8326-d2484c010a4c
* disable some test, it seems internal of rpm has changedtv2011-11-091-6/+6
| | | | | | | and Spec struct is not clean anymore between two build() call (nanardon) git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@147 971eb68f-4bfb-0310-8326-d2484c010a4c
* add rpm-4.6 support (by pixel on 2009-01-20)tv2011-11-091-1/+1
| | | | | | details are in README.API git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@145 971eb68f-4bfb-0310-8326-d2484c010a4c
* - fix #7: installsrpms return one value in scalar contextnanardon2007-07-221-1/+2
| | | | git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@140 971eb68f-4bfb-0310-8326-d2484c010a4c
* - string: fix test, then fix the functionnanardon2007-07-211-2/+2
| | | | git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@138 971eb68f-4bfb-0310-8326-d2484c010a4c
* - add test for header->string()nanardon2007-07-201-2/+14
| | | | git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@136 971eb68f-4bfb-0310-8326-d2484c010a4c
* - fix header->stringnanardon2007-07-201-1/+2
| | | | git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@134 971eb68f-4bfb-0310-8326-d2484c010a4c
* - fix spec->source ignoring everythingnanardon2007-07-202-1/+41
| | | | git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@133 971eb68f-4bfb-0310-8326-d2484c010a4c
* - add platformscore() functionnanardon2007-07-031-1/+7
| | | | git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@127 971eb68f-4bfb-0310-8326-d2484c010a4c
* - disable a test because wrong reload in rpmnanardon2007-07-021-2/+5
| | | | git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@126 971eb68f-4bfb-0310-8326-d2484c010a4c