Files
nethack/sys/lib/test/run.sh
2020-08-30 10:31:17 -07:00

41 lines
652 B
Bash
Executable File

#!/bin/bash -x
if [ x$1 == "xlib" ]; then
echo Doing lib...
make spotless
cd sys/lib
./setup.sh hints/macOS.2020
cd ../..
make
fi
if [ x$1 == "xrunlib" ]; then
LIBS="-Lsrc -lnethack -Llib/lua -llua -lm"
BADLIBS="-lncurses"
gcc -o nhlibtest libtest.c $LIBS $BADLIBS
./nhlibtest
fi
if [ x$1 == "xwasm" ]; then
echo Doing wasm...
make spotless
cd sys/lib
./setup.sh hints/wasm
cd ../..
make
fi
if [ x$1 == "xrunwasm" ]; then
node test.js
fi
if [ x$1 == "xbin" ]; then
echo Doing bin...
make spotless
cd sys/unix
./setup.sh hints/macOS.2020
cd ../..
make
fi