interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / mk / turing_qcont.mk

27 lines · 1247 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.
8ifndef TURING_QCONT_MK
9TURING_QCONT_MK := 1
10.PHONY: test-turing-qcont
11TYQC_OM_LIB = src/turing/ty_qcont_lib.om
12TYQC_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 > $@ && chmod +x $@
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 > $@ && chmod +x $@
21
22test-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"
27endif