Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/aspnetwebstack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorraghuramn <ranadimi@microsoft.com>2012-07-19 22:07:30 +0400
committerraghuramn <ranadimi@microsoft.com>2012-08-02 22:23:55 +0400
commit98d041ae352f3baeeef4de57a59ac946a685e0a2 (patch)
treed9aebbcdd4260629abd500aecdaa70d2ee7caad5 /tools
parent1ccfcdfc11da19a88f6efc6f512e67b68fa04fec (diff)
integration tests cleanup
1) minor cleanup in System.Web.Http.Integration.Test 2) add unreserve option for TestHttpNamespace.bat
Diffstat (limited to 'tools')
-rw-r--r--tools/RegisterHttpNamespaces.bat3
-rw-r--r--tools/TestHttpNamespace.bat27
2 files changed, 27 insertions, 3 deletions
diff --git a/tools/RegisterHttpNamespaces.bat b/tools/RegisterHttpNamespaces.bat
deleted file mode 100644
index 58642ceb..00000000
--- a/tools/RegisterHttpNamespaces.bat
+++ /dev/null
@@ -1,3 +0,0 @@
-@echo off
-netsh http add urlacl http://+:50231/ user=%USERDOMAIN%\%USERNAME%
-PAUSE \ No newline at end of file
diff --git a/tools/TestHttpNamespace.bat b/tools/TestHttpNamespace.bat
new file mode 100644
index 00000000..7aea4091
--- /dev/null
+++ b/tools/TestHttpNamespace.bat
@@ -0,0 +1,27 @@
+@ECHO OFF
+:CHECKFORSWITCHES
+IF '%1'=='/h' GOTO DISPINFO
+IF '%1'=='/H' GOTO DISPINFO
+IF '%1'=='/?' GOTO DISPINFO
+IF '%1'=='/register' GOTO REGISTER
+IF '%1'=='/unregister' GOTO UNREGISTER
+IF '%1'=='/REGISTER' GOTO REGISTER
+IF '%1'=='/UNREGISTER' GOTO UNREGISTER
+
+GOTO DISPINFO
+
+:REGISTER
+netsh http add urlacl http://+:50231/ user=%USERDOMAIN%\%USERNAME%
+GOTO END
+
+:UNREGISTER
+netsh http delete urlacl http://+:50231/
+GOTO END
+
+:DISPINFO
+ECHO Reserve/Unreserve http.sys url's used by aspnetwebstack unit tests
+ECHO.
+ECHO Syntax: TestHttpNamespace [/register] [/unregister] [/h]
+GOTO END
+
+:END