jlamothe
|
23ed415852
|
WIP: testing run_test_with()
|
2023-11-23 18:14:54 +00:00 |
|
jlamothe
|
6539b87ea9
|
warn to log instead of stderr
When the reindex function rebuilds the log because of a missing first_log value, it warns about a potential memory leak to the log itself.
|
2023-11-21 23:26:32 +00:00 |
|
jlamothe
|
00ffef2f0a
|
more thorough testing of append_test_log()
|
2023-11-21 22:45:56 +00:00 |
|
jlamothe
|
cb3788cf02
|
check next value for append_test_log() on empty log
|
2023-11-21 20:55:58 +00:00 |
|
jlamothe
|
da33bd8955
|
test test_context() with a prior context
|
2023-11-21 19:49:19 +00:00 |
|
jlamothe
|
ebf398fd33
|
test test_context() on a state with no initial context
|
2023-11-21 19:44:35 +00:00 |
|
jlamothe
|
bea9a3e34a
|
check the next field of the last log when appending
|
2023-11-21 18:11:35 +00:00 |
|
jlamothe
|
57e4d2ba49
|
re-implemented test using new convenience functions
|
2023-11-21 05:12:41 +00:00 |
|
jlamothe
|
8828a8ab17
|
WIP: re-writing tests
|
2023-11-20 04:50:42 +00:00 |
|
jlamothe
|
0ad79ea3b0
|
define and start using single_text_context()
|
2023-11-16 00:52:01 +00:00 |
|
jlamothe
|
ef00063ba3
|
built and started to test test_context()
|
2023-11-15 23:46:25 +00:00 |
|
jlamothe
|
cead3f67d0
|
created overridable report() function to be used in place of print()
|
2023-11-14 23:53:43 +00:00 |
|
jlamothe
|
85a6d49b38
|
added context info to TestState
|
2023-11-14 23:08:19 +00:00 |
|
jlamothe
|
1d306f32c0
|
actually count the null state test for run_test()
|
2023-11-14 20:32:07 +00:00 |
|
jlamothe
|
bcfd584608
|
make sure passing a null state to append_test_log() doesn't crash it
|
2023-11-14 20:16:30 +00:00 |
|
jlamothe
|
2a092d1050
|
ensure the log doesn't change when the message is null
|
2023-11-14 19:59:13 +00:00 |
|
jlamothe
|
a772db08ce
|
try to rebuild log when first entry missing
|
2023-11-14 19:33:02 +00:00 |
|
jlamothe
|
47638ef0b7
|
ensure last_log repairs itself when appending
|
2023-11-14 19:16:21 +00:00 |
|
jlamothe
|
580af62244
|
fix memory leak
|
2023-11-14 18:43:06 +00:00 |
|
jlamothe
|
3d01638da0
|
break a2e_chk_last into separate function
|
2023-11-13 04:05:33 +00:00 |
|
jlamothe
|
4ff1aa2d6d
|
build a struct to represent a sample log
|
2023-11-13 03:47:21 +00:00 |
|
jlamothe
|
5e8b1b73c7
|
make sure last_log changes, but isn't null on append
|
2023-11-13 01:27:07 +00:00 |
|
jlamothe
|
fc167d8d05
|
ensure first_log doesn't change on append
|
2023-11-13 00:49:33 +00:00 |
|
jlamothe
|
586bbe71ed
|
started append to existing test
|
2023-11-13 00:37:19 +00:00 |
|
jlamothe
|
e41263adf0
|
consider calling run_test() with a null function as a pending test
|
2023-11-12 01:25:55 +00:00 |
|
jlamothe
|
94d6bc8cf9
|
make sure run_test() doesn't crash when handed a null state
|
2023-11-11 23:08:08 +00:00 |
|
jlamothe
|
3393c3b9af
|
ensure latest log text is correct when appended
|
2023-11-11 22:53:04 +00:00 |
|
jlamothe
|
63f0bd73e4
|
ensure first_log and last_log match when appending to empty log
|
2023-11-11 21:49:52 +00:00 |
|
jlamothe
|
9f4a51d8c7
|
ensure first_log isn't null after append
|
2023-11-11 21:36:05 +00:00 |
|
jlamothe
|
c0f28d41b0
|
renamed various checking functions
|
2023-11-11 03:40:00 +00:00 |
|
jlamothe
|
3309ac7aee
|
made compare_ints() and compare_ptrs() accessible from outside util
|
2023-11-10 22:44:42 +00:00 |
|
jlamothe
|
a14b11e853
|
append to an empty test log
|
2023-11-10 21:17:06 +00:00 |
|
jlamothe
|
4c0d33693b
|
moved mk_sample_state() into util
|
2023-11-10 20:48:40 +00:00 |
|
jlamothe
|
a962eff7b4
|
test module for append_test_log()
|
2023-11-10 20:30:44 +00:00 |
|
jlamothe
|
1fcbeaef5b
|
check what happens when a test is pending
|
2023-11-09 23:51:51 +00:00 |
|
jlamothe
|
e55a392035
|
check what happens when a test fails
|
2023-11-09 23:39:13 +00:00 |
|
jlamothe
|
2ea0da9a6f
|
relicenced under LGPLv3 instead of GPLv3
|
2023-11-09 23:24:48 +00:00 |
|
jlamothe
|
f817af1a5c
|
compare first & last log pointers when comparing test states
|
2023-11-09 23:04:45 +00:00 |
|
jlamothe
|
0665b8be3e
|
check ptr when comparing two TestState values
|
2023-11-09 22:52:15 +00:00 |
|
jlamothe
|
e69a2d0375
|
check all counts when comparing test states
|
2023-11-09 21:12:21 +00:00 |
|
jlamothe
|
c2f8972d9c
|
partially testing run_test()
|
2023-11-09 20:48:51 +00:00 |
|
jlamothe
|
1e5423b564
|
defined test_passing
|
2023-11-09 00:06:18 +00:00 |
|
jlamothe
|
ede11a1727
|
added test module for run_test()
|
2023-11-08 23:38:42 +00:00 |
|
jlamothe
|
14262a816e
|
removed unnecessary ampersands
|
2023-11-08 22:10:09 +00:00 |
|
jlamothe
|
d7207a3df3
|
broke initial state testing off into separate module
|
2023-11-08 00:20:33 +00:00 |
|
jlamothe
|
e9ed464b60
|
minor edits and testing of initial TestState value
|
2023-11-07 23:44:53 +00:00 |
|
jlamothe
|
9f26846a3d
|
renamed main.c to tests.c
|
2023-11-07 20:35:59 +00:00 |
|
jlamothe
|
f2da510a6e
|
created tests
|
2023-11-07 20:29:08 +00:00 |
|