diff options
| author | Shawn O. Pearce <spearce@spearce.org> | 2008-12-31 11:16:41 -0800 |
|---|---|---|
| committer | Shawn O. Pearce <spearce@spearce.org> | 2008-12-31 11:16:41 -0800 |
| commit | 4260699b37a7a0cc6be231d232d424a858a7d111 (patch) | |
| tree | 154eeb7642b8abbce7954016ba549e399ffeea24 | |
| parent | 5673434fff718d93ac738a03403442f16abeecba (diff) | |
| download | libgit2-4260699b37a7a0cc6be231d232d424a858a7d111.tar.gz | |
Rename the test cases to run in specific orders
This way we can be fairly certain we run tests of lower-level
parts of the library before we run tests of higher-level more
complex parts. If there is any problem in a lower-level part
of the library, the earlier test will identify it and stop,
making it easire to troubleshoot the failure.
A rough naming guide has been added for the test suite to
explain the current category structure.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
| -rw-r--r-- | tests/NAMING | 20 | ||||
| -rw-r--r-- | tests/t0001-errno.c (renamed from tests/t0000-errno.c) | 0 | ||||
| -rw-r--r-- | tests/t0101-hash.c (renamed from tests/t0000-hash.c) | 0 | ||||
| -rw-r--r-- | tests/t0101-oid.c (renamed from tests/t0000-oid.c) | 0 | ||||
| -rw-r--r-- | tests/t0102-objtype.c (renamed from tests/t0000-obj.c) | 0 | ||||
| -rw-r--r-- | tests/t0103-objhash.c (renamed from tests/t0000-obj-hash.c) | 0 | ||||
| -rw-r--r-- | tests/t0201-readloose.c (renamed from tests/t0000-read1.c) | 0 | ||||
| -rw-r--r-- | tests/t0202-readloose.c (renamed from tests/t0000-read2.c) | 0 |
8 files changed, 20 insertions, 0 deletions
diff --git a/tests/NAMING b/tests/NAMING new file mode 100644 index 000000000..c1052be27 --- /dev/null +++ b/tests/NAMING @@ -0,0 +1,20 @@ +Test sources should be named: + + t????-function.c + +where ???? is a four digit code. The first two digits classify +the test into a major category; the final two digits indicate the +sequence of the test within that category. The function part of +the test name should give a rough indication of what it does. + +Categories +---------- + +00__: Core library routines based only on the standard library, + and that are essential for everything else to run. E.g. + errno and malloc. + +01__: Basic hashing functions, needed to handle the content + addressable store. + +02__: Basic object read access. diff --git a/tests/t0000-errno.c b/tests/t0001-errno.c index dba81bc59..dba81bc59 100644 --- a/tests/t0000-errno.c +++ b/tests/t0001-errno.c diff --git a/tests/t0000-hash.c b/tests/t0101-hash.c index 6e9df7119..6e9df7119 100644 --- a/tests/t0000-hash.c +++ b/tests/t0101-hash.c diff --git a/tests/t0000-oid.c b/tests/t0101-oid.c index e68231085..e68231085 100644 --- a/tests/t0000-oid.c +++ b/tests/t0101-oid.c diff --git a/tests/t0000-obj.c b/tests/t0102-objtype.c index 425b3cd58..425b3cd58 100644 --- a/tests/t0000-obj.c +++ b/tests/t0102-objtype.c diff --git a/tests/t0000-obj-hash.c b/tests/t0103-objhash.c index 83131fe4c..83131fe4c 100644 --- a/tests/t0000-obj-hash.c +++ b/tests/t0103-objhash.c diff --git a/tests/t0000-read1.c b/tests/t0201-readloose.c index 1b61137f9..1b61137f9 100644 --- a/tests/t0000-read1.c +++ b/tests/t0201-readloose.c diff --git a/tests/t0000-read2.c b/tests/t0202-readloose.c index c4c199245..c4c199245 100644 --- a/tests/t0000-read2.c +++ b/tests/t0202-readloose.c |
