-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruntests
More file actions
executable file
·36 lines (25 loc) · 799 Bytes
/
runtests
File metadata and controls
executable file
·36 lines (25 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: Copyright (c) 2021-2026 Chris Dragan
set -euo pipefail
UNAME=$(uname -s)
NOSTDLIB_TARGET=default
case "$UNAME" in
Linux) JOBS=$(grep -c ^processor /proc/cpuinfo) ;;
Darwin) JOBS=$(sysctl -n hw.ncpu) ;;
CYGWIN*|MINGW*|MSYS*) JOBS="$NUMBER_OF_PROCESSORS"
# On Windows, disable tests when building without stdlib
NOSTDLIB_TARGET=build
;;
*) JOBS=2 ;;
esac
echo "Using $JOBS jobs, arch: $(uname -m)"
run()
{
echo "$$ $@"
"$@"
}
run rm -rf Out
run make -j $JOBS -k debug=0 $NOSTDLIB_TARGET
run make -j $JOBS -k debug=1 $NOSTDLIB_TARGET
run make -j $JOBS -k debug=1 stdlib=1