blob: ff0ca258cc3d4c24d5720162f8defb787838157a (
plain)
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
|
if [ $# -lt 1 ]; then
build/bin/mdtool run-md-tests build/tests/UnitTests.dll
build/bin/mdtool run-md-tests build/tests/*.Tests.dll
if [ ! -f "external/nrefactory/bin/Debug/ICSharpCode.NRefactory.Tests.dll" ]; then
build/bin/mdtool run-md-tests external/nrefactory/bin/Debug/ICSharpCode.NRefactory.Tests.dll
else
build/bin/mdtool run-md-tests external/nrefactory/bin/Release/ICSharpCode.NRefactory.Tests.dll
fi
if [ ! -f "external/fsharpbinding/MonoDevelop.FSharp.Tests/bin/Debug/MonoDevelop.FSharp.Tests.dll" ]; then
build/bin/mdtool run-md-tests external/fsharpbinding/MonoDevelop.FSharp.Tests/bin/Debug/MonoDevelop.FSharp.Tests.dll
else
build/bin/mdtool run-md-tests external/fsharpbinding/MonoDevelop.FSharp.Tests/bin/Release/MonoDevelop.FSharp.Tests.dll
fi
else
for arg in $@; do
if [[ $arg == *ICSharpCode.NRefactory.Tests.dll ]]; then
arg="external/nrefactory/bin/Debug/ICSharpCode.NRefactory.Tests.dll"
if [ ! -f "$arg" ]; then
arg="external/nrefactory/bin/Release/ICSharpCode.NRefactory.Tests.dll"
fi
elif [[ $arg == *MonoDevelop.FSharp.Tests.dll ]]; then
arg="external/fsharpbinding/MonoDevelop.FSharp.Tests/bin/Debug/MonoDevelop.FSharp.Tests.dll"
if [ ! -f "$arg" ]; then
arg="external/fsharpbinding/MonoDevelop.FSharp.Tests/bin/Release/MonoDevelop.FSharp.Tests.dll"
fi
elif [[ $arg != build/tests/* ]]; then
arg="build/tests/$arg"
fi
if [ -f $arg ]; then
(build/bin/mdtool run-md-tests $arg) || exit $?
fi
done
fi
|