On 13:37 Thu 08 Nov 2012, Rick "Zero_Chaos" Farina wrote: > On 11/08/2012 01:18 PM, Jeroen Roovers wrote: > > For a while I've been thinking that it would be sweet to feed all > > variants (enabled/disabled) of several USE flags to a script to automate > > testing with different USE flag combinations. > > > > USE=" x y" > > USE="-x y" > > USE=" x -y" > > USE="-x -y" > > > > This should be so simple to script but I can't figure out how to do it. > > Anyone have any ideas or a ready example script? > > if I'm not mistaken app-portage/tatt already can test all the possible > use flag combinations of a package. it sucks a little to use but it's > moderately functional.
It's used to write scripts for testing USE combinations and reverse dependencies and also for stabilizing. It can filter USE flags that are irrelevant like "linguas_*", etc. If 2^{number of flags} is too much it will give you a random subset, etc. It can grab the necessary information from bugzilla if you just give it a bugnumber and it can also do many packages in one run. The scripts are created using templates, so in principle it should be pretty flexible. I agree, it sucks a little, but contributions are welcome. Cheers, Thomas -- Thomas Kahle http://dev.gentoo.org/~tomka/
signature.asc
Description: Digital signature