20 lines
379 B
Bash
Executable File
20 lines
379 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Build and run the D unit tests for the toolchain modules.
|
|
# Usage: tests/run.sh
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
|
|
DMD="${DMD:-dmd}"
|
|
OUT="build/wtests"
|
|
|
|
mkdir -p build
|
|
|
|
"$DMD" -unittest -main -Isrc -of"$OUT" \
|
|
src/wcore/objfmt.d \
|
|
src/emulator/cpu.d \
|
|
src/emulator/bus.d \
|
|
src/assembler/assembler.d \
|
|
src/linker/linker.d
|
|
|
|
"$OUT"
|