blob: 95efbe78ed2b6f0a21f9b4e5a9926da8d6c05571 (
plain)
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
|
if [ ! -d "build" ]; then
mkdir build
fi
gcc -c -o "build/kit.o" "source/kit/_static.c"
ar rcs "build/libkit.a" "build/kit.o"
gcc -c -o "build/kit_test.o" "source/kit_test/_static.c"
ar rcs "build/libkit_test.a" "build/kit_test.o"
gcc -o "build/kit_test_suite" "source/tests/_static.c" -Lbuild -lkit -lkit_test
gcc -o "build/test_too_many_assertions" "source/tests/test_too_many_assertions.c" -Lbuild -lkit -lkit_test
gcc -o "build/test_too_many_tests" "source/tests/test_too_many_tests.c" -Lbuild -lkit -lkit_test
g++ -o "build/test_cpp" "source/tests/test_cpp.cpp" -Lbuild -lkit -lkit_test
g++ -o "build/test_signals" "source/tests/test_signals.cpp" -Lbuild -lkit -lkit_test
./build/kit_test_suite
./build/test_too_many_assertions --quiet
if [ $? -eq 0 ]; then
echo "too many assertions - OK"
else
echo "too many assertions - FAIL"
fi
./build/test_too_many_tests --quiet
if [ $? -eq 0 ]; then
echo "too many tests - OK"
else
echo "too many tests - FAIL"
fi
./build/test_cpp --quiet
if [ $? -eq 0 ]; then
echo "cpp - OK"
else
echo "cpp - FAIL"
fi
./build/test_signals --quiet
if [ $? -eq 0 ]; then
echo "signals - OK"
else
echo "signals - FAIL"
fi
|