summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2008-02-28 19:27:49 +0000
committerReuben Thomas <rrt@sc3d.org>2008-02-28 19:27:49 +0000
commit8f982b281c69224cb04d36a697b6244a8760a0e4 (patch)
treed20c06dbd20278e700811bc1666572ccf7c82f4c
parent36f07d3ea6f91bc0e251e7bd43f018aa031de415 (diff)
downloadfile-git-8f982b281c69224cb04d36a697b6244a8760a0e4.tar.gz
Add basic instructions for writing tests.
-rw-r--r--tests/README17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/README b/tests/README
new file mode 100644
index 00000000..31f9b14e
--- /dev/null
+++ b/tests/README
@@ -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".