File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,12 @@ case $TEST_SUITE in
12
12
cd dev/tests/integration
13
13
14
14
test_set_list=$( find testsuite/* -maxdepth 1 -mindepth 1 -type d | sort)
15
- test_set_size=$(( $(printf "$test_set_list " | wc - l)/ INTEGRATION_SETS))
15
+ test_set_count=$( printf " $test_set_list " | wc -l)
16
+ test_set_size[1]=$( printf " %.0f" $( echo " $test_set_count *0.15" | bc) )
17
+ test_set_size[2]=$( printf " %.0f" $( echo " $test_set_count *0.3" | bc) )
18
+ test_set_size[3]=$( printf " %.0f" $( echo " $test_set_count *0.55" | bc) )
16
19
17
- echo " ==> preparing integration testsuite on index $INTEGRATION_INDEX with set size of $test_set_size "
20
+ echo " ==> preparing integration testsuite on index $INTEGRATION_INDEX with set size of ${ test_set_size[$INTEGRATION_INDEX]} "
18
21
cp phpunit.xml.dist phpunit.xml
19
22
20
23
# remove memory usage tests if from any set other than the first
@@ -35,7 +38,7 @@ case $TEST_SUITE in
35
38
fi
36
39
37
40
i=$(( i+ 1 ))
38
- if [ $i -eq $test_set_size ] && [ $j -lt $INTEGRATION_SETS ]; then
41
+ if [ $i -eq ${ test_set_size[$j]} ] && [ $j -lt $INTEGRATION_SETS ]; then
39
42
j=$(( j+ 1 ))
40
43
i=0
41
44
fi
You can’t perform that action at this time.
0 commit comments