forked from fuse-open/fuse-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-tests.sh
executable file
·50 lines (41 loc) · 1.99 KB
/
run-tests.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/sh
set -e
cd "`dirname "$0"`"
if [ "$OSTYPE" = msys ]; then
exe_prefix=""
else
exe_prefix="mono"
fi
if [ -z "$CONFIG" ]; then
CONFIG="Debug"
fi
help()
{
echo "This script executes Fuse tests locally. It doesn't automatically build Fuse, so remember to run 'build.sh' first!"
echo "By default it runs all the tests, however a filter can be specified by providing '--where'. See https://github.com/nunit/docs/wiki/Test-Selection-Language for this syntax."
echo
echo "All arguments are forwarded to NUnit3 Console, so see https://github.com/nunit/docs/wiki/Console-Command-Line for more help."
exit
}
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
help
fi
NUNIT_VERSION=3.6.0
# Install NUnit.Console
$exe_prefix .nuget/nuget.exe install NUnit.Console -version $NUNIT_VERSION -o packages
# The tests may create temporary files that we don't want git to find
script_path=`pwd`
mkdir -p bin/Tests
pushd bin/Tests > /dev/null
# Run tests
$exe_prefix "$script_path/packages/NUnit.ConsoleRunner.$NUNIT_VERSION/tools/nunit3-console.exe" --noresult --timeout=60000 --skipnontestassemblies --process=separate $@ \
"$script_path/Source/CodeCompletion/Outracks.CodeCompletion.CodeNinja.Tests/bin/$CONFIG/Outracks.CodeCompletion.CodeNinja.Tests.dll" \
"$script_path/Source/CodeCompletion/Outracks.CodeCompletion.UXNinja.Tests/bin/$CONFIG/Outracks.CodeCompletion.UXNinja.Tests.dll" \
"$script_path/Source/Common/Tests/bin/$CONFIG/Outracks.Common.Tests.dll" \
"$script_path/Source/Fuse/Tests/bin/$CONFIG/Outracks.Fuse.Protocol.Tests.dll" \
"$script_path/Source/Fusion/IntegrationTests/bin/$CONFIG/Fusion-IntegrationTests.exe" \
"$script_path/Source/Fusion/Tests/bin/$CONFIG/Outracks.Fusion.Tests.dll" \
"$script_path/Source/Preview/Tests/bin/$CONFIG/Fuse.Preview.Tests.dll" \
"$script_path/Source/Simulator/Tests/bin/$CONFIG/Outracks.Simulator.Tests.dll" \
"$script_path/Source/UnoHost/Tests/bin/$CONFIG/Outracks.UnoHost.Common.Tests.dll"
popd > /dev/null