aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtest/compile/compile.sh130
-rw-r--r--todo12
2 files changed, 135 insertions, 7 deletions
diff --git a/test/compile/compile.sh b/test/compile/compile.sh
new file mode 100755
index 000000000..f4440e321
--- /dev/null
+++ b/test/compile/compile.sh
@@ -0,0 +1,130 @@
1#!/bin/bash
2
3arr[1]="TEST 1: standard compilation"
4arr[2]="TEST 2: compile seccomp disabled"
5arr[3]="TEST 3: compile chroot disabled"
6arr[4]="TEST 4: compile bind disabled"
7
8
9# remove previous reports and output file
10cleanup() {
11 rm -f report*
12 rm -fr firejail
13}
14
15print_title() {
16 echo
17 echo
18 echo
19 echo "**************************************************"
20 echo $1
21 echo "**************************************************"
22}
23
24while [ $# -gt 0 ]; do # Until you run out of parameters . . .
25 case "$1" in
26 --clean)
27 cleanup
28 exit
29 ;;
30 --help)
31 echo "./autotest.sh [--clean|--help]"
32 exit
33 ;;
34 esac
35 shift # Check next set of parameters.
36done
37
38cleanup
39# enable sudo
40sudo ls -al
41
42#*****************************************************************
43# TEST 1
44#*****************************************************************
45# - checkout source code
46# - check compilation
47# - install
48#*****************************************************************
49print_title "${arr[1]}"
50git clone https://github.com/netblue30/firejail.git
51cd firejail
52./configure --prefix=/usr --enable-fatal-warnings 2>&1 | tee ../output-configure
53make -j4 2>&1 | tee ../output-make
54sudo make install 2>&1 | tee ../output-install
55cd ..
56grep Warning output-configure output-make output-install > ./report-test1
57grep Error output-configure output-make output-install >> ./report-test1
58rm output-configure output-make output-install
59
60
61#*****************************************************************
62# TEST 2
63#*****************************************************************
64# - disable seccomp configuration
65# - check compilation
66#*****************************************************************
67print_title "${arr[2]}"
68# seccomp
69cd firejail
70make distclean
71./configure --prefix=/usr --disable-seccomp --enable-fatal-warnings 2>&1 | tee ../output-configure
72make -j4 2>&1 | tee ../output-make
73cd ..
74grep Warning output-configure output-make > ./report-test2
75grep Error output-configure output-make >> ./report-test2
76rm output-configure output-make
77
78#*****************************************************************
79# TEST 3
80#*****************************************************************
81# - disable chroot configuration
82# - check compilation
83#*****************************************************************
84print_title "${arr[3]}"
85# seccomp
86cd firejail
87make distclean
88./configure --prefix=/usr --disable-chroot --enable-fatal-warnings 2>&1 | tee ../output-configure
89make -j4 2>&1 | tee ../output-make
90cd ..
91grep Warning output-configure output-make > ./report-test3
92grep Error output-configure output-make >> ./report-test3
93rm output-configure output-make
94
95#*****************************************************************
96# TEST 4
97#*****************************************************************
98# - disable bindconfiguration
99# - check compilation
100#*****************************************************************
101print_title "${arr[3]}"
102# seccomp
103cd firejail
104make distclean
105./configure --prefix=/usr --disable-bind --enable-fatal-warnings 2>&1 | tee ../output-configure
106make -j4 2>&1 | tee ../output-make
107cd ..
108grep Warning output-configure output-make > ./report-test4
109grep Error output-configure output-make >> ./report-test4
110rm output-configure output-make
111
112
113#*****************************************************************
114# PRINT REPORTS
115#*****************************************************************
116echo
117echo
118echo
119echo
120echo "**********************************************************"
121echo "TEST RESULTS"
122echo "**********************************************************"
123
124wc -l report-test*
125echo
126
127
128
129
130exit
diff --git a/todo b/todo
index e63005e1d..e87280f5e 100644
--- a/todo
+++ b/todo
@@ -66,13 +66,6 @@ socat UNIX-LISTEN:/tmp/mysoc,fork ABSTRACT-CONNECT:/tmp/dbus-awBoQTCc &
66in sandbox 66in sandbox
67socat ABSTRACT-LISTEN:/tmp/dbus-awBoQTCc,fork UNIX-CONNECT:/tmp/mysock 67socat ABSTRACT-LISTEN:/tmp/dbus-awBoQTCc,fork UNIX-CONNECT:/tmp/mysock
68 68
6911. autotest for config options:
70
71./configure --enable-fatal-warnings --prefix=/usr
72./configure --enable-fatal-warnings --disable-seccomp --prefix=/usr
73./configure --enable-fatal-warnings --disable-chroot --prefix=/usr
74./configure --enable-fatal-warnings --disable-bind --prefix=/usr
75
7612. do not allow symlinks for --bind 6912. do not allow symlinks for --bind
77 70
7813. While using --net=eth0 assign the name of the interface inside the sandbox as eth0 7113. While using --net=eth0 assign the name of the interface inside the sandbox as eth0
@@ -124,3 +117,8 @@ http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_2
12422. Fix manpage: 11722. Fix manpage:
125W: firejail: manpage-has-errors-from-man usr/share/man/man5/firejail-profile.5.gz 84: `\ ' is not allowed in an escape name 118W: firejail: manpage-has-errors-from-man usr/share/man/man5/firejail-profile.5.gz 84: `\ ' is not allowed in an escape name
126if building a 32bit package, rename the deb file manually 119if building a 32bit package, rename the deb file manually
120
12123. transmission-gtk when using tracelog:
122
123Dec 12 07:32:36 debian kernel: [ 1564.772297] transmission-gt[3680]: segfault at 0 ip 00007f44ba515348
124sp 00007ffee7154288 error 4 in libc-2.13.so[7f44ba400000+