summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2021-10-23 12:45:43 -0400
committerAndrew Cady <d@cryptonomic.net>2021-10-23 12:45:43 -0400
commitd62afec285253371c975f95366e5bf110ff2a3ff (patch)
treee7edda63aaa7f113707579b946b8b616aec49069
parentc5ef72305a497354b091dc7483282501319edaf2 (diff)
move more files out of /
-rw-r--r--Makefile6
-rw-r--r--test/Makefile (renamed from tests.makefile)8
-rw-r--r--test/tests.sh (renamed from src/tests.sh)0
3 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 785c4ac..d3346ed 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ SSHD_CONFIG_DIR = $(SSH_CONFIG_DIR)/sshd_config.d
13SSH_LIB_DIR = /usr/lib/ssh 13SSH_LIB_DIR = /usr/lib/ssh
14USER_SSH_CONFIG_DIR = ~$(USER)/.ssh 14USER_SSH_CONFIG_DIR = ~$(USER)/.ssh
15 15
16.PHONY: install shared doc 16.PHONY: install shared doc test
17 17
18shared: install 18shared: install
19 git config core.self-forge true 19 git config core.self-forge true
@@ -29,7 +29,9 @@ install:
29 [ -e "$(SSH_LIB_DIR)"/AuthorizedKeysCommand ] || $(SUDO) ln -s -t /etc/ssh "$(SSH_LIB_DIR)"/AuthorizedKeysCommand 29 [ -e "$(SSH_LIB_DIR)"/AuthorizedKeysCommand ] || $(SUDO) ln -s -t /etc/ssh "$(SSH_LIB_DIR)"/AuthorizedKeysCommand
30 30
31doc: README.html 31doc: README.html
32
32README.html: README.md 33README.html: README.md
33 pandoc -t html $< > $@ 34 pandoc -t html $< > $@
34 35
35include tests.makefile 36test:
37 make -C test
diff --git a/tests.makefile b/test/Makefile
index 81c9312..3bc1a66 100644
--- a/tests.makefile
+++ b/test/Makefile
@@ -1,3 +1,7 @@
1.DEFAULT_GOAL = test
2
3include ../Makefile
4
1testuser = testuser 5testuser = testuser
2 6
3SU = $(SUDO) su 7SU = $(SUDO) su
@@ -10,8 +14,8 @@ useradd:
10 $(SU) - $(testuser) -c 'git config --global user.name $(testuser)' 14 $(SU) - $(testuser) -c 'git config --global user.name $(testuser)'
11 $(SU) - $(testuser) -c 'git config --global user.email $(testuser)' 15 $(SU) - $(testuser) -c 'git config --global user.email $(testuser)'
12 16
13test: install $(shell getent passwd $(testuser) >/dev/null || echo useradd) 17test: $(shell getent passwd $(testuser) >/dev/null || echo useradd)
14 $(ROOT_INSTALL) -t ~$(testuser) $(SRC)/tests.sh 18 $(ROOT_INSTALL) -t ~$(testuser) tests.sh
15 $(SU) - $(testuser) -c ./tests.sh 19 $(SU) - $(testuser) -c ./tests.sh
16 20
17ifeq ($(testuser),) 21ifeq ($(testuser),)
diff --git a/src/tests.sh b/test/tests.sh
index 5d221b6..5d221b6 100644
--- a/src/tests.sh
+++ b/test/tests.sh