summaryrefslogtreecommitdiffstats
path: root/t/02create_pkgs.t
Commit message (Collapse)AuthorAgeFilesLines
* Set up i586 to i686 mediumHEADmasterThierry Vignaud2024-06-031-0/+6
|
* Skip rpm-v3 tests on known broken versions of rpmThierry Vignaud2021-10-311-1/+1
| | | | | | | | | | | | | | We know that 4.15.1.1 & 4.16.1.3 had a bad regression regarding handling old rpm v3 packages. See https://github.com/rpm-software-management/rpm/issues/1635 So just skip those tests on affected CPAN smokers. Eg: http://www.cpantesters.org/cpan/report/db1b368e-c68b-11eb-8660-be641f24ea8f error: [fd 10]: invalid signature tag Archivesize (1046) bad rpm media/rpm-v3_no_subdir/libtermcap-2.0.8-2.i386.rpm Failed test 'genhdlist2 --xml-info media/rpm-v3_no_subdir' at t/helper.pm line 151.
* fix running genhlist2 with the right perl versionThierry Vignaud2020-05-011-0/+3
| | | | | | | | | | | | | | | | | | | | Else genhdlist2 may fail to load URPM if it doesn't use the perl version for which URPM was installed. This affects CPAN smokers where several perl versions are installed. Eg in http://www.cpantesters.org/cpan/report/6808b728-8a34-11ea-bab2-e37d1f24ea8f CPAN says INC= /usr/perl5.30.0p/lib/site_perl/5.30.0/amd64-freebsd /usr/perl5.30.0p/lib/site_perl/5.30.0 /usr/perl5.30.0p/lib/5.30.0/amd64-freebsd /usr/perl5.30.0p/lib/5.30.0 Which is consistent with $^X = /usr/perl5.30.0p/bin/perl5.30.0 But genhdlist2 fails with: Can't locate URPM.pm in @INC (you may need to install the URPM module) (@INC contains: /usr/home/cpansand/.cpan/build/2020042914/urpmi-v8.122-1/blib/lib /usr/home/cpansand/.cpan/build/2020042914/urpmi-v8.122-1/blib/arch /usr/perl5.28.2-RC1p/lib/site_perl/5.28.2/amd64-freebsd /usr/perl5.28.2-RC1p/lib/site_perl/5.28.2 /usr/perl5.28.2-RC1p/lib/5.28.2/amd64-freebsd /usr/perl5.28.2-RC1p/lib/5.28.2 .) at /usr/home/cpansand/.cpan/build/2020042914/urpmi-v8.122-1/t/genhdlist2 line 6. BEGIN failed--compilation aborted at /usr/home/cpansand/.cpan/build/2020042914/urpmi-v8.122-1/t/genhdlist2 line 6. Ie it used the wrong perl-5.28.2 instead of perl-5.30.0
* replace "xxx\"xxx" with qq(xxx"xxx): no need to escape <">Thierry Vignaud2020-05-011-1/+1
|
* BSD: prevent failing due to broken deps generatorThierry Vignaud2020-05-011-0/+3
| | | | | | | | | | | | | some FreeBSD CPAN smokers sometimes fails with: error: Couldn't exec /usr/local/lib/rpm/elfdeps: No such file or directory The testsuite passes smoothly before & after that change. The only impact is that with that, t/media/rpm-query-in-scriptlet/rpm-query-in-scriptlet-1-1.x86_64.rpm lose one requires on one of its own provides: removed REQUIRES librpm.so.9()(64bit) Which is fine.
* factorize a testThierry Vignaud2020-05-011-2/+4
| | | | It's more readable and will help next commit
* just use only one variableThierry Vignaud2020-05-011-4/+4
| | | | Thus we got a shorter command which will help for next commits
* perl_checker cleanupThierry Vignaud2020-05-011-1/+1
|
* display RPM version in logsThierry Vignaud2020-04-291-0/+2
|
* skip rpm-query-in-scriptlet.spec on FreeBSDThierry Vignaud2020-04-291-0/+3
| | | | | | | | | | | | | | | | | | | because of: + cd / + cpio -pumdL /usr/home/cpansand/.cpan/build/2020042509/urpmi-v8.121.15-2/t/tmp/BUILDROOT/rpm-query-in-scriptlet-1-1.x86_64 cpio: Can't stat /bin/sh: cpio: Can't stat /usr/local/bin/rpm: 24035 blocks error: Bad exit status from /usr/home/cpansand/.cpan/build/2020042509/urpmi-v8.121.15-2/t/tmp/rpm-tmp.Q4A94o (%install) See related debuging in: http://www.cpantesters.org/cpan/report/e7284484-878b-11ea-a99d-f0811f24ea8f + grep / list + ls -l /usr/local/lib/libnss3.so /bin/sh /bin/sh: /lib/libedit.so.7 /lib/libc.so.7 /lib/libncursesw.so.9 /usr/local/bin/rpm /usr/local/bin/rpm: /usr/local/lib/librpm.so.9 /usr/local/lib/librpmio.so.9 /usr/local/lib/libdb-5.3.so.0 /usr/local/lib/libnss3.so /usr/lib/libbz2.so.4 /lib/libz.so.6 /usr/local/lib/libpopt.so.0 /usr/lib/liblzma.so.5 /usr/local/lib/libzstd.so.1 /usr/local/lib/liblua-5.2.so /lib/libm.so.5 /lib/libthr.so.3 /usr/local/lib/libintl.so.8 /lib/libc.so.7 /usr/local/lib/libnssutil3.so /usr/local/lib/libplc4.so /usr/local/lib/libplds4.so /usr/local/lib/libnspr4.so /usr/lib/libdl.so.1 ls: /bin/sh:: No such file or directory ls: /usr/local/bin/rpm:: No such file or directory error: Bad exit status from /usr/home/cpansand/.cpan/build/2020042520/urpmi-v8.121.17-2/t/tmp/rpm-tmp.GcQOIE (%install)
* split some variables for readabilityThierry Vignaud2020-04-291-1/+3
|
* cpan-testers: fix failing to build some rpms on FreeBSDThierry Vignaud2020-04-291-1/+3
| | | | | | | | | | | | | | | | | | | | | unset %__os_install_post fixes to fix FreeBSD failures (RT#131162) %__os_install_post cause build failures on FreeBSD due to rpm not being adapted: such as http://www.cpantesters.org/cpan/report/0a319070-86d8-11ea-a1f7-ec411f24ea8f: + /usr/local/lib/rpm/brp-compress /usr/local + /usr/local/lib/rpm/brp-strip /usr/bin/strip + /usr/local/lib/rpm/brp-strip-static-archive /usr/bin/strip xargs: illegal option -- d usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements] [-S replsize]] [-J replstr] [-L number] [-n number [-x]] [-P maxprocs] [-s size] [utility [argument ...]] error: Bad exit status from /usr/home/cpansand/.cpan/build/2020042509/urpmi-v8.121.15-0/t/tmp/rpm-tmp.P9J8JW (%install) Stripping also often fails on FreeBSD: /usr/bin/strip: unable to copy file '...BUILDROOT/arch_to_noarch-1-1.x86_64/usr/lib/test-arch_to_noarch/ldconfig' reason: Permission denied As a side effect, it also fixes: Error: Could not execute /usr/local/lib/rpm/elfdeps: file or directory not found
* check for genhdlist2 --help tooThierry Vignaud2020-04-291-0/+4
|
* cpan_testers: show verbosely why genhdlist2 do not workThierry Vignaud2020-04-291-0/+7
|
* split set_path()Thierry Vignaud2020-04-281-2/+1
|
* check & report where genhdlist2 isThierry Vignaud2020-04-281-0/+4
|
* 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-091-0/+1
| | | | | | | | | | | | 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)
* add testcase for bug #52105Anssi Hannula2009-07-071-1/+2
|
* - adapt tests to rpm 4.6:Pascal Rigaux2008-12-151-3/+0
| | | | | | | | o old suggests format is no more handled o buildroot handling changed o build directories for root changed - fix buildroot_default.spec: was broken since %{rpm_version} is not defined
* add a testcase for #45457Pascal Rigaux2008-11-141-1/+0
|
* test reconfig.urpmiPascal Rigaux2008-09-231-0/+3
|
* skip buildroot checks for rpm5.orgPer Øyvind Karlsen2008-03-011-1/+1
|
* do set _tmppathPascal Rigaux2008-02-041-1/+3
|
* use genhdlist2 and create xml info filesPascal Rigaux2008-01-151-3/+4
|
* - check "old suggests" are still handled.Pascal Rigaux2007-12-141-0/+3
| | | | | | ie RPMTAG_REQUIRENAME + RPMSENSE_MISSINGOK, instead of RPMTAG_SUGGESTSNAME (as done in SuSE and in Mandriva > 2008.0)
* use system_() from helper.pmPascal Rigaux2007-10-161-7/+2
|
* silence gendistribPascal Rigaux2007-09-101-1/+1
|
* re-sync after the big svn lossPascal Rigaux2007-04-241-12/+59
|
* add some *old* pkgs (from redhat 4.0) to test rpm&URPM handle it correctlyPascal Rigaux2006-12-011-4/+13
| | | | | so that bug #27263 won't happen again :)
* more tests, clean some others, enhance helper.pmPascal Rigaux2006-11-301-0/+8
|
* using --urpmi-root, create some tests using urpmi.addmedia, urpmi, urpmePascal Rigaux2006-11-301-0/+24
one drawback of the superuser--*.t is the need to be root (the rpmlib needs it to install in a root partition), so for now "make test" tests *.t but superuser--*.t are skipped. Then as root, run "sudo make test TEST_FILES='t/superuser--*.t'"