PageRenderTime 17ms CodeModel.GetById 8ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/IronPython_Main/Languages/IronPython/Samples/tests/Puzzle/Runner.ps1

#
Powershell | 40 lines | 18 code | 4 blank | 18 comment | 3 complexity | cf366d8a777f3bac56cab124122f1d3b MD5 | raw file
 1#####################################################################################
 2#
 3#  Copyright (c) Microsoft Corporation. All rights reserved.
 4#
 5# This source code is subject to terms and conditions of the Apache License, Version 2.0. A 
 6# copy of the license can be found in the License.html file at the root of this distribution. If 
 7# you cannot locate the  Apache License, Version 2.0, please send an email to 
 8# ironpy@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
 9# by the terms of the Apache License, Version 2.0.
10#
11# You must not remove this notice, or any other, from this software.
12#
13#
14#####################################################################################
15
16#------------------------------------------------------------------------------
17$CURRPATH = split-path -parent $MyInvocation.MyCommand.Definition
18. $CURRPATH\..\Common.ps1
19if (! $?) {
20    exit 1
21}
22
23#------------------------------------------------------------------------------
24setup-sampletests $CURRPATH\..\..\Puzzle
25sanitycheck-sample
26
27#------------------------------------------------------------------------------
28echo "Now running automated tests..."
29.\TestPuzzle.exe $env:IPY_CMD
30if (! $?) {
31    echo "TestPuzzle.exe failed!"
32    exit 1
33}
34else {
35    echo "Finished!"
36}
37
38#------------------------------------------------------------------------------
39takedown-sampletests $CURRPATH\..\..\Puzzle
40rm -force $CURRPATH\..\..\Puzzle\cache\*.jpeg