let ntests=0

function add_test
{
	let ntests=$ntests+1
	nextTest "$1 | ./gen_reshuffle $ntests"
}

setGroup "0"
add_test "./gensample"
setGroup "1"
add_test "./genrand 10 7"
add_test "./genrand 10 5"
add_test "./genbinary 10"
add_test "./genstar 10"
add_test "./genrand 20 3"
add_test "./genbinary 20"
add_test "./genrand 20 20"
add_test "./genstar 18"
add_test "./gensquare 4 4"
setGroup "2"
add_test "./genrand 100 30"
add_test "./gensquare 8 12"
add_test "./genstar 99"
add_test "./genrand 1000 1"
add_test "./gendandelion 300 700"
add_test "./gen2chain 1000"
add_test "./genrand 1000 300"
add_test "./genrand 1000 1000"
add_test "./genbinary 1000"
add_test "./genrand 500 30 | ./adddandelions 500 100 10"
add_test "./genrand 500 3 | ./adddandelions 500 100 10"
add_test "./genrand 500 1 | ./adddandelions 500 100 10"
add_test "./genstar 500 | ./adddandelions 500 100 10"
add_test "./genbinary 500 | ./adddandelions 500 100 10"
setGroup "3"
add_test "./genbinary 54321"
add_test "./genbinary 10000"
add_test "./genbinary 100000"
add_test "./genrand_binary_small 100000 20 1"
add_test "./genrand_binary_small 100000 20 2"
add_test "./genrand_binary_small 100000 20 3"
add_test "./genrand_binary_small 99093 20 1"
add_test "./genrand_binary_small 78590 20 2"
add_test "./genrand_binary_small 51209 20 3"
setGroup "4"
add_test "./gen2chain 10000"
add_test "./gensquare 3 30000"
add_test "./gen2chain 100000"
add_test "./genrand_binary 100000 100000"
add_test "./genrand_binary 100000 10000"
add_test "./genrand_binary 100000 1000"
add_test "./genrand_binary 100000 100"
add_test "./genrand_binary 100000 10"
add_test "./genrand_binary 100000 3"
setGroup "5"
add_test "./gendandelion 35 99000"
add_test "./genstar 10000"
add_test "./gensquare 999 10"
add_test "./genstar 100000"
add_test "./genrand_small 100000 20 1"
add_test "./genrand_small 100000 20 2"
add_test "./genrand_small 100000 20 3"
add_test "./genrand_small 100000 3 1"
add_test "./genrand_small 100000 3 2"
add_test "./genrand_small 100000 3 3"
setGroup "6"
add_test "./genrand 5000 1000"
add_test "./genrand 10000 1000"
add_test "./genrand 10000 10000"
add_test "./genrand 10000 30"
add_test "./genrand 10000 3"
add_test "./genrand 10000 1"
add_test "./gendandelion 3000 7000"
add_test "./gensquare 10 999"
add_test "./gensquare 100 99"
add_test "./genrand 100000 1000"
add_test "./genrand 100000 10000"
add_test "./genrand 100000 100000"
add_test "./genrand 100000 30"
add_test "./genrand 100000 3"
add_test "./genrand 100000 1"
add_test "./gendandelion 30000 70000"
add_test "./genstar 50000 | ./adddandelions 50000 10000 1000"
add_test "./gen2chain 50000 | ./adddandelions 50000 10000 1000"
add_test "./genrand 50000 1 | ./adddandelions 50000 10000 1000"
add_test "./genrand 50000 50000 | ./adddandelions 50000 10000 1000"
add_test "./genrand 50000 300 | ./adddandelions 50000 10000 1000"
add_test "./genrand 50000 1000 | ./adddandelions 50000 25000 0"
add_test "./genrand 50000 2000 | ./adddandelions 50000 2000 300"
add_test "./gensquare 10 9999"
add_test "./gensquare 9999 10"
add_test "./gensquare 30000 3"
add_test "./gensquare 300 299"
add_test "./gensquare 100 999"
add_test "./gensquare 10 4999 | ./adddandelions 50000 10000 1000"
add_test "./gensquare 4999 10 | ./adddandelions 50000 10000 1000"
add_test "./gensquare 10000 3 | ./adddandelions 69999 10000 1000"
add_test "./gensquare 100 299 | ./adddandelions 70000 10000 1000"
add_test "./gensquare 50 999 | ./adddandelions 50000 10000 1000"
add_test "./genbinary 100000"
add_test "./genbinary 50000 | ./adddandelions 50000 10000 1000"
