forked from morelinq/MoreLINQ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·29 lines (29 loc) · 875 Bytes
/
test.sh
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
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")"
./build.sh $c
if [[ -z "$1" ]]; then
configs="Debug Release"
else
configs="$1"
fi
for v in 2.1 3.0; do
for c in $configs; do
if [[ "$c" == "Debug" ]]; then
coverage_args="-p:CollectCoverage=true
-p:CoverletOutputFormat=opencover
-p:Exclude=\"[NUnit*]*,[MoreLinq]MoreLinq.Extensions.*,[MoreLinq]MoreLinq.Experimental.*\""
else
unset coverage_args
fi
dotnet test --no-build -c $c -f netcoreapp$v MoreLinq.Test $coverage_args
done
done
if [[ -z `which mono 2>/dev/null` ]]; then
echo>&2 NOTE! Mono does not appear to be installed so unit tests
echo>&2 against the Mono runtime will be skipped.
else
for c in $configs; do
mono MoreLinq.Test/bin/$c/net451/MoreLinq.Test.exe
done
fi