-
Notifications
You must be signed in to change notification settings - Fork 2
/
test-depsym.sh
executable file
·99 lines (79 loc) · 2.52 KB
/
test-depsym.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/bin/sh
#
# Autor: Stanislav Nechutný (xnechu01)
# Název: 1. projekt IOS na FIT VUT - Test
# Repozitář: [email protected]:nechutny/VUT-IOS-1.projekt---Test.git
#
echo "POZOR: jelikož není v grafu dáno pořadí, tak se na výsledku volá sort pro standardizaci výstupu a jeho lepší testovatelnost";
echo "[Test 31] objects/*.o"
./depsym.sh ./objects/*.o | sort > test/test_31.output
diff test/test_31.test test/test_31.output
if [ "$?" = "0" ]; then
echo " ... OK";
rm test/test_31.output;
else
echo " ... Chyba";
fi
echo "[Test 32] -g objects/*.o"
./depsym.sh -g ./objects/*.o | sort > test/test_32.output
diff test/test_32.test test/test_32.output
if [ "$?" = "0" ]; then
echo " ... OK";
rm test/test_32.output;
else
echo " ... Chyba";
fi
echo "[Test 33] -g -r buffer.o objects/*.o"
./depsym.sh -g -r buffer.o ./objects/*.o | sort > test/test_33.output
diff test/test_33.test test/test_33.output
if [ "$?" = "0" ]; then
echo " ... OK";
rm test/test_33.output;
else
echo " ... Chyba";
fi
echo "[Test 34] -g -d buffer.o objects/*.o"
./depsym.sh -g -d buffer.o ./objects/*.o | sort > test/test_34.output
diff test/test_34.test test/test_34.output
if [ "$?" = "0" ]; then
echo " ... OK";
rm test/test_34.output;
else
echo " ... Chyba";
fi
echo "[Test 35] -r buffer.o objects/*.o"
./depsym.sh -r buffer.o ./objects/*.o | sort > test/test_35.output
diff test/test_35.test test/test_35.output
if [ "$?" = "0" ]; then
echo " ... OK";
rm test/test_35.output;
else
echo " ... Chyba";
fi
echo "[Test 36] -d buffer.o objects/*.o"
./depsym.sh -d buffer.o ./objects/*.o | sort > test/test_36.output
diff test/test_36.test test/test_36.output
if [ "$?" = "0" ]; then
echo " ... OK";
rm test/test_36.output;
else
echo " ... Chyba";
fi
echo "[Test 37] -g objects/tag.o objects/syntax.o objects/spell.o objects/menu.o objects/ui.o objects/screen.o"
./depsym.sh -g objects/tag.o objects/syntax.o objects/spell.o objects/menu.o objects/ui.o objects/screen.o| sort > test/test_37.output
diff test/test_37.test test/test_37.output
if [ "$?" = "0" ]; then
echo " ... OK";
rm test/test_37.output;
else
echo " ... Chyba";
fi
echo "[Test 38] -g -d syntax.o objects/tag.o objects/syntax.o objects/spell.o objects/menu.o objects/ui.o objects/screen.o"
./depsym.sh -g -d syntax.o objects/tag.o objects/syntax.o objects/spell.o objects/menu.o objects/ui.o objects/screen.o| sort > test/test_38.output
diff test/test_38.test test/test_38.output
if [ "$?" = "0" ]; then
echo " ... OK";
rm test/test_38.output;
else
echo " ... Chyba";
fi