From 73b25bdad0f0dda66f0a73c8b980e0ddb1a59553 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 14 Jan 2021 17:28:03 +0100 Subject: =?UTF-8?q?Move=20bracket=20function=20tests=20to=20integration=20?= =?UTF-8?q?=F0=9F=9A=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'tests/README.md') diff --git a/tests/README.md b/tests/README.md index 429207a5..91bf8f49 100644 --- a/tests/README.md +++ b/tests/README.md @@ -1,10 +1,9 @@ # Tests +Directory structure: - `typ`: Input files. - `ref`: Reference images which the output is compared with to determine whether - a test passed or failed. To keep things small, please run - `oxipng -o max tests/ref/` when creating or updating reference - images (note that `` can be `*` to optimize all images). + a test passed or failed. - `res`: Resource files used by tests. - `png`: PNG files produced by tests. - `pdf`: PDF files produced by tests. @@ -13,3 +12,12 @@ The test files are split into three categories: - `full`: Tests of full documents. - `lang`: Tests for specific language features. - `library`: Tests for specific library functions. + +To keep things small, please optimize the reference images: +```bash +# One image +oxipng -o max tests/ref/image.png + +# All images +oxipng -r -o max tests/ref/* +``` -- cgit v1.2.3