Gentoo Archives: gentoo-proxy-maint

From: Joonas Niilola <juippis@g.o>
To: gentoo-proxy-maint@l.g.o
Subject: Re: [gentoo-proxy-maint] Testing environment
Date: Fri, 22 May 2020 13:17:34
Message-Id: de700f27-8851-72a1-ed7c-ef1c197e9c62@gentoo.org
In Reply to: [gentoo-proxy-maint] Testing environment by David Denoncin
1 Hey,
2
3 On 5/22/20 9:17 AM, David Denoncin wrote:
4 > Dear all,
5 >
6 > I would like to understand how to set up an acceptable testing environment for amd64 packages as per
7 > https://wiki.gentoo.org/wiki/Package_testing
8 >
9 > and would like to go the chroot way. Is the following setup acceptable
10 > to test an ebuild for pkg-cat/pkg-name ?
11
12 If you have no plans to keep on contributing, but want to test just one
13 change/ebuild, you can do that in a local overlay and by prepending
14 those settings to your emerge once. Setting up a chroot, container/etc
15 is time-consuming and in my opinion not worth it for a single package.
16 However if you intend to keep on writing ebuilds, then go for it, but
17 bear in mind you have then two "systems" to keep updated.
18
19 You may also be interested in dev-python/ebuildtester for random
20 occassional, but thorough testings.
21
22 >
23 > 1- download stage3, unpack it in /mnt/gentoo
24 > 2- chroot in /mnt/gentoo
25 > 3- emerge --sync, select stable profile default/linux/amd64/17.1
26 > 4- update the @world set
27 > 5- add to make.conf the variables from https://wiki.gentoo.org/wiki/Package_testing (with multilib-strict added to FEATURES)
28
29 Note that if you plan on keeping the chroot alive, these will become
30 your default settings when you update @world, or emerge dependencies.
31 Which will most likely become a painful road.
32
33 I have a "testmerge.sh" shell script that runs "emerge -1av --onlydeps
34 --with-test-deps "$@"", then sources a different make.conf (with
35 stricter FEATURES etc) before running "emerge -1av "$@"".
36
37
38 > 6- emerge portage with the gentoo_dev use flag
39 > 7- emerge pkg-cat/pkg-name (ebuild test)
40 > 8- runtime test the package if needed
41 >
42 > I'm happy to amend the above checklist however appropriate and
43 > contribute to the wikipage related to chroot.
44 >
45 > Thanks in advance,
46 > Best regards,
47 > David Denoncin.
48
49
50 Overall sounds good.
51
52 -- juippis

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-proxy-maint] Testing environment David Denoncin <ddenoncin@×××××.com>