Idris2/tests/base/system_info001/run
2023-09-07 14:57:22 +01:00

13 lines
211 B
Plaintext
Executable File

. ../../testutils.sh
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
run NumProcessors.idr