Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: visual_studio/NativeClientVSAddIn/test.bat

Issue 10790023: VS-Addin Build/Test/Install scripts (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: visual_studio/NativeClientVSAddIn/test.bat
diff --git a/visual_studio/NativeClientVSAddIn/test.bat b/visual_studio/NativeClientVSAddIn/test.bat
new file mode 100644
index 0000000000000000000000000000000000000000..7cb9dc4cf6d9856d5fd2212b3ebd90e51a0e8768
--- /dev/null
+++ b/visual_studio/NativeClientVSAddIn/test.bat
@@ -0,0 +1,20 @@
+@echo off
+
+:: Locations
+set out_directory=..\..\out\NativeClientVSAddIn\Test
+set mstest_file=Results.trx
+set test_assembly=..\..\out\NativeClientVSAddIn\Debug\UnitTests.dll
+
+:: Set up the Visual Studio environment
+call "%VS100COMNTOOLS%vsvars32.bat"
+
+:: Make the output directory and clean up existing mstest result file
+mkdir %out_directory%
+if exist %out_directory%\%mstest_file% del %out_directory%\%mstest_file%
+
+:: Run MSTest
+mstest /testcontainer:%test_assembly% /testsettings:Local.testsettings /resultsfile:%out_directory%\%mstest_file%
+
+:: Parse the result with python script, return python's exit status
+python check_test_results.py %out_directory%\%mstest_file%
+exit /B %ERRORLEVEL%

Powered by Google App Engine
This is Rietveld 408576698