summaryrefslogtreecommitdiff
path: root/validate
diff options
context:
space:
mode:
Diffstat (limited to 'validate')
-rwxr-xr-xvalidate24
1 files changed, 1 insertions, 23 deletions
diff --git a/validate b/validate
index 0332e5b1ec..2f82b2800b 100755
--- a/validate
+++ b/validate
@@ -119,29 +119,7 @@ check_packages () {
fi
}
-detect_cpu_count () {
- if [ "$CPUS" = "" ]; then
- # Windows standard environment variable
- CPUS="$NUMBER_OF_PROCESSORS"
- fi
-
- if [ "$CPUS" = "" ]; then
- # Linux
- CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
- fi
-
- if [ "$CPUS" = "" ]; then
- # FreeBSD
- CPUS=`getconf NPROCESSORS_ONLN 2>/dev/null`
- fi
-
- if [ "$CPUS" = "" ]; then
- # nothing helped
- CPUS="1"
- fi
-}
-
-detect_cpu_count
+CPUS=`mk/detect-cpu-count.sh`
if ! [ -d testsuite ]
then