blob: d0b172b39e0a090b9f8f5f6ab3117c548f62a8b8 (
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
47
48
49
50
51
52
53
|
#!/bin/bash
set -e
export CFLAGS="-Werror"
export CC
# Standard build
for CC in gcc gcc-6 clang; do
mkdir build-${CC}; cd build-${CC}
if [ ${CC} == 'gcc-6' ]; then
build_opts='-D b_lundef=false'
else
build_opts=''
fi
meson ${build_opts} ../
ninja
sudo chown root:root util/fusermount3
sudo chmod 4755 util/fusermount3
ninja tests
cd ..
done
(cd build-$CC; sudo ninja install)
# Sanitized build
CC=clang
for san in undefined; do
mkdir build-${san}; cd build-${san}
# b_lundef=false is required to work around clang
# bug, cf. https://groups.google.com/forum/#!topic/mesonbuild/tgEdAXIIdC4
meson -D b_sanitize=${san} -D b_lundef=false ..
ninja
# Test as root and regular user
sudo ninja tests
sudo chown root:root util/fusermount3
sudo chmod 4755 util/fusermount3
ninja tests
cd ..
done
# Autotools build
CC=gcc
./makeconf.sh
./configure
make
sudo python3 -m pytest test/
sudo make install
# Documentation
doxygen doc/Doxyfile
|