aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-11-11 07:47:46 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-11-11 07:47:46 -0500
commita8b23c83998c7964f8898c39784ac186a0216c3f (patch)
treeeeccf98bab92b5b3818f0b30af688d736a92a599 /Makefile.in
parenttesting (diff)
downloadfirejail-a8b23c83998c7964f8898c39784ac186a0216c3f.tar.gz
firejail-a8b23c83998c7964f8898c39784ac186a0216c3f.tar.zst
firejail-a8b23c83998c7964f8898c39784ac186a0216c3f.zip
testing
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in45
1 files changed, 30 insertions, 15 deletions
diff --git a/Makefile.in b/Makefile.in
index 64970d4a5..03b6befbe 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -161,6 +161,8 @@ dist:
161 tar -cJvf $(NAME)-$(VERSION).tar.xz $(NAME)-$(VERSION) 161 tar -cJvf $(NAME)-$(VERSION).tar.xz $(NAME)-$(VERSION)
162 rm -fr $(NAME)-$(VERSION) 162 rm -fr $(NAME)-$(VERSION)
163 163
164asc:; ./mkasc.sh $(VERSION)
165
164deb: dist 166deb: dist
165 ./mkdeb.sh $(NAME) $(VERSION) 167 ./mkdeb.sh $(NAME) $(VERSION)
166 168
@@ -173,9 +175,6 @@ install-snap: snap
173test-compile: dist 175test-compile: dist
174 cd test/compile; ./compile.sh $(NAME)-$(VERSION) 176 cd test/compile; ./compile.sh $(NAME)-$(VERSION)
175 177
176test-root:
177 cd test/root; su -c ./root.sh | grep TESTING
178
179.PHONY: rpms 178.PHONY: rpms
180rpms: 179rpms:
181 ./platform/rpm/mkrpm.sh $(NAME) $(VERSION) 180 ./platform/rpm/mkrpm.sh $(NAME) $(VERSION)
@@ -189,7 +188,19 @@ cppcheck: clean
189scan-build: clean 188scan-build: clean
190 scan-build make 189 scan-build make
191 190
192asc:; ./mkasc.sh $(VERSION) 191gcov-test-initialized:
192 ./gcov-test-init.sh
193
194gcov: gcov-test-initialized
195 lcov --capture -d src/firejail -d src/firemon -d src/fseccomp -d src/fnet -d src/ftee -d src/lib -d src/firecfg --output-file gcov-file
196 rm -fr gcov-dir
197 genhtml gcov-file --output-directory gcov-dir
198
199
200#
201# make test
202#
203
193 204
194test-profiles: 205test-profiles:
195 cd test/profiles; ./profiles.sh | grep TESTING 206 cd test/profiles; ./profiles.sh | grep TESTING
@@ -218,21 +229,25 @@ test-filters:
218test-arguments: 229test-arguments:
219 cd test/arguments; ./arguments.sh | grep TESTING 230 cd test/arguments; ./arguments.sh | grep TESTING
220 231
221test-network:
222 cd test/network; ./network.sh | grep TESTING
223
224test-fs: 232test-fs:
225 cd test/fs; ./fs.sh | grep TESTING 233 cd test/fs; ./fs.sh | grep TESTING
226 234
227test: test-profiles test-fs test-utils test-environment test-apps test-apps-x11 test-apps-x11-xorg test-filters test-arguments 235test: test-profiles test-fs test-utils test-environment test-apps test-apps-x11 test-apps-x11-xorg test-filters test-arguments
228 echo "TEST COMPLETE" 236 echo "TEST COMPLETE"
229 237
230gcov-test-initialized: 238#
231 ./gcov-test-init.sh 239# individual tests, some of them requiring root access
232 240#
233gcov: gcov-test-initialized 241
234 lcov --capture -d src/firejail -d src/firemon -d src/fseccomp -d src/fnet -d src/ftee -d src/lib -d src/firecfg --output-file gcov-file 242# root access, network devices are created before the test
235 rm -fr gcov-dir 243test-network:
236 genhtml gcov-file --output-directory gcov-dir 244 cd test/network; ./network.sh | grep TESTING
245
246# all the tests are run as root
247test-root:
248 cd test/root; su -c ./root.sh | grep TESTING
237 249
238 \ No newline at end of file 250# runs as regular user
251test-overlay:
252 cd test/overlay; ./overlay.sh | grep TESTING
253