29 lines
530 B
Bash
Executable File
29 lines
530 B
Bash
Executable File
#!/bin/bash
|
|
|
|
source cycle_info.txt
|
|
test_folders=`ls -1 manual`
|
|
|
|
# find out how many testers
|
|
n_testers=0
|
|
while [ "x${testers[n_testers]}" != "x" ]
|
|
do
|
|
n_testers=$(( $n_testers+ 1 ))
|
|
done
|
|
|
|
|
|
function print_allocation()
|
|
{
|
|
tests=`ls -1p manual/$1 | grep -v /`
|
|
for test_name in $tests; do
|
|
echo "$2:$1/$test_name"
|
|
done
|
|
}
|
|
|
|
t_idx=0
|
|
for test_folder in $( ls -1 manual | shuf ); do
|
|
let "t_idx = $t_idx % $n_testers"
|
|
tester=${testers[t_idx]}
|
|
print_allocation $test_folder $tester
|
|
let "t_idx = $t_idx + 1"
|
|
done
|