aboutsummaryrefslogtreecommitdiff
path: root/build_and_test.sh
blob: 43c6308c525d36ca81a2673ba003c2a6d0e29466 (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
#!/bin/bash

set -e

j=3

printf "gcc build\n"
git clean -fdx 2>&1
export CC=gcc
./autogen.sh
./configure
make -j$j

printf "\nunit test\n"
cd libinotifytools/src/
make -j$j test
./test
cd -

printf "\nintegration test\n"
cd t
make -j$j
cd -

printf "\nclang build\n"
git clean -fdx 2>&1
export CC=clang
./autogen.sh
./configure
make -j$j

printf "\nunit test\n"
cd libinotifytools/src/
make -j$j test
./test
cd -

printf "\nintegration test\n"
cd t
make -j$j