mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-26 14:56:33 +00:00
be911b1e16
this new "flavor" of tomb uses veracrypt for mounted volumes and POSIX sh only for its scripting, is a work in progress and still lacks full functionality, but provides a proof-of-concept to be developed further if needs arise.
48 lines
1.6 KiB
Makefile
48 lines
1.6 KiB
Makefile
.PHONY: test
|
|
|
|
system := $(shell uname -s)
|
|
# if [ ${system} == "FreeBSD" ]; then sudo kldload fusefs; fi
|
|
|
|
TOMB ?= test.tomb
|
|
|
|
#########
|
|
## BUILD
|
|
#########
|
|
all:
|
|
${CC} -O2 -Wall -Wextra --std=c99 --pedantic -o tomb-str2size strtosize.c
|
|
|
|
########
|
|
## TEST
|
|
########
|
|
create-open-close:
|
|
TOMB=${TOMB} ./test/bats/bin/bats ./test/create_open_close.bats
|
|
chmod a+r ${TOMB}
|
|
|
|
# arg: TOMB='path to tomb containing random.data'
|
|
# assumes $TOMB.hash is the pre-calculated hash on creation
|
|
check-random-data:
|
|
TOMB=${TOMB} ./test/bats/bin/bats test/check-random-data.bats
|
|
|
|
########
|
|
## LINT
|
|
########
|
|
shellcheck:
|
|
shellcheck -s sh tomb -e SC2006,SC2059,SC2034
|
|
|
|
########
|
|
## DEPS
|
|
########
|
|
download-deps-ubuntu22:
|
|
curl https://files.dyne.org/tomb3/third-party/veracrypt-ubuntu22-amd64 -o /usr/local/bin/veracrypt && chmod +x /usr/local/bin/veracrypt
|
|
curl https://files.dyne.org/zenroom/nightly/zenroom-linux-amd64 -o /usr/local/bin/zenroom && chmod +x /usr/local/bin/zenroom
|
|
|
|
download-deps-ubuntu20:
|
|
curl https://files.dyne.org/tomb3/third-party/veracrypt-ubuntu20-amd64 -o /usr/local/bin/veracrypt && chmod +x /usr/local/bin/veracrypt
|
|
curl https://files.dyne.org/zenroom/nightly/zenroom-linux-amd64 -o /usr/local/bin/zenroom && chmod +x /usr/local/bin/zenroom
|
|
|
|
download-deps-freebsd13:
|
|
curl https://files.dyne.org/tomb3/third-party/veracrypt-freebsd13-amd64 -o /usr/local/bin/veracrypt && chmod +x /usr/local/bin/veracrypt
|
|
curl https://files.dyne.org/tomb3/third-party/zenroom-freebsd13-amd64 -o /usr/local/bin/zenroom && chmod +x /usr/local/bin/zenroom
|
|
|
|
#curl https://files.dyne.org/zenroom/nightly/zenroom-freebsd13-amd64 -o /usr/local/bin/zenroom && chmod +x /usr/local/bin/zenroom
|