Commit graph

35 commits

Author SHA1 Message Date
1befa196c4 Update test runner 2024-04-17 16:06:42 -04:00
Nathan Fisher
96c6d02da2 Add test runner written in C 2024-04-16 20:38:28 -04:00
Nathan Fisher
0132e493e4 Add tests for hardlink nodes 2023-12-01 16:03:31 -05:00
Nathan Fisher
a7a0f6542d Add test for extracting soft links and fix errors; Fix error in extracting fifo nodes if file exists; 2023-11-20 19:05:11 -05:00
Nathan Fisher
de23c4c4cb Add test for extracting file nodes 2023-11-12 19:04:40 -05:00
ccb742e80e Add test for fifo node extraction 2023-10-05 10:40:12 -04:00
ba69c2b8e9 Add test for extracting directory nodes 2023-10-04 10:48:40 -04:00
Nathan Fisher
7b94a728ae Get device file ezxtraction working and tested 2023-10-03 01:53:59 -04:00
Nathan Fisher
ba46a2e048 Fix haggis_mq_pop function to return the EndOfArchive message while
leaving it in place for the next thread. Previously it was returning
'NULL' upon encountering this message type.
2023-09-18 18:28:40 -04:00
7ac9d7f973 Add mq tests; TODO: Find and fix segfault when popping last message; 2023-09-18 10:43:34 -04:00
Nathan Fisher
ad3d5dfddc Add create_file_node test; Ensure fifo is unique in create_fifo_node
test
2023-09-16 18:58:41 -04:00
Nathan Fisher
d12eb47b25 Add tests for creating fifo and device nodes 2023-09-15 19:15:01 -04:00
Nathan Fisher
7671e9e29e Add test for creating a symlink node and change to using lstat
instead of `stat` to check file type.
2023-09-15 01:49:16 -04:00
3cc22ed428 Add create_dir_node test 2023-09-13 16:41:59 -04:00
37d0668a2f Use echo -e in test/Makefile instead of printf 2023-09-13 16:06:20 -04:00
Nathan Fisher
68871dcc7f Add color formatting for summary line after tests 2023-08-28 22:44:35 -04:00
d8379df818 Move certain vars into config.mk 2023-08-22 22:47:15 -04:00
f05040ff2b Add test for get_or_add for linkmap 2023-08-22 22:37:59 -04:00
Nathan Fisher
29cc81ccae Add test for linkmap init/deinit; Fix bug in linkmap deinit; 2023-08-19 19:42:00 -04:00
Nathan Fisher
ed9648ff78 Replace linklist with linkmap and remove former completely. Also
remove generic hashmap implementation in favor of linkmap.
2023-08-18 12:37:24 -04:00
4e63c251d8 Added test for replacing a hashmap entry 2023-08-15 01:11:57 -04:00
Nathan Fisher
b0c2c0c8ac Add some hashmap tests 2023-08-14 19:09:18 -04:00
Nathan Fisher
44c98773c0 Test fnv hashing 2023-08-13 22:57:15 -04:00
0ea2409fd0 Add 'Ok' / 'FAILED' overall status for tests 2023-08-10 22:58:06 -04:00
ea401f1157 Allow tests to continue running after failures 2023-08-10 22:49:05 -04:00
Nathan Fisher
39a3e45b6c Fix Linux compilation, simplify Makefiles 2023-08-10 22:42:43 -04:00
8837beadaa Add load/store file with sha256 hashing tests 2023-08-10 09:48:10 -04:00
2acf8844dd Added tests for loading and storing integers, fixed load_file_md5 test
so that it now passes. Required fixing integer storage.
2023-08-09 23:56:59 -04:00
08bf2a4ccc Added several tests and fixed bugs in [load/store]_u16. Must pass the
union as a pointer or the compiler optimizes it away.
2023-08-09 23:02:37 -04:00
e159900f2e Add tests for checksum creation 2023-08-09 15:28:02 -04:00
f0ee28d495 Simplify test/Makefile; Add sha256 tests 2023-08-09 13:11:46 -04:00
28bb93b999 Add tests for md5 and sha1 2023-08-09 12:02:37 -04:00
5e3ff56921 Add test harness and tests 2023-08-09 11:41:06 -04:00
30395e5d7e Simplify types 2023-08-08 01:40:21 -04:00
Nathan Fisher
bd6686fd88 Changed haggis_node struct to include sub-structures rather than
pointers
2023-08-07 23:37:47 -04:00
Renamed from src/test/Makefile (Browse further)