diff options
| author | eunhhu <[email protected]> | 2026-09-28 10:01:54 +0100 |
|---|---|---|
| committer | eunhhu <[email protected]> | 2026-09-28 10:01:54 +0100 |
| commit | 52a3623f4371b632c0df326c91ff97f44f921094 (patch) | |
| tree | c857deb741f7b29f43880b5a1aa68e5828fe9427 /Makefile | |
| parent | cdeee266d3d0f22cd245c6febf69e71a00b1adb6 (diff) | |
| download | pure-52a3623f4371b632c0df326c91ff97f44f921094.tar.gz pure-52a3623f4371b632c0df326c91ff97f44f921094.zip | |
Read and write numbers exactly without strtod or printf in the common cases
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -16,7 +16,8 @@ BUILD ?= build # cli/ command-line hosts. # libpure.a is the app model with the tree store: what a host embeds (Vega's # surfaces link it). prototypes/ keeps the earlier document runtime (000-077). -# Unit tests sit by their part (core/test-module.c, store/test-tree-store.c); +# Unit tests sit by their part (core/test-module.c, store/test-tree-store.c, +# serve/test-message-json.c); # tests/check.py checks the hosts end to end. INCLUDES = -Icore MODEL = core/module.c core/module-list.c core/module-save.c core/module-text.c core/module-store.c core/flow.c @@ -59,6 +60,11 @@ $(BUILD)/test-module: core/test-module.c $(MODEL) $(STORE) $(HEADERS) @mkdir -p $(BUILD) $(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDES) -DPURE_STORE_TEST core/test-module.c $(MODEL) $(STORE) $(LDFLAGS) -pthread -lm $(LDLIBS) -o $@ +$(BUILD)/test-message-json: serve/test-message-json.c serve/message-json.c $(BUILD)/libpure.a $(HEADERS) + @mkdir -p $(BUILD) + $(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDES) -Iserve serve/test-message-json.c serve/message-json.c $(BUILD)/libpure.a \ + $(LDFLAGS) -lm $(LDLIBS) -o $@ + $(BUILD)/test-tree-store: store/test-tree-store.c $(STORE) $(HEADERS) @mkdir -p $(BUILD) $(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDES) -DPURE_STORE_TEST store/test-tree-store.c $(STORE) $(LDFLAGS) $(LDLIBS) -o $@ @@ -66,9 +72,10 @@ $(BUILD)/test-tree-store: store/test-tree-store.c $(STORE) $(HEADERS) # The HTTP host's checks build their apps with aup (the sibling checkout) and # compare documents with the earlier document server. AUP ?= ../aup -check: all $(BUILD)/test-module $(BUILD)/test-tree-store +check: all $(BUILD)/test-module $(BUILD)/test-tree-store $(BUILD)/test-message-json $(BUILD)/test-tree-store $(BUILD)/test-module + $(BUILD)/test-message-json $(MAKE) -C $(AUP) build/aup $(MAKE) -C prototypes/connections BUILD=build/tree STORE=store-tree.c build/tree/pure-connections python3 tests/check.py --aup $(AUP)/build/aup --aup-root $(AUP) |
