Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/mk/turing_qcont.mk # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / mk / turing_qcont.mk` 27 lines ยท 1331 bytes Raw Blame History 1 # TURING quantized continuous scorer (qint.v1) and PRD1 reader. 2 # Pure seeded OM-2: src/turing/ty_qcont_lib.om, tests/turing/test_ty_qcont.om, 3 # tests/turing/qcont_kat_gen.om (the C src/turing/ty_qcont.*, ty_prd.* are retired). 4 # Picked up by `-include mk/*.mk`; no Makefile edit; redefines nothing that exists. 5 # 6 # test-turing-qcont: builds the known-answer generator and the test with the 7 # seed omc and runs both. 8 ifndef TURING_QCONT_MK 9 TURING_QCONT_MK := 1 10 .PHONY: test-turing-qcont 11 TYQC_OM_LIB = src/turing/ty_qcont_lib.om 12 TYQC_DIR = $(OUT_DIR)/tests-turing-qcont 13 14 $(TYQC_DIR)/qcont_kat_gen: $(TYQC_OM_LIB) tests/turing/qcont_kat_gen.om seed/out/omc 15 @mkdir -p $(TYQC_DIR) 16 cat $(TYQC_OM_LIB) tests/turing/qcont_kat_gen.om | seed/out/omc > $@.tmp.$$$$ && chmod +x $@.tmp.$$$$ && mv -f $@.tmp.$$$$ $@ 17 18 $(TYQC_DIR)/test_ty_qcont: $(TYQC_OM_LIB) tests/turing/test_ty_qcont.om seed/out/omc 19 @mkdir -p $(TYQC_DIR) 20 cat $(TYQC_OM_LIB) tests/turing/test_ty_qcont.om | seed/out/omc > $@.tmp.$$$$ && chmod +x $@.tmp.$$$$ && mv -f $@.tmp.$$$$ $@ 21 22 test-turing-qcont: $(TYQC_DIR)/qcont_kat_gen $(TYQC_DIR)/test_ty_qcont 23 ./$(TYQC_DIR)/qcont_kat_gen > $(TYQC_DIR)/kat_table.txt 24 ! grep -q REFUSED $(TYQC_DIR)/kat_table.txt 25 ./$(TYQC_DIR)/test_ty_qcont 26 @echo "test-turing-qcont: pure OM-2 qint.v1 KATs, refusals and PRD1 cases pass" 27 endif