From b334453f50db6a571714d59e4d8dbcc84744f675 Mon Sep 17 00:00:00 2001 From: tdro Date: Sat, 24 Feb 2024 18:33:47 -0500 Subject: Makefile: Add link parity test entry point Build a substitute directory CSS is safe to test Test HTML indices --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Makefile b/Makefile index 49fec5e..0668602 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,11 @@ build: # Build everything make build-js make build-site +build-sub: # Build everything into substitute directory + make build + mkdir public/m + mv public/* public/m || true + build-config: # Build configuration files yj -yj -i < config.yaml > config.json yj -yt -i < config.yaml > config.toml @@ -77,6 +82,7 @@ build-icons: # Build icons test: # Test everything make test-html + make test-css make test-xsl make test-xml make test-rss @@ -89,10 +95,14 @@ test-html: # Test HTML public/index.html \ public/default/index.html +test-html-indices: # Test HTML indices + find public/ -type f -name "index.html" -exec vnu --errors-only {} \; + test-css: # Test CSS vnu \ --css \ assets/css/default.css \ + assets/css/default-fast.css \ assets/css/default-simple.css \ assets/css/default-syntax.css @@ -122,6 +132,9 @@ test-end: # Test front end test-bed: # Test bed run deno run --allow-all tests/test.ts +test-crawl: # Test link parity + deno run --allow-all tests/crawl.ts + clean: # Clean everything make clean-tests -- cgit v1.2.3