udp sockets

This commit is contained in:
2026-03-12 16:57:28 +01:00
parent c67abf5a8e
commit f21abaafff
2 changed files with 83 additions and 23 deletions

View File

@@ -14,7 +14,7 @@ func run_test[x: str] : void
io.print("... ")
let build_start_time: i64 = os.time()
if os.shell(str.concat("./target/release/zern ", x)) != 0
if os.run_shell_command(str.concat("./target/release/zern ", x)) != 0
os.exit(1)
let build_end_time: i64 = os.time()
@@ -39,7 +39,7 @@ func run_test[x: str] : void
run_cmd = str.concat(run_cmd, " test.zr")
let run_start_time: i64 = os.time()
if os.shell(run_cmd) != 0
if os.run_shell_command(run_cmd) != 0
os.exit(1)
let run_end_time: i64 = os.time()
@@ -50,14 +50,14 @@ func run_test[x: str] : void
io.println("ms")
func run_directory[dir: str] : void
let files: Array = os.listdir(dir)
let files: Array = os.list_directory(dir)
for i in 0..files->size
run_test(str.concat(dir, array.nth(files, i)))
array.free(files)
func main[] : i64
os.shell("cargo build --release")
os.run_shell_command("cargo build --release")
run_directory("examples/")
run_directory("examples/puzzles/")