Stand up the foundation every later step depends on: - Source layout: src/, src/infra/, tests/, examples/ (.gitkeep markers). - Makefile: `build` compiles the smoke program via $SX, `test` runs the runner over tests/**/*.sx, `publish-example` placeholder (real in P3.4). Compiler located via `SX ?= /Users/agra/projects/sx/zig-out/bin/sx`. - tests/run.sh: POSIX-sh runner; discovers tests/**/*.sx, runs each via `$SX run`, prints ok/FAIL, exits 0 only when all pass (errors on zero tests so the gate is never silently empty). - tests/smoke.sx: passing smoke test importing modules/std.sx — proves toolchain wiring end-to-end (std resolves via the binary's own location). - .gitignore: ignore build/ artifacts.
10 lines
328 B
Plaintext
10 lines
328 B
Plaintext
// Smoke test: proves the sx toolchain is wired end-to-end from this repo —
|
|
// the standard library import resolves, the program runs, and it exits 0.
|
|
// The runner (tests/run.sh) treats a clean exit as `ok`.
|
|
#import "modules/std.sx";
|
|
|
|
main :: () -> s32 {
|
|
print("distribution smoke test: toolchain ok\n");
|
|
return 0;
|
|
}
|