From 2e5909e761f40e42684fbaa71f3b5bcb49500567 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Sat, 23 Oct 2021 12:52:42 -0400 Subject: move all files to EndoForge --- test/Makefile | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 test/Makefile (limited to 'test/Makefile') diff --git a/test/Makefile b/test/Makefile deleted file mode 100644 index 3bc1a66..0000000 --- a/test/Makefile +++ /dev/null @@ -1,38 +0,0 @@ -.DEFAULT_GOAL = test - -include ../Makefile - -testuser = testuser - -SU = $(SUDO) su - -.PHONY: test useradd cleanuser - -useradd: - $(SUDO) useradd $(testuser) --shell /bin/bash --create-home - $(SU) - $(testuser) -c 'ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N ""' - $(SU) - $(testuser) -c 'git config --global user.name $(testuser)' - $(SU) - $(testuser) -c 'git config --global user.email $(testuser)' - -test: $(shell getent passwd $(testuser) >/dev/null || echo useradd) - $(ROOT_INSTALL) -t ~$(testuser) tests.sh - $(SU) - $(testuser) -c ./tests.sh - -ifeq ($(testuser),) -$(error testuser not defined) -endif -cleanuser_command = $(SUDO) rm -I -r ~$(testuser) - -cleanuser: - : Preparing to run destructive command: - : - : - : $(cleanuser_command) - : - : - : Press ctrl-c to abort. - : - @for n in 5 4 3 2 1; do printf ' %d\r' "$$n"; sleep 1; done - $(cleanuser_command) || true - $(SUDO) userdel testuser || true - -- cgit v1.2.3