Idris2/tests/base/system_info001/run

14 lines
256 B
Plaintext
Raw Normal View History

rm -rf build
rm -f expected
if ! NProcs=$(nproc || sysctl -n hw.ncpu) 2>/dev/null; then
echo "Command 'nproc' not found." >&2
exit 1
fi
echo "$NProcs processors" > expected
$1 --no-banner --no-color --console-width 0 NumProcessors.idr --exec main