Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 36390

Summary: usetest-0.1.ebuild (New Package)
Product: Portage Development Reporter: Atzm Watanabe <atzm>
Component: Third-Party ToolsAssignee: Portage Tools Team <tools-portage>
Severity: enhancement CC: atzm
Priority: High Keywords: EBUILD
Version: unspecified   
Hardware: All   
OS: All   
Package list:
Runtime testing required: ---
Attachments: usetest-0.1.ebuild
diff for URL change
`calls emerge' type
`calls doebuild' type

Description Atzm Watanabe 2003-12-23 13:35:26 UTC

usetest is a tester for ebuild file in all USE flag patterns.
For example, if ebuildfile has IUSE="cjk nls" variables,
usetest lets run following commands:

  USE=" cjk  nls" emerge =ebuildname-version
  USE="-cjk  nls" emerge =ebuildname-version
  USE=" cjk -nls" emerge =ebuildname-version
  USE="-cjk -nls" emerge =ebuildname-version

Thus, usetest can test ebuild automatically. 

Thank you,
Comment 1 Atzm Watanabe 2003-12-23 13:36:36 UTC
Created attachment 22594 [details]
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2004-01-08 18:50:07 UTC
something for the new gentoolkit-dev
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2004-10-06 13:49:01 UTC
Seems that the URL is dead
Comment 4 Atzm Watanabe 2004-10-06 18:29:20 UTC
URL has moved.
also SRC_URI has moved too, so I attach a diff for ebuild.
Comment 5 Atzm Watanabe 2004-10-06 18:30:12 UTC
Created attachment 41253 [details, diff]
diff for URL change
Comment 6 Atzm Watanabe 2004-10-07 04:19:57 UTC
homepage is living. not CANTFIX... :(
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2004-10-07 05:58:12 UTC
Ok, I see a few problems with it:
- no copyright information (GPL, public domain, ...)
- depends on ruby, shouldn't be a big problem to rewrite that part in python
- 'grep IUSE ${EBUILD}' will miss flags if eclasses modify IUSE or IUSE spans more than one line
The idea is good but the implementation needs to be improved.
Comment 8 Atzm Watanabe 2004-10-09 06:18:59 UTC
I see.
I intend to distribute this under the GPL-2, I'll also specify it in source code.

I'll post again after fix those problems and rewrite in Python or Bash.
Thank you for your comments.
Comment 9 Atzm Watanabe 2004-10-12 03:37:54 UTC
Rewritten in Python with my friend together.
This version has two type. one is calling emerge using os.system. Its character is:
 * can test completely.
 * may be break test environment because it does `merge' also (but may be able to avoid using --buildpkgonly and --oneshot).

Other one is calling portage.doebuild. Its character is:
 * cannot control output from doebuild, from this script.
 * cannot test `postinst' and etc. because it does only `clean', `setup', `unpack', `compile' and `install' (for the meantime).
 * can keep test environment.

which is better?
Comment 10 Atzm Watanabe 2004-10-12 03:39:08 UTC
Created attachment 41606 [details]
`calls emerge' type
Comment 11 Atzm Watanabe 2004-10-12 03:39:44 UTC
Created attachment 41607 [details]
`calls doebuild' type
Comment 12 Marius Mauch (RETIRED) gentoo-dev 2004-12-08 04:29:58 UTC
Well, packages won't get picked up by portage or the package if they aren't merged so just installing the potential deps into $D isn't enough. This should be used in  a chroot anyway, so merging isn't really a big issue. I'll check it in more detail later.
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2007-12-27 14:18:48 UTC
See app-portage/gatt-svn. If you have suggestions wrt gatt, file a bug for the maintainer. 

Closing this bug as it's dead, thanks.