summaryrefslogtreecommitdiff
path: root/tests/runtest.sh
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2016-04-21 11:04:05 +0200
committerKamil Rytarowski <n54@gmx.com>2016-04-22 10:40:13 +0200
commit7c83f9b534e8a3dcf154470b492fd5d4206b99b4 (patch)
treee5c6372f891771a1cd77c10e2d12382978bfb24f /tests/runtest.sh
parent660f57009f5a0d2455b1b4e8f6bd2905dc12fe1a (diff)
downloadcoreclr-7c83f9b534e8a3dcf154470b492fd5d4206b99b4.tar.gz
coreclr-7c83f9b534e8a3dcf154470b492fd5d4206b99b4.tar.bz2
coreclr-7c83f9b534e8a3dcf154470b492fd5d4206b99b4.zip
Add NetBSD support in tests/runtest.sh
Diffstat (limited to 'tests/runtest.sh')
-rwxr-xr-xtests/runtest.sh17
1 files changed, 14 insertions, 3 deletions
diff --git a/tests/runtest.sh b/tests/runtest.sh
index 8cf2603cee..76761f89c8 100755
--- a/tests/runtest.sh
+++ b/tests/runtest.sh
@@ -78,13 +78,18 @@ xunitTestOutputPath=
OSName=$(uname -s)
libExtension=
case $OSName in
+ Darwin)
+ libExtension="dylib"
+ ;;
+
Linux)
libExtension="so"
;;
- Darwin)
- libExtension="dylib"
+ NetBSD)
+ libExtension="so"
;;
+
*)
echo "Unsupported OS $OSName detected, configuring as if for Linux"
libExtension="so"
@@ -490,7 +495,13 @@ function run_test {
}
# Variables for running tests in the background
-((maxProcesses = $(getconf _NPROCESSORS_ONLN) * 3 / 2)) # long tests delay process creation, use a few more processors
+if [ `uname` = "NetBSD" ]; then
+ NumProc=$(getconf NPROCESSORS_ONLN)
+else
+ NumProc=$(getconf _NPROCESSORS_ONLN)
+fi
+((maxProcesses = $NumProc * 3 / 2)) # long tests delay process creation, use a few more processors
+
((nextProcessIndex = 0))
((processCount = 0))
declare -a scriptFilePaths