76d0f3ca7c
Otherwise we fail like this on my Fedora 38 box: === RUN TestOverlay DetectQuirks: tmpfs detected, no extended attributes except acls will work. root_test.go:379: No user xattrs! overlay mount will likely fail. 15:15:57.957960 Unimplemented opcode OPCODE-51 root_test.go:398: mount: /tmp/gocryptfs-test-parent-0/3652394902/TestOverlay.2374697046.mnt/merged: wrong fs type, bad option, bad superblock on overlay, missing codepage or helper program, or other error. dmesg(1) may have more information after failed mount system call. root_test.go:399: exit status 32 --- FAIL: TestOverlay (0.04s) FAIL Also fix the messed-up DetectQuirks bit test.
59 lines
1.5 KiB
Makefile
59 lines
1.5 KiB
Makefile
.phony: build
|
|
build:
|
|
./build.bash
|
|
./Documentation/MANPAGE-render.bash
|
|
|
|
.phony: test
|
|
test:
|
|
./test.bash
|
|
|
|
.phony: root_test
|
|
root_test:
|
|
./build.bash
|
|
# Need to use TMPDIR=/var/tmp as TestOverlay fails on tmpfs.
|
|
cd tests/root_test && go test -c && sudo TMPDIR=/var/tmp ./root_test.test -test.v
|
|
|
|
.phony: format
|
|
format:
|
|
go fmt ./...
|
|
|
|
# Keep in sync with uninstall!
|
|
.phony: install
|
|
install:
|
|
install -Dm755 -t "$(DESTDIR)/usr/bin/" gocryptfs
|
|
install -Dm755 -t "$(DESTDIR)/usr/bin/" gocryptfs-xray/gocryptfs-xray
|
|
install -Dm644 -t "$(DESTDIR)/usr/share/man/man1/" Documentation/gocryptfs.1
|
|
install -Dm644 -t "$(DESTDIR)/usr/share/man/man1/" Documentation/gocryptfs-xray.1
|
|
install -Dm644 -t "$(DESTDIR)/usr/share/licenses/gocryptfs" LICENSE
|
|
|
|
.phony: uninstall
|
|
uninstall:
|
|
rm -f "$(DESTDIR)/usr/bin/gocryptfs"
|
|
rm -f "$(DESTDIR)/usr/bin/gocryptfs-xray"
|
|
rm -f "$(DESTDIR)/usr/share/man/man1/gocryptfs.1"
|
|
rm -f "$(DESTDIR)/usr/share/man/man1/gocryptfs-xray.1"
|
|
rm -f "$(DESTDIR)/usr/share/licenses/gocryptfs/LICENSE"
|
|
|
|
.phony: ci
|
|
ci:
|
|
uname -a ; go version ; openssl version
|
|
df -Th / /tmp /var/tmp
|
|
|
|
./build-without-openssl.bash
|
|
./build.bash
|
|
./test.bash
|
|
make root_test
|
|
./crossbuild.bash
|
|
|
|
echo "Rebuild with locked dependencies"
|
|
# Download dependencies to "vendor" directory
|
|
go mod vendor
|
|
# Delete global cache
|
|
go clean -modcache
|
|
# GOPROXY=off makes sure we fail instead of making network requests
|
|
# (we should not need any!)
|
|
# "-mod=vendor" is required for Go 1.13
|
|
GOPROXY=off ./build.bash -mod=vendor
|
|
# Delete "vendor" dir
|
|
rm -R vendor
|