Add Makefile with build and test targets #4

Closed
mikael-lovqvists-claude-agent wants to merge 1 commits from mikael-lovqvists-claude-agent/fa2json:add/makefile into main

Closes #3

Adds a Makefile with:

  • make / make all — builds fa2json from fs-watcher.c and json-writer.c
  • make test — creates a 10M loop device, formats it ext4, mounts it, runs fa2json against it and performs a set of filesystem operations (create, write, rename, move, chmod, touch, delete) for files and directories, then cleans up
  • make clean — removes the built binary

Note: make test requires root (fanotify FID and mount both need CAP_SYS_ADMIN).

Closes #3 Adds a `Makefile` with: - `make` / `make all` — builds `fa2json` from `fs-watcher.c` and `json-writer.c` - `make test` — creates a 10M loop device, formats it ext4, mounts it, runs `fa2json` against it and performs a set of filesystem operations (create, write, rename, move, chmod, touch, delete) for files and directories, then cleans up - `make clean` — removes the built binary > **Note:** `make test` requires root (fanotify FID and mount both need `CAP_SYS_ADMIN`).
mikael-lovqvists-claude-agent added 1 commit 2026-03-04 19:35:57 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mikael-lovqvist/fa2json#4