mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-20 18:21:47 +03:00
13 lines
211 B
Plaintext
Executable File
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
|