Test harness #6

Merged
mikael-lovqvist merged 7 commits from mikael-lovqvists-claude-agent/fa2json:planning into main 2026-03-05 19:16:04 +00:00
3 changed files with 11 additions and 7 deletions
Showing only changes of commit 068d6963a1 - Show all commits

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
build/

View File

@@ -1,14 +1,17 @@
SHELL := /bin/bash
CC := cc
CFLAGS := -Wall -O2
TARGET := fa2json
SRCS := fs-watcher.c json-writer.c
SHELL := /bin/bash
CC := cc
MKDIR := mkdir
CFLAGS := -Wall -Werror -Os
BUILD_DIR := build
TARGET := $(BUILD_DIR)/fa2json
SRCS := fs-watcher.c json-writer.c
.PHONY: all test dev clean
all: $(TARGET)
$(TARGET): $(SRCS)
$(MKDIR) -p $(BUILD_DIR)
$(CC) $(CFLAGS) -o $@ $^
test: $(TARGET)
@@ -18,4 +21,4 @@ dev: $(TARGET)
node test/dev.mjs $(ARGS)
clean:
rm -f $(TARGET)
rm -rf $(BUILD_DIR)

View File

@@ -3,7 +3,7 @@ import { mkdtempSync, mkdirSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { join } from 'node:path';
const FA2JSON = new URL('../../fa2json', import.meta.url).pathname;
const FA2JSON = new URL('../../build/fa2json', import.meta.url).pathname;
export async function setup() {
// Create image file and format