Generate test cases like this: $ ./generate_testcases.sh Test a specific case like that: $ ./check.sh source pkgc:i386 none all none allowed depends pkgb:any Check all cases: $ ./generate_testcases.sh | while read a b c d e f g h; do ./check.sh $a $b $c $d $e $f $g $h 2>/dev/null; done Or in parallel: $ ./generate_testcases.sh | xargs --max-procs=8 --max-lines=1 ./check.sh 2>/dev/null