-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_tests.sh
executable file
·59 lines (50 loc) · 2.23 KB
/
run_tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
echo -e "Teste base:\n"
for counter in {1..5001..10}; do
if [ $(((counter - 1)%100)) = $((0)) ]; then
echo -e '\e[1A\e[K'$((counter-1))'/5000'
fi
./bin/testing.out --test_base -n $((counter)) --find_first_fit
./bin/testing.out --test_base -n $((counter)) --find_worst_fit
./bin/testing.out --test_base -n $((counter)) --find_null
./bin/testing.out --test_base --std -n $((counter))
done
echo -e "\nTeste de alocação e desalocação:\n"
for counter in {1..5001..10}; do
if [ $(((counter - 1)%100)) = $((0)) ]; then
echo -e '\e[1A\e[K'$((counter-1))'/5000'
fi
./bin/testing.out --test_malloc_free -n $((counter)) --find_first_fit
./bin/testing.out --test_malloc_free -n $((counter)) --find_worst_fit
./bin/testing.out --test_malloc_free -n $((counter)) --find_null
./bin/testing.out --test_malloc_free --std -n $((counter))
done
echo -e "\nTeste de alocação:\n"
for counter in {1..5001..10}; do
if [ $(((counter - 1)%100)) = $((0)) ]; then
echo -e '\e[1A\e[K'$((counter-1))'/5000'
fi
./bin/testing.out --test_alloc -n $((counter)) --find_first_fit
./bin/testing.out --test_alloc -n $((counter)) --find_worst_fit
./bin/testing.out --test_alloc -n $((counter)) --find_null
./bin/testing.out --test_alloc --std -n $((counter))
done
echo -e "\nTeste de sobreposição:\n"
for counter in {1..5001..10}; do
if [ $(((counter - 1)%100)) = $((0)) ]; then
echo -e '\e[1A\e[K'$((counter-1))'/5000'
fi
./bin/testing.out --test_overlap -n $((counter)) --find_first_fit
./bin/testing.out --test_overlap -n $((counter)) --find_worst_fit
./bin/testing.out --test_overlap -n $((counter)) --find_null
./bin/testing.out --test_overlap --std -n $((counter))
done
echo -e "\nTeste de sobreposição intensivo:\n"
for counter in {1..501..10}; do
if [ $(((counter - 1)%100)) = $((0)) ]; then
echo -e '\e[1A\e[K'$((counter-1))'/500'
fi
./bin/testing.out --test_intensive_overlap -n $((counter)) --find_first_fit
./bin/testing.out --test_intensive_overlap -n $((counter)) --find_worst_fit
./bin/testing.out --test_intensive_overlap -n $((counter)) --find_null
./bin/testing.out --test_intensive_overlap --std -n $((counter))
done