summaryrefslogtreecommitdiffstats
path: root/t
Commit message (Collapse)AuthorAgeFilesLines
* use a more neutral C compiledThierry Vignaud2020-04-291-2/+2
| | | | | | Aka adapt to a world where gcc is no more the apex predator... Several Linux distros as well as FreeBSD >= 10 default to clang instead of gcc.
* simplify: BSD support -L but not --dereferenceThierry Vignaud2020-04-292-12/+2
| | | | | | | This might help the following failure: http://www.cpantesters.org/cpan/report/c8c690aa-8587-11ea-81c4-93681f24ea8f cpio: Can't lstat /bin/sh: cpio: Can't lstat /usr/local/bin/rpm:
* do not fork (daemonize is implied by {setsid})Thierry Vignaud2020-04-291-1/+0
| | | | | | | Thus fixing killing simple-httpd when test completes, which was broken since basically forever. This prevents dummy testsuite faillures when performing parallel runs on different perl/rpm versions (eg: using chroots).
* fix "The plan was already output"Thierry Vignaud2020-04-291-4/+6
| | | | | | | | | | | The error message being in some conditions: "The plan was already output at /usr/lib/perl5/5.22.3/Test/Builder.pm line 2510." We need both else we got: "Tests were run but no plan was declared and done_testing() was not seen." also fix inverted condition :-(
* fix a warning causing Test::More to think it failed when /proc is not mountedThierry Vignaud2020-04-291-2/+8
| | | | | | | | | | | | | | | | | | | You tried to plan twice at t/superuser--should-restart.t line 14. t/superuser--should-restart.t ................................... skipped: (no reason given) (...) Test Summary Report ------------------- t/superuser--should-restart.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Files=40, Tests=3901, 801 wallclock secs ( 0.96 usr 0.09 sys + 174.18 cusr 30.16 csys = 205.39 CPU) Result: FAIL Failed 1/40 test programs. 0/3901 subtests failed.A On the other side we want to make it work in both cases so we end doing that.
* check for genhdlist2 --help tooThierry Vignaud2020-04-291-0/+4
|
* cpan_testers: show verbosely why genhdlist2 do not workThierry Vignaud2020-04-291-0/+7
|
* add more extensive testsThierry Vignaud2020-04-291-0/+5
|
* cpan-testers: work without glibc-static-develThierry Vignaud2020-04-291-3/+17
| | | | | | just build a dynamic binary but exclude its deps rationale: quite a lot of CPAN testers do not have static libs installed...
* explain why we need our own "static shell"Thierry Vignaud2020-04-291-0/+2
| | | | historically we were used static dash but that was too Mageia centered
* describe the testsuiteThierry Vignaud2020-04-291-0/+29
|
* disable fsync/fdatasync while running testsThierry Vignaud2020-04-291-0/+1
|
* cpan-testers: fix failing test on Debian 9/FreeBSDThierry Vignaud2020-04-281-2/+2
| | | | | | commit 1089a6c113c53cd77147808ebeb4f6d0ef03fa89 really was about silencing a warning, so let's not break other OSes who do not have that lib or not in this location
* Also look at $Config{bin} for genhdlist2Thierry Vignaud2020-04-281-1/+2
| | | | | | | | | | It should help http://www.cpantesters.org/cpan/report/9e067a66-83f1-11ea-85a9-af7f1f24ea8f which fails. That smoker had rpmtools/URPM already installed normally into this perl's sitedir & bindir. Adding the blib/script directories didn't help that case. So try $Config{bin} too
* try harder to find genhdlist2 on CPAN testersThierry Vignaud2020-04-281-0/+6
| | | | | | | | | | | | rationale: in some cases, all dependency modules and scripts still reside in the uninstalled blib directories. CPAN.pm knows how to deal with uninstalled modules (all the blib/lib directories go into the PERL5LIB environment variable). But it does not do something similar for the blib/script directories. So we have to try harder to find genhdlist2 by adding those blib/script directories to PATH if they exist
* split set_path()Thierry Vignaud2020-04-282-3/+7
|
* fix test with rpm < 4.13 on CentOS7Thierry Vignaud2020-04-281-1/+1
|
* perform some file conflict tests only on MageiaThierry Vignaud2020-04-281-12/+30
| | | | | rationale: Mageia's rpm is patched in order to not conflict for doc files:
* introduce is_mageia()Thierry Vignaud2020-04-282-2/+6
|
* check & report where genhdlist2 isThierry Vignaud2020-04-281-0/+4
|
* describe more tests to help pinpoint regressionsThierry Vignaud2020-04-289-25/+25
|
* make test output clearerThierry Vignaud2020-04-281-1/+3
|
* check that web server has actually startedThierry Vignaud2020-04-282-0/+10
| | | | reports its error messages if any
* perl_checker cleanupsThierry Vignaud2020-04-281-1/+1
|
* cpan_testers: strip as used by rpm fails on FreeBSDThierry Vignaud2020-04-094-0/+12
|
* FreeBSD's cpio doesn't support --dereferenceThierry Vignaud2020-04-091-1/+7
|
* cpan-testers: fix building rpms on FreeBSDThierry Vignaud2020-04-0932-34/+35
| | | | install do not have -d option on FreeBSD
* cpan-testers: fix an error on FreeBSDThierry Vignaud2020-04-091-0/+2
| | | | | | commit 1089a6c113c53cd77147808ebeb4f6d0ef03fa89 really was about silencing a warning, so let's not break other OSes who do not have that lib or not in this location
* cpan_testers: fix a warning when skipping testsThierry Vignaud2020-04-091-2/+10
| | | | should have been in commit ad953e4c4bca7e5bd9f5b5664298e04272537479
* cpan_testers: workaround 'nogroup' not existing on CentOSThierry Vignaud2020-04-091-1/+1
|
* cpan_testers: workaround disabled nobody accountThierry Vignaud2020-04-091-1/+1
| | | | | On CentOS7, the error message is: 'This account is currently not available.'
* cpan_testers: fix a test with rpm < 4.13.0Thierry Vignaud2020-04-091-3/+5
| | | | | | | | It was failing for older versions of rpm since commit 32c4bc874e3f7fc99188bf045902b1018f38855a This fix the counting & adjust to missing pkg name when erasing with older rpms
* cpan_testers: set PATHThierry Vignaud2020-04-091-0/+3
| | | | | rationale: CPAN testers installs genhdlist2 using cpan but do not have /usr/local/bin in their PATH
* cpan_testers: skip weak deps test on CentOS 7 (unsupported)Thierry Vignaud2020-04-095-3/+27
| | | | | | | | | | | | rationale: CentOS 7's rpm doesn't support eg Recommendstag, it only knows their definitions but is unable to parse a spec file using Recommends Ideally we should be able to detect a too old/unpatched rpm... Technically, we could check whether it's Mageia < 6 which did have an non upstream implementation (but was using Suggests tag instead of Recommends and so would need testsuite adaption -- not worth it)
* cpan_testers: skip mirrorlist tests on !MageiaThierry Vignaud2020-01-171-0/+2
| | | | | Rationale: It needs a Mageia specific patch that introduces Time::ZoneInfo->current_zone()"
* fix testsuite errors on CentOs (NVR vs NVRA)Thierry Vignaud2020-01-177-13/+13
| | | | | | where rpmquery default to outputing NVRA (vs NVR on Mageia) reuse check_installed_fullnames() where needed instead of introducing %{NVR}
* skip test if /proc is not mountedThierry Vignaud2020-01-171-0/+1
| | | | | no need to show red in cpan-testers matrix if local chroot's /proc isn't mounted :-)
* explain build processThierry Vignaud2020-01-171-0/+4
|
* fix failing scriptlets test with rpm < 4.13.0Thierry Vignaud2020-01-171-1/+6
| | | | | it got broken when wee added support for rpm 4.13.0 in commit cdcb6c6359e8ee2a590c3c40aa3b4d57ec3b1e80
* fix "Undefined subroutine &urpm::select::_rpm_version"Thierry Vignaud2020-01-081-0/+1
| | | | | | | Undefined subroutine &urpm::select::_rpm_version called at t/superuser--media_info_dir.t line 55. which wents undetected by the testsuite for quite some time... sigh... bug introduced in commit 60b5009cc4679d4b55fb0490d4d273b5cc6f220c
* skip tests if we have no supported downloaderThierry Vignaud2020-01-081-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | as seen in CPAN reports: <<< ...retrieving failed: no webfetch found, supported webfetch are: curl, wget, prozilla, aria2 no metadata found for medium "various" >>> Whic results in: <<< Test Summary Report ------------------- t/superuser--http.t (Wstat: 2560 Tests: 11 Failed: 10) Failed tests: 2-11 Non-zero exit status: 10 Files=40, Tests=3775, 953 wallclock secs ( 1.19 usr 0.08 sys + 309.33 cusr 52.13 csys = 362.73 CPU) Result: FAIL Failed 1/40 test programs. 10/3775 subtests failed. make: *** [Makefile:1155: test_dynamic] Error 255 (/usr/bin/make test exited with 512) CPAN::Reporter: Test result is 'fail', One or more tests failed. >>> And indeed: $ rpm -q curl wget prozilla aria2 package curl is not installed package wget is not installed package prozilla is not installed package aria2 is not installed Should have been done in commit 360f05b8db2029cb62c11f7eddb7fb57f3b774f1
* (need_downloader) split it for next commitThierry Vignaud2020-01-072-12/+17
| | | | also switching one character back from UTF to ASCII
* skip network tests if we don't have a downloaderThierry Vignaud2018-09-201-0/+11
|
* make testsuite work with rpm < 4.14.2 againThierry Vignaud2018-09-191-1/+2
|
* fix testsuite with rpm-4.14.2Thierry Vignaud2018-09-171-1/+1
|
* remove commented out debug lineThierry Vignaud2018-07-021-1/+0
|
* perl_checker cleanupsThierry Vignaud2018-07-022-5/+5
|
* fix buggy rpms test with rpm-4.14.2Thierry Vignaud2018-07-021-1/+2
| | | | | | | explanations: rpm-4.14.2 spits more error messsages which can mess up Test::* if eg some space or other characters happen before "ok X" so just redirect all rpm output to /dev/null
* adapt testsuite to rpm-4.14.2 RC1Thierry Vignaud2018-07-023-3/+5
| | | | | | we need to define %_pkgverify_level to none else locally build packages will derail the testsuite as some pkg installations will fail with eg: package nls-1.0-2.i386 does not verify: no digest
* adapt testsuite to rpm-4.13.0~rc2Thierry Vignaud2016-10-201-1/+11
| | | | ...which fixed %preun not aborting package erasure