diff options
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 45 |
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 | ||
164 | asc:; ./mkasc.sh $(VERSION) | ||
165 | |||
164 | deb: dist | 166 | deb: dist |
165 | ./mkdeb.sh $(NAME) $(VERSION) | 167 | ./mkdeb.sh $(NAME) $(VERSION) |
166 | 168 | ||
@@ -173,9 +175,6 @@ install-snap: snap | |||
173 | test-compile: dist | 175 | test-compile: dist |
174 | cd test/compile; ./compile.sh $(NAME)-$(VERSION) | 176 | cd test/compile; ./compile.sh $(NAME)-$(VERSION) |
175 | 177 | ||
176 | test-root: | ||
177 | cd test/root; su -c ./root.sh | grep TESTING | ||
178 | |||
179 | .PHONY: rpms | 178 | .PHONY: rpms |
180 | rpms: | 179 | rpms: |
181 | ./platform/rpm/mkrpm.sh $(NAME) $(VERSION) | 180 | ./platform/rpm/mkrpm.sh $(NAME) $(VERSION) |
@@ -189,7 +188,19 @@ cppcheck: clean | |||
189 | scan-build: clean | 188 | scan-build: clean |
190 | scan-build make | 189 | scan-build make |
191 | 190 | ||
192 | asc:; ./mkasc.sh $(VERSION) | 191 | gcov-test-initialized: |
192 | ./gcov-test-init.sh | ||
193 | |||
194 | gcov: 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 | ||
194 | test-profiles: | 205 | test-profiles: |
195 | cd test/profiles; ./profiles.sh | grep TESTING | 206 | cd test/profiles; ./profiles.sh | grep TESTING |
@@ -218,21 +229,25 @@ test-filters: | |||
218 | test-arguments: | 229 | test-arguments: |
219 | cd test/arguments; ./arguments.sh | grep TESTING | 230 | cd test/arguments; ./arguments.sh | grep TESTING |
220 | 231 | ||
221 | test-network: | ||
222 | cd test/network; ./network.sh | grep TESTING | ||
223 | |||
224 | test-fs: | 232 | test-fs: |
225 | cd test/fs; ./fs.sh | grep TESTING | 233 | cd test/fs; ./fs.sh | grep TESTING |
226 | 234 | ||
227 | test: test-profiles test-fs test-utils test-environment test-apps test-apps-x11 test-apps-x11-xorg test-filters test-arguments | 235 | test: 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 | ||
230 | gcov-test-initialized: | 238 | # |
231 | ./gcov-test-init.sh | 239 | # individual tests, some of them requiring root access |
232 | 240 | # | |
233 | gcov: 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 | 243 | test-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 | ||
247 | test-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 |
251 | test-overlay: | ||
252 | cd test/overlay; ./overlay.sh | grep TESTING | ||
253 | |||