From 164794e60fd382584cdd64808ce837b885f385c1 Mon Sep 17 00:00:00 2001 From: Josh Wainwright Date: Mon, 25 Apr 2016 15:31:12 +0100 Subject: Remove .status files, just use .ref and .out pairs --- lua/README.md | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'lua/README.md') diff --git a/lua/README.md b/lua/README.md index 9b19a83..4f8a6fb 100644 --- a/lua/README.md +++ b/lua/README.md @@ -1,21 +1,13 @@ Tests for vis specific lua api ------------------------------ -There are two types of lua tests here: - -1. Tests are formed from a `.in`, `.ref` and `.out` triplet. - The `.in` file is opened by vis, some operatations are performed and - the modified file is written to `.out`. The new `.out` is - compared to `.ref` and the test passes if they are identical. - -2. Tests are formed from a single `.status` file. This file is created by - the lua code in the test. It contains a single line per test case, this - single line should be `true` if the test case passed. The `.status` - file is checked to ensure it contains only `true` lines and if so, the test - passes. +Tests are formed from a `.in`, `.ref` and `.out` triplet. +The `.in` file is opened by vis, some operatations are performed and the +modified file is written to `.out`. The new `.out` is compared to +`.ref` and the test passes if they are identical. The shell script `test.sh` looks for a file with extension `.in`, eg `test.in`, and opens it in vis. The corresponding lua file, `test.lua`, is executed and is -expected to create either a `test.out` or `test.status` file. +expected to create a `test.out` file. Type `make` to run all tests. -- cgit v1.2.3