aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2af9251..0c2ce7d 100644
--- a/Makefile
+++ b/Makefile
@@ -41,6 +41,20 @@ side-assets = \
## and installation.
all: $(derived-assets)
+tests/resources/repositories/repo-1/.git \
+tests/resources/repositories/repo-2/.git:
+ ln -s .gitdir $@
+
+emit-index: src/gistatic
+ @rm -rf tmp/index/
+ @./src/gistatic -i -o tmp/index/ ~/dev/published/git-permalink/ ../capim/ ../libedn/ ../listatic/ ../lisp-cli/
+ @ln -rfs tmp/git-permalink tmp/index/git-permalink
+
+emit-repo: src/gistatic
+ @rm -rf tmp/git-permalink/
+ @time ./src/gistatic -o tmp/git-permalink/ -u FIXME-url-1 ~/dev/published/git-permalink/
+
+run: shellcheck emit-index emit-repo
check-unit:
@@ -53,6 +67,10 @@ check-integration:
## build can run tests at the same time. The required artifacts
## are created if missing.
check: check-unit check-integration
+# tests/resources/repositories/repo-1/.git
+# tests/resources/repositories/repo-2/.git
+# sh tests/build-sample.sh
+# sh tests/integration.sh