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 / visor-console.mk

23 lines · 1260 bytes Raw Blame History
1# Omega Visor lane 2 (console / REPL).
2# `make test-visor-console` runs the console test twice:
3# 1. lane-only: linked against ONLY the core objects, visor.o and the console
4# objects (-DVISOR_CONSOLE_LANE_ONLY skips the end-to-end part), so the
5# console framework can be tested even while other lanes are broken;
6# 2. full: the generic rule build/tests-visor/test_visor_console (all visor +
7# language objects), which also runs the end-to-end session through the real
8# hook wiring in tools/omega.c.
9VISOR_CONSOLE_OBJS = $(OUT_DIR)/visor/visor.o $(OUT_DIR)/visor/visor_console.o $(OUT_DIR)/visor/visor_parse_command.o
10
11$(OUT_DIR)/lane2:
12 mkdir -p $@
13
14$(OUT_DIR)/lane2/test_visor_console: tests/visor/test_visor_console.c $(VISOR_CORE_OBJS) $(VISOR_CONSOLE_OBJS) | $(OUT_DIR)/lane2
15 $(CC) $(VISOR_CFLAGS) -DVISOR_CONSOLE_LANE_ONLY -Itests/visor -o $@ $< $(VISOR_CORE_OBJS) $(VISOR_CONSOLE_OBJS)
16
17# The full test #includes tools/omega.c (with OMEGA_TOOL_NO_MAIN) for the wiring.
18$(OUT_DIR)/tests-visor/test_visor_console: tools/omega.c
19
20.PHONY: test-visor-console
21test-visor-console: $(OUT_DIR)/lane2/test_visor_console $(OUT_DIR)/tests-visor/test_visor_console
22 $(OUT_DIR)/lane2/test_visor_console
23 $(OUT_DIR)/tests-visor/test_visor_console