forked from libfuse/libfuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
33 lines (25 loc) · 845 Bytes
/
Makefile.am
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
## Process this file with automake to produce Makefile.in
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = @subdirs2@ doc
EXTRA_DIST = \
fuse3.pc.in \
README* \
test/*.py \
test/pytest.ini
pkgconfigdir = @pkgconfigdir@
pkgconfig_DATA = fuse3.pc
$(pkgconfig_DATA): config.status
.PHONY: setuid_fusermount
setuid_fusermount:
@echo "Attempting to use sudo to make util/fusermount setuid root"
@echo "If this fails, set permissions manually and re-run make test"
test $$(ls -n util/fusermount3 | awk 'NR==1 {print $$3}') -eq 0 || \
sudo chown root util/fusermount3
test -u util/fusermount3 || \
sudo chmod u+s util/fusermount3
# If we are not root, util/fusermount needs to be setuid root
# for tests to work.
test_deps = $(shell [ "$${UID}" -eq 0 ] || echo setuid_fusermount)
.PHONY: test
test: all $(test_deps)
python3 -m pytest test/