aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 29705dc..4f5ef58 100644
--- a/Makefile
+++ b/Makefile
@@ -77,6 +77,7 @@ sample-malcontent:
"$$(realpath $@)" | \
make -C subrepos/hydrilla shell-with-hydrilla-only
+HYDRILLABUGS_HTML_DIR = $(TEST_ROOT_DIR)/var/www/hydrillabugs.koszko.org/html
LETSENCRYPT_ETC_DIR = $(TEST_ROOT_DIR)/etc/letsencrypt
EXIM_ETC_DIR = $(TEST_ROOT_DIR)/etc/exim
DOVECOT_ETC_DIR = $(TEST_ROOT_DIR)/etc/dovecot
@@ -110,11 +111,21 @@ prepare-test-root: sample-malcontent
hydrillarepos.koszko.org/html \
hydrilla.koszko.org/html/downloads \
hydrillarepos.koszko.org/html \
+ hydrillabugs.koszko.org/html \
; do \
mkdir -p $(TEST_ROOT_DIR)/var/www/"$$WWW_SUBDIR"; \
printf 'This is dummy file for %s :D\n' "$$WWW_SUBDIR" \
> $(TEST_ROOT_DIR)/var/www/"$$WWW_SUBDIR"/index.html; \
done
+ printf '/index /index.html\n' > $(HYDRILLABUGS_HTML_DIR)/uri-map.txt
+ mkdir -p $(HYDRILLABUGS_HTML_DIR)/javascripts
+ printf 'console.log("dummy js");\n' \
+ > $(HYDRILLABUGS_HTML_DIR)'/javascripts/foo.js?31415'
+ mkdir -p $(HYDRILLABUGS_HTML_DIR)/stylesheets
+ printf 'dummy-css {\ncolor: #555;\n}\n' \
+ > $(HYDRILLABUGS_HTML_DIR)'/stylesheets/b?a=r&ba=z.css'
+ printf '/stylesheets/b?a=r&ba=z /stylesheets/b?a=r&ba=z.css' \
+ >> $(HYDRILLABUGS_HTML_DIR)/uri-map.txt
@# Prepare replacement `/var/log`
mkdir -p $(TEST_ROOT_DIR)/var/log
@# Prepare replacement `/etc/letsencrypt`