Commits
- Commit:
b01ca349ccb8138b903f6b6eb13d10d2e58626ca
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
test.h: rename check() macro to expect()
I can't remember where else I've seen this naming, but I like it because
it seems to match up more neatly with assert().
- Commit:
0f3b75642b06aadaae537f2f64929fdd9f77fae6
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
put a TAB into "test() skipped" to fit regular output
This version matches project sc2 (git):
commit fb675b5f860edf6266885e42d9c09c2802cf9416
from: Sven M. Hallberg <pesco@khjk.org>
date: Sat Dec 28 23:46:43 2024 UTC
- Commit:
b638044ea2cf31ebaa7acb1353cd1e569306ec6f
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
test.h: remove colons from output
As a side effect, this makes the test output clean TSV.
This version matches project sc2 (git):
commit 7e054f3208ac703dda195f3d0c49bf53e781ebc2
from: Sven M. Hallberg <pesco@khjk.org>
date: Sat Dec 28 16:17:19 2024 UTC
The change was initially recorded in project rx (darcs):
patch 31afcfda494ef1937d8019360c9cc1ba1c4ef3c2
Author: pesco@khjk.org
Date: Sat Dec 28 16:15:49 UTC 2024
- Commit:
52995679522f2b6c99ff43aa8a9d35f3fb3e68ee
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
include assert.h from test.h
This tweak came silently with the initial commit of project sc2 (git):
commit a398e14898e509e7df5eb1648b4a28408e92eec0
from: Sven M. Hallberg <pesco@khjk.org>
date: Sun Dec 8 13:37:38 2024 UTC
open arrays and uinit tests
- Commit:
b0aa2229dfdce21f3b35ca48fcdb99bcd9bc069b
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
add lang/c/test.h
This is the first (2020) version, from project rx (darcs):
patch e23a5d20646a06606d11f4ab711e123b4cd98ba6
Author: pesco@khjk.org
Date: Mon Apr 12 15:47:51 CEST 2021
* prototype
- Commit:
fcb7466a5ce845e0ca67043a78ba4dd6df61fbac
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
regen README
- Commit:
12d156c595a1f9ba542596d76b57b71726cc7fe9
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
manpage fixes
- Commit:
42d07c50c84c3496b4c9b9f4c44c6339df2e6932
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
add counters section to manpage
- Commit:
9c8a0916ad7697e4a5e36371593f0c2ea4840efb
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
separate run and total counters
Total is the number of tests we intend to execute. It is semantically the
counter that was called 'run' before. It may increase while running test
suites but is otherwise set up-front.
Run is now the number of tests we have so far (at least tried) to execute
and increments as we go. It will normally be the sum of ok, fail, and
error. If and when we add parallel execution of tests, the sum might lag
behind because 'run' gets incremented before the test is finished.
Counter consistency gains the requirement that run not exceed total.
At the same time, it is relaxed such that run may end lower than total.
Thus test suites (or exercise itself) may abort early (after the first
failure, say) without such a run being considered invalid.
This commit includes two new tests and fixes some bugs they exposed.
- Commit:
d020afe4a99674cac985dfc693d4f3a4d0bd5823
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
assert-exercise: remove tempfiles via an exit trap
This ensures it happens also on a premature exit (127).
- Commit:
a3a317d2dfdb47ad07017e2f99ce051f9b001ffc
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
manpage tweaks
- Commit:
101dd348a5859c78ec62ef2388cb675ff8a6db3d
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
unify pattern flags into -p[dst]=...
- Commit:
1314fbfbc67df30377310bcdc47ef99f9ba41046
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
xxx -q test name
- Commit:
0eb2a1f6b10ce032f94216e96df1c4a185b3282e
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
add a final sanity check for progress counters
- Commit:
8dc949b075675abad57847c27ef695ecf419cb62
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
add -q: squelch standard output
- Commit:
5b9fbd58a16f02d98dbc6f0b4be7af12aa186cae
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
more getopt improvements
Set arg variable to 1 for boolean flags.
- Commit:
19d28f97177c183d78bbce4642857db2ea27541f
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
improve getopt a little
- Commit:
e6eae0468089573a77abb012145073dd8d1c4402
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
add command line options for patterns
Includes a minimal getopt(3) implementation.
- Commit:
8e4033faa2a65945f3eef825447e1685d6b31def
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
improve counter colors in corner cases
Color "ok" green only if positive.
Color "run" dark red if zero.
- Commit:
1041414ec4daa58723fd3837ef14d2be49d29d52
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
update patterns in manpage
- Commit:
2a32333ed60d6e78cd5d947c39c0db4b9c66f90f
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
adjust testsuite tests to use new pattern (*.tests)
- Commit:
25e116bbe3a7f0ca0b33de6e6e82d2a92b47b21f
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
rename tests to match new pattern (*.t)
- Commit:
b36334c10632fd4ddd6bd0db2de60e673c9db101
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
change default test/suite/dir patterns to *.t, *.tests, *, respectively
The file patterns should be suffixes so they become hidden if there is
another, like on a source file for a test, for instance.
NB: The directory pattern only applies to directories, it will not cause
regular files to be mistaken for subdirectories. Widening it to all
directories is done in anticipation of introducing a -C command line option.
The executable patterns also only apply to regular files.
- Commit:
252e283ccff606d04e989025d76c032242266944
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
add copyright and license tag
- Commit:
119471299bf98b73818e2962618af2697aee0175
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
add README/manpage, Makefile
Makefile generates README from the manpage.