Commit graph

  • 1befa196c4 Update test runner odin Nathan Fisher 2024-04-17 16:06:42 -04:00
  • 2ae513e228 Add two newlines in formatting for test runner Nathan Fisher 2024-04-17 11:00:03 -04:00
  • ebf8b1c901 Add test/runner.c; Fix test failure due to allocating wrong size for linkmap; Overall cleanup; Nathan Fisher 2024-04-17 03:05:41 -04:00
  • a4fb6c7060 Merge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/seahag into odin Nathan Fisher 2024-04-16 20:39:50 -04:00
  • 96c6d02da2 Add test runner written in C Nathan Fisher 2024-04-16 20:38:28 -04:00
  • 2cd69710d7 Move config.mk to config.mk.in and add config.mk to .gitignore Nathan Fisher 2024-03-21 23:29:20 -04:00
  • b1e5c75295 Use /bin/echo in tests rather than shell builtin Nathan Fisher 2024-02-11 23:20:28 -05:00
  • cc8ecc55b7 Continue refactor for consistency Nathan Fisher 2024-02-11 18:54:38 -05:00
  • f72b120b0c Apply formatting Nathan Fisher 2024-02-11 18:37:05 -05:00
  • 4a2b0328f9 Continue refactor Nathan Fisher 2024-02-11 11:00:28 -05:00
  • 1e5b903cff Merge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/seahag into odin Nathan Fisher 2024-02-11 01:14:31 -05:00
  • f4e9b80737 Minor refactor and formatting changes Nathan Fisher 2024-02-11 01:09:21 -05:00
  • 06a7c65324 Add info to README about using dash shell Nathan Fisher 2024-02-04 00:26:49 -05:00
  • 675a030f66 Fix issues around extracting symlinks which only showed up when using Musl libc Nathan Fisher 2024-02-04 00:02:59 -05:00
  • a988a7877e If hardlink exists, remove it before attempting to recreate it Nathan Fisher 2023-12-19 06:59:57 -05:00
  • 0132e493e4 Add tests for hardlink nodes Nathan Fisher 2023-12-01 16:03:31 -05:00
  • 3cb0883b4a Fix previous commit by saving file; Nathan Fisher 2023-11-20 19:10:15 -05:00
  • ddddeebc59 Add try_pop method for haggis_mq Nathan Fisher 2023-11-20 19:09:05 -05:00
  • a7a0f6542d Add test for extracting soft links and fix errors; Fix error in extracting fifo nodes if file exists; Nathan Fisher 2023-11-20 19:05:11 -05:00
  • de23c4c4cb Add test for extracting file nodes Nathan Fisher 2023-11-12 19:04:40 -05:00
  • 935cda6ef7 Fix some tests for FreeBSD Nathan Fisher 2023-10-17 20:58:48 -04:00
  • 5a769bc36c Remove include added by editor; Make sure to call pthread_cond_broadcast after pushing to mq in order to unblock threads; Nathan Fisher 2023-10-05 12:50:26 -04:00
  • ccb742e80e Add test for fifo node extraction Nathan Fisher 2023-10-05 10:40:12 -04:00
  • ba69c2b8e9 Add test for extracting directory nodes Nathan Fisher 2023-10-04 10:48:40 -04:00
  • d63b9f29d0 Send DevNodeSkipped message type when extracting device nodewithout root priv Nathan Fisher 2023-10-03 13:16:25 -04:00
  • 374de790a7 Clean up and label includes Nathan Fisher 2023-10-03 13:04:50 -04:00
  • 7b94a728ae Get device file ezxtraction working and tested Nathan Fisher 2023-10-03 01:53:59 -04:00
  • 349c9389dd Flush and close file descriptor after write when extracting a file node; Remove #include directives automatically added by editor which only exist on Linux; Nathan Fisher 2023-09-22 10:16:53 -04:00
  • 2bc5861dc0 Wrote the extract_node functionality; TODO: test it; Nathan Fisher 2023-09-21 22:58:32 -04:00
  • 58ba56f852 Progress on extracting nodes Nathan Fisher 2023-09-19 20:46:48 -04:00
  • 2e8e2e9a28 Update function parameters in man page Nathan Fisher 2023-09-19 00:40:14 -04:00
  • 26dbb9154c Add message queue as parameter when creating nodes; Begin splitting create_node function up into helper functions; Nathan Fisher 2023-09-19 00:34:27 -04:00
  • 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. Nathan Fisher 2023-09-18 18:28:40 -04:00
  • 7ac9d7f973 Add mq tests; TODO: Find and fix segfault when popping last message; Nathan Fisher 2023-09-18 10:43:34 -04:00
  • 13d7682861 Added message queue in mq.c Nathan Fisher 2023-09-17 19:09:44 -04:00
  • ec6efebd01 test/create_dev-node.c - check device major and minor numbers conditionally depending on OS; Nathan Fisher 2023-09-16 22:33:09 -04:00
  • ad3d5dfddc Add create_file_node test; Ensure fifo is unique in create_fifo_node test Nathan Fisher 2023-09-16 18:58:41 -04:00
  • d12eb47b25 Add tests for creating fifo and device nodes Nathan Fisher 2023-09-15 19:15:01 -04:00
  • 7671e9e29e Add test for creating a symlink node and change to using lstat instead of stat to check file type. Nathan Fisher 2023-09-15 01:49:16 -04:00
  • ee7c9b1b5d Change linkmap structure to handle collisions by placing into the next free bucket rather than by using a linked list structure. Fix bug where the filename was being freed in linkmap buckets, even though the data was owned by the caller. Nathan Fisher 2023-09-14 22:17:11 -04:00
  • 826df41c01 Three small fixes Nathan Fisher 2023-09-13 16:48:56 -04:00
  • 3cc22ed428 Add create_dir_node test Nathan Fisher 2023-09-13 16:41:59 -04:00
  • 37d0668a2f Use echo -e in test/Makefile instead of printf Nathan Fisher 2023-09-13 16:06:20 -04:00
  • 68871dcc7f Add color formatting for summary line after tests Nathan Fisher 2023-08-28 22:44:35 -04:00
  • 981b4a24f3 Add manpages to make install Nathan Fisher 2023-08-28 20:50:29 -04:00
  • 1e6b8b9952 Merge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/seahag into odin Nathan Fisher 2023-08-28 20:35:26 -04:00
  • ccaeb67544 Begin man pages Nathan Fisher 2023-08-28 20:35:02 -04:00
  • 58d620a977 Makefile adjustments to get ready for adding docs Nathan Fisher 2023-08-24 00:35:39 -04:00
  • 6ddcbd7a96 Remove includes added by lsp server; Check in confg.mk; Nathan Fisher 2023-08-24 00:18:13 -04:00
  • 7e621cb64f Properly init filename when creating node Nathan Fisher 2023-08-23 14:05:32 -04:00
  • d8379df818 Move certain vars into config.mk Nathan Fisher 2023-08-22 22:47:15 -04:00
  • f05040ff2b Add test for get_or_add for linkmap Nathan Fisher 2023-08-22 22:37:59 -04:00
  • 0a210b4e7e Fix UB in load_sha256 test caused by accessing incorrect union field Nathan Fisher 2023-08-22 13:17:54 -04:00
  • a8fcdbd140 Merge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/seahag into odin Nathan Fisher 2023-08-22 03:28:04 -04:00
  • 4cf22a1373 Fix NetBSD compilation Nathan Fisher 2023-08-22 03:27:03 -04:00
  • 29cc81ccae Add test for linkmap init/deinit; Fix bug in linkmap deinit; Nathan Fisher 2023-08-19 19:42:00 -04:00
  • da412f754c Remove unneeded #include for stddef.h Nathan Fisher 2023-08-18 12:42:16 -04:00
  • ed9648ff78 Replace linklist with linkmap and remove former completely. Also remove generic hashmap implementation in favor of linkmap. Nathan Fisher 2023-08-18 12:37:24 -04:00
  • e372af0c42 Return a valid target when adding to linkmap if it exists Nathan Fisher 2023-08-18 11:00:30 -04:00
  • e266346bf2 Insert new buckets into linked list for for linkmap Nathan Fisher 2023-08-18 10:42:29 -04:00
  • 6a58dd2a63 Ensure we find a bucket for storing link info after hash collisions; Fix install make target by adding path to haggis.h Nathan Fisher 2023-08-18 00:23:02 -04:00
  • 4149c4275f Left comment note for required functionality Nathan Fisher 2023-08-17 23:28:25 -04:00
  • fcdcd40e95 Add haggis_linkmap_get_or_add Nathan Fisher 2023-08-17 23:26:53 -04:00
  • 69107b2c80 Progress on new linkmap structure, for tracking hardlinks Nathan Fisher 2023-08-17 11:45:59 -04:00
  • 4e63c251d8 Added test for replacing a hashmap entry Nathan Fisher 2023-08-15 01:11:57 -04:00
  • bd820638b5 Replace several uses of malloc with calloc Nathan Fisher 2023-08-14 23:42:09 -04:00
  • b0c2c0c8ac Add some hashmap tests Nathan Fisher 2023-08-14 19:09:18 -04:00
  • 1fb4e8d9a8 Remove mistakenly committed binaries Nathan Fisher 2023-08-13 23:08:55 -04:00
  • 44c98773c0 Test fnv hashing Nathan Fisher 2023-08-13 22:57:15 -04:00
  • 3c946d0a54 Add hashmap deinit and get functions Nathan Fisher 2023-08-12 11:13:02 -04:00
  • 5d9c971060 Implement expanding hashmap Nathan Fisher 2023-08-12 00:54:43 -04:00
  • 99347fd433 Progress on hashmap Nathan Fisher 2023-08-12 00:31:12 -04:00
  • 1775fc5444 Begin implementing hashmap Nathan Fisher 2023-08-11 23:35:23 -04:00
  • 0ea2409fd0 Add 'Ok' / 'FAILED' overall status for tests Nathan Fisher 2023-08-10 22:58:06 -04:00
  • ea401f1157 Allow tests to continue running after failures Nathan Fisher 2023-08-10 22:49:05 -04:00
  • 39a3e45b6c Fix Linux compilation, simplify Makefiles Nathan Fisher 2023-08-10 22:42:43 -04:00
  • dab39c226f Add README and Format files Nathan Fisher 2023-08-10 10:22:09 -04:00
  • 8837beadaa Add load/store file with sha256 hashing tests Nathan Fisher 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. Nathan Fisher 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. Nathan Fisher 2023-08-09 23:02:37 -04:00
  • e159900f2e Add tests for checksum creation Nathan Fisher 2023-08-09 15:28:02 -04:00
  • f0ee28d495 Simplify test/Makefile; Add sha256 tests Nathan Fisher 2023-08-09 13:11:46 -04:00
  • 28bb93b999 Add tests for md5 and sha1 Nathan Fisher 2023-08-09 12:02:37 -04:00
  • 5e3ff56921 Add test harness and tests Nathan Fisher 2023-08-09 11:41:06 -04:00
  • 30395e5d7e Simplify types Nathan Fisher 2023-08-08 01:40:21 -04:00
  • 9457d03a45 Make haggis_node->filetype a sub-structure instead of pointer Nathan Fisher 2023-08-08 01:25:15 -04:00
  • d7a5c40637 Merge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/seahag into odin Nathan Fisher 2023-08-07 23:55:04 -04:00
  • bd6686fd88 Changed haggis_node struct to include sub-structures rather than pointers Nathan Fisher 2023-08-07 23:37:47 -04:00
  • 5d410cb7d3 Declare why certain headers are included Nathan Fisher 2023-08-07 19:15:20 -04:00
  • 5138f3ed6d Fix shadow declaration from last commit Nathan Fisher 2023-08-07 18:57:27 -04:00
  • e283daea2a Incrmental progress Nathan Fisher 2023-08-07 18:55:47 -04:00
  • 891aba4867 Add file headers to new sourcec files; Add function prototypes for link lists; Nathan Fisher 2023-08-01 16:28:22 -04:00
  • 0dc45fc7d0 Add linklist structure for tracking hard links Nathan Fisher 2023-08-01 16:24:01 -04:00
  • a77a2c30b1 Replace semaphore with pthread_cond_t in job queue Nathan Fisher 2023-07-31 11:24:03 -04:00
  • b0fa9d1953 Finish haggis_store_node along with adjustments to dependent functions Nathan Fisher 2023-07-29 18:39:07 -04:00
  • 46d0892b77 Merge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/seahag into odin Nathan Fisher 2023-07-29 18:18:55 -04:00
  • 2db9b2df53 Adjust job queue to take a union as payload Nathan Fisher 2023-07-29 18:18:11 -04:00
  • e3531fdb08 Merge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/seahag into odin Nathan Fisher 2023-07-29 13:52:17 -04:00
  • a53032eea9 Incremental progress Nathan Fisher 2023-07-29 13:51:37 -04:00
  • c72c82484a Add job queue Nathan Fisher 2023-07-29 06:28:33 -04:00