From 2f877b760bd5a9e99f4bea1b2ce2035f6e707920 Mon Sep 17 00:00:00 2001 From: "gregoire.detrez" Date: Thu, 21 Nov 2013 10:32:26 +0000 Subject: [PATCH] Add a small readme to the rgl test suite --- lib/tests/readme.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lib/tests/readme.rst diff --git a/lib/tests/readme.rst b/lib/tests/readme.rst new file mode 100644 index 000000000..02ce1536d --- /dev/null +++ b/lib/tests/readme.rst @@ -0,0 +1,19 @@ +RGL tests +========= + +This directory contains tests for the resource grammar library. + +Test cases +---------- + +Test cases are written as gf scripts. The file names must end with ".gfs" to +be recognized as a script. + +The script are run using ``gf --run``. + +For a test to pass +- gf must exit without an error code (exit 0) +- the output must matchh the corresponding ``.out`` file + +For instance, if there is a test named ``my-test``, the gf commands should be +in ``my-test.gfs`` and the expected output in ``my-test.out``