From cdfdd969660ce78c90d8a08913090ceb18172067 Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Mon, 14 Jul 2025 18:04:26 +0200 Subject: [PATCH] set up tytanic with basic test --- justfile | 8 +++++++- tests/empty/.gitignore | 4 ++++ tests/empty/ref/1.png | Bin 0 -> 105 bytes tests/empty/test.typ | 6 ++++++ 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 tests/empty/.gitignore create mode 100644 tests/empty/ref/1.png create mode 100644 tests/empty/test.typ diff --git a/justfile b/justfile index de19b92..8d296ab 100644 --- a/justfile +++ b/justfile @@ -9,4 +9,10 @@ manual: gallery: for f in "{{gallery_dir}}"/*.typ; do typst c --root . "$f" "${f%typ}pdf"; done - for f in "{{gallery_dir}}"/readme/*.typ; do typst c --root . "$f" "${f%typ}png"; done \ No newline at end of file + for f in "{{gallery_dir}}"/readme/*.typ; do typst c --root . "$f" "${f%typ}png"; done + +test *filter: + tt run {{filter}} + +update-test *filter: + tt update {{filter}} \ No newline at end of file diff --git a/tests/empty/.gitignore b/tests/empty/.gitignore new file mode 100644 index 0000000..40223be --- /dev/null +++ b/tests/empty/.gitignore @@ -0,0 +1,4 @@ +# generated by tytanic, do not edit + +diff/** +out/** diff --git a/tests/empty/ref/1.png b/tests/empty/ref/1.png new file mode 100644 index 0000000000000000000000000000000000000000..797166170ddbe8557bb696cc4d87a47ecc520708 GIT binary patch literal 105 zcmeAS@N?(olHy`uVBq!ia0y~yV3Y=7MrNSMg~ywcfE06pPl)UP|NoaCkv;+BDtfv& uhE&{od(e;($UCI)d-=9wd