Idris2/tests/base/system_info001/run
Kamil Shakirov c4b41ee1ff Remove all mentions of realpath from docs
`realpath` is no longer needed to run executables.
2021-07-16 21:20:11 +06:00

14 lines
256 B
Plaintext
Executable File

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