]> granicus.if.org Git - file/commitdiff
Add basic instructions for writing tests.
authorReuben Thomas <rrt@sc3d.org>
Thu, 28 Feb 2008 19:27:49 +0000 (19:27 +0000)
committerReuben Thomas <rrt@sc3d.org>
Thu, 28 Feb 2008 19:27:49 +0000 (19:27 +0000)
tests/README [new file with mode: 0644]

diff --git a/tests/README b/tests/README
new file mode 100644 (file)
index 0000000..31f9b14
--- /dev/null
@@ -0,0 +1,17 @@
+file tests
+==========
+
+This directory contains tests for file. It is highly encouraged to add
+one each time a bug is found, and each time new magic is added. Each
+test consists of three files:
+
+  TEST.magic
+  TEST.testfile
+  TEST.result
+
+where TEST is the base name of the test, TEST.magic contains the magic
+used, TEST.testfile is the input, and TEST.result is the desired
+output from file.
+
+It suffices to add a triplet of test files to the directory to have
+them included in "make check".