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 / seed / host / execenv / execenv.cases

34 lines · 2111 bytes Raw Blame History
1# SPDX-License-Identifier: Apache-2.0
2# seed/host/execenv/execenv.cases: execenv (keyword 233), run by the OM-2 conductor
3# (seed/qualification/om2/gate.om) from seed/host/check.sh. Expected: OM2GATE PASS cases=11.
4# fixture: seed/host/execenv/execenv.om re-executes itself with an exact three-entry environment
5# (parent exit 0 = all 15 checks hold; see its notes). x86-fixture: the same source for x86linux,
6# run through binfmt qemu-x86_64 (emulator evidence, not hardware qualification).
7# oracle: /usr/bin/printenv is an ORACLE (independent host binary, never shipped); it must print
8# exactly the three entries. oracle-execprog is the negative control: execprog gives it none.
9# Each mutant compiler is built from seed/omc/omc.om with one execenv emission changed; the fixture
10# built by it must fail at the named check (exit = check number), so the fixture detects the mutant.
11deadline 120
12fixture run seed/host/execenv/execenv.om - - - 0
13x86-fixture run seed/host/execenv/x86-target.om+seed/host/execenv/execenv.om - - - 0
14oracle run seed/host/execenv/oracle.om - file:seed/host/execenv/printenv.want - 0
15oracle-execprog run seed/host/execenv/oracle.om - - - 0 negative
16fnmode refuse seed/host/execenv/fnmode.om 9
17x86-fnmode refuse seed/host/execenv/x86-target.om+seed/host/execenv/fnmode.om 9
18contract refuse seed/host/execenv/contract.om 30
19subst seed/host/execenv/mutants/a64-envp.from seed/host/execenv/mutants/a64-envp.to
20cc seed/omc/omc.om
21mut-a64-envp run seed/host/execenv/execenv.om - - - 1
22cc pinned
23subst seed/host/execenv/mutants/a64-nonempty.from seed/host/execenv/mutants/a64-nonempty.to
24cc seed/omc/omc.om
25mut-a64-nonempty run seed/host/execenv/execenv.om - - - 4
26cc pinned
27subst seed/host/execenv/mutants/x86-envp.from seed/host/execenv/mutants/x86-envp.to
28cc seed/omc/omc.om
29mut-x86-envp run seed/host/execenv/x86-target.om+seed/host/execenv/execenv.om - - - 1
30cc pinned
31subst seed/host/execenv/mutants/x86-firstonly.from seed/host/execenv/mutants/x86-firstonly.to
32cc seed/omc/omc.om
33mut-x86-firstonly run seed/host/execenv/x86-target.om+seed/host/execenv/execenv.om - - - 13
34cc pinned