mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-01 03:53:33 +00:00
40291c9db3
- Polyfill ucontext_t on FreeBSD/OpenBSD/NetBSD - Add tests confirming signals can edit CPU state - Work towards supporting ZIP filesystem on bare metal - Add more tinymath unit tests for POSIX conformance - Add X87 and SSE status flags to crash report - Fix some bugs in blinkenlights - Fix llvm build breakage
21 lines
458 B
Bash
Executable file
21 lines
458 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ $MODE = dbg ]; then
|
|
exit # TODO
|
|
fi
|
|
|
|
# smoke test userspace binary emulation
|
|
CMD="o/$MODE/tool/build/blinkenlights.com.dbg o/$MODE/examples/hello.com"
|
|
if OUTPUT="$($CMD)"; then
|
|
if [ x"$OUTPUT" = x"hello world" ]; then
|
|
touch o/$MODE/test/libc/release/emulate.ok
|
|
exit 0
|
|
else
|
|
printf '%s\n' "error: $CMD printed wrong output: $OUTPUT" >&2
|
|
exit 1
|
|
fi
|
|
else
|
|
RC=$?
|
|
printf '%s\n' "error: $CMD failed: $RC" >&2
|
|
exit $RC
|
|
fi
|