blob: 4402373757cf719e3814b181efc3d3d639a7c056 (
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
|
#!/bin/bash
export XOPT XDEFS
XOPT="-ggdb -O2 -fomit-frame-pointer -DDELAY_BETWEEN_TESTS=0"
XDEFS=""
function clean() {
make clean > /dev/null
}
function compile() {
echo -n " * Building..."
if ! make > buildlog.txt
then
echo "failed"
clean
exit
fi
echo "OK"
}
function execute_test() {
echo -n " * Testing..."
if ! ./ch > testlog.txt
then
echo "failed"
clean
exit
fi
echo "OK"
clean
}
echo "Default maximum settings"
compile
execute_test
|