mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-06 21:57:47 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,93 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
|
||||
<system.serviceModel>
|
||||
<services>
|
||||
<service
|
||||
name="Roblox.Test.RunService"
|
||||
behaviorConfiguration="RunServiceBehavior">
|
||||
<host>
|
||||
<baseAddresses>
|
||||
<add baseAddress="http://localhost:8000/Roblox.Test/RunService"/>
|
||||
</baseAddresses>
|
||||
</host>
|
||||
<!-- this endpoint is exposed at the base address provided by host: http://localhost:8000/Roblox.Test/RunService -->
|
||||
<endpoint address=""
|
||||
binding="basicHttpBinding"
|
||||
contract="Roblox.Test.IRun" />
|
||||
<!-- the mex endpoint is exposed at http://localhost:8000/Roblox.Test/RunService/mex -->
|
||||
<endpoint address="mex"
|
||||
binding="mexHttpBinding"
|
||||
contract="IMetadataExchange" />
|
||||
</service>
|
||||
</services>
|
||||
|
||||
<!--For debugging purposes set the includeExceptionDetailInFaults attribute to true-->
|
||||
<behaviors>
|
||||
<serviceBehaviors>
|
||||
<behavior name="RunServiceBehavior">
|
||||
<serviceMetadata httpGetEnabled="True"/>
|
||||
<serviceDebug includeExceptionDetailInFaults="False" />
|
||||
</behavior>
|
||||
</serviceBehaviors>
|
||||
</behaviors>
|
||||
|
||||
<!-- bindings for client side-->
|
||||
<bindings>
|
||||
<!-- we use this one.-->
|
||||
<basicHttpBinding>
|
||||
<binding name="BasicHttpBinding_IRun" closeTimeout="00:01:00"
|
||||
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
|
||||
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
|
||||
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
|
||||
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
|
||||
useDefaultWebProxy="true">
|
||||
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
|
||||
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
|
||||
<security mode="None">
|
||||
<transport clientCredentialType="None" proxyCredentialType="None"
|
||||
realm="" />
|
||||
<message clientCredentialType="UserName" algorithmSuite="Default" />
|
||||
</security>
|
||||
</binding>
|
||||
</basicHttpBinding>
|
||||
<wsHttpBinding>
|
||||
<binding name="WSHttpBinding_IRun" closeTimeout="00:01:00" openTimeout="00:01:00"
|
||||
receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false"
|
||||
transactionFlow="false" hostNameComparisonMode="StrongWildcard"
|
||||
maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
|
||||
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
|
||||
allowCookies="false">
|
||||
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
|
||||
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
|
||||
<reliableSession ordered="true" inactivityTimeout="00:10:00"
|
||||
enabled="false" />
|
||||
<security mode="Message">
|
||||
<transport clientCredentialType="Windows" proxyCredentialType="None"
|
||||
realm="" />
|
||||
<message clientCredentialType="Windows" negotiateServiceCredential="true"
|
||||
algorithmSuite="Default" establishSecurityContext="true" />
|
||||
</security>
|
||||
</binding>
|
||||
</wsHttpBinding>
|
||||
</bindings>
|
||||
|
||||
<!-- you will want to use this, but with a different address for each computer. -->
|
||||
<client>
|
||||
<!-- we use this one-->
|
||||
<endpoint address="http://localhost:8000/Roblox.Test/RunService"
|
||||
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IRun"
|
||||
contract="Roblox.Test.Client.IRun" name="BasicHttpBinding_IRun" />
|
||||
<endpoint address="http://localhost:8000/Roblox.Test/RunService"
|
||||
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IRun"
|
||||
contract="Roblox.Test.Client.IRun" name="WSHttpBinding_IRun">
|
||||
<identity>
|
||||
<userPrincipalName value="Heorot\ncoder" />
|
||||
</identity>
|
||||
</endpoint>
|
||||
</client>
|
||||
|
||||
</system.serviceModel>
|
||||
|
||||
</configuration>
|
||||
|
||||
@@ -0,0 +1,141 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using System.IO;
|
||||
|
||||
namespace Roblox.Test
|
||||
{
|
||||
[TestClass]
|
||||
[Serializable]
|
||||
public class MSUnitProxy
|
||||
{
|
||||
private TestContext testContextInstance;
|
||||
|
||||
private readonly string[] machines;
|
||||
private readonly string[] coremachines;
|
||||
|
||||
public MSUnitProxy()
|
||||
{
|
||||
machines = new string[]
|
||||
{
|
||||
"xyz",
|
||||
"monica",
|
||||
"imagestaging",
|
||||
"homebrew",
|
||||
"nforce",
|
||||
"guantanamo",
|
||||
"cigar",
|
||||
"acer",
|
||||
"foster",
|
||||
"amnesty",
|
||||
"chad",
|
||||
"redskins",
|
||||
"arnold",
|
||||
"helen",
|
||||
"gateway-quad"
|
||||
};
|
||||
|
||||
coremachines = new string[]
|
||||
{
|
||||
"xyz",
|
||||
"monica",
|
||||
"imagestaging",
|
||||
"guantanamo",
|
||||
"gateway-quad",
|
||||
"acer",
|
||||
"redskins",
|
||||
"chad"
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Gets or sets the test context which provides
|
||||
///information about and functionality for the current test run.
|
||||
///</summary>
|
||||
public TestContext TestContext
|
||||
{
|
||||
get
|
||||
{
|
||||
return testContextInstance;
|
||||
}
|
||||
set
|
||||
{
|
||||
testContextInstance = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[TestInitialize()]
|
||||
public void TestInitialize()
|
||||
{
|
||||
}
|
||||
|
||||
[TestCleanup()]
|
||||
public void TestCleanup()
|
||||
{
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void TestPing()
|
||||
{
|
||||
TextWriter tw = new StringWriter();
|
||||
var result = Program.Ping(tw, machines);
|
||||
tw.Flush();
|
||||
TestContext.WriteLine("{0}", tw.ToString());
|
||||
TestContext.WriteLine("Success: {0} of {1}", result.SuccessCount, result.FailureCount + result.SuccessCount);
|
||||
Assert.IsTrue(result.SuccessCount > result.FailureCount, "Success ratio");
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void RemoteBasicHouseOgreD3D()
|
||||
{
|
||||
TextWriter tw = new StringWriter();
|
||||
string binroot = Environment.GetEnvironmentVariable("PublishedTestBinRoot");
|
||||
var result = Program.Remote(binroot, tw, "TestBasicHouseOgreD3D", coremachines);
|
||||
tw.Flush();
|
||||
TestContext.WriteLine("{0}", tw.ToString());
|
||||
TestContext.WriteLine("Success: {0} of {1}", result.SuccessCount, result.FailureCount + result.SuccessCount);
|
||||
Assert.IsTrue(result.SuccessCount > result.FailureCount, "Success ratio");
|
||||
|
||||
|
||||
var sr = new StringReader(tw.ToString());
|
||||
Program.PublishResultsToDB(sr);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void RemoteRegressCrossroadsOgreD3D()
|
||||
{
|
||||
TextWriter tw = new StringWriter();
|
||||
string binroot = Environment.GetEnvironmentVariable("PublishedTestBinRoot");
|
||||
var result = Program.Remote(binroot, tw, "RegressCrossroadsOgreD3D", coremachines);
|
||||
tw.Flush();
|
||||
TestContext.WriteLine("{0}", tw.ToString());
|
||||
TestContext.WriteLine("Success: {0} of {1}", result.SuccessCount, result.FailureCount + result.SuccessCount);
|
||||
Assert.IsTrue(result.SuccessCount > result.FailureCount, "Success ratio");
|
||||
|
||||
|
||||
var sr = new StringReader(tw.ToString());
|
||||
Program.PublishResultsToDB(sr);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void RemoteRegressCrossroadsG3DGL()
|
||||
{
|
||||
TextWriter tw = new StringWriter();
|
||||
string binroot = Environment.GetEnvironmentVariable("PublishedTestBinRoot");
|
||||
var result = Program.Remote(binroot, tw, "RegressCrossroadsG3DGL", coremachines);
|
||||
tw.Flush();
|
||||
TestContext.WriteLine("{0}", tw.ToString());
|
||||
TestContext.WriteLine("Success: {0} of {1}", result.SuccessCount, result.FailureCount + result.SuccessCount);
|
||||
Assert.IsTrue(result.SuccessCount > result.FailureCount, "Success ratio");
|
||||
|
||||
|
||||
var sr = new StringReader(tw.ToString());
|
||||
Program.PublishResultsToDB(sr);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{FE7D771A-FED8-48B9-86B5-F7A5408026EC}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>MSUnitProxy</RootNamespace>
|
||||
<AssemblyName>MSUnitProxy</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<SccProjectName>SAK</SccProjectName>
|
||||
<SccLocalPath>SAK</SccLocalPath>
|
||||
<SccAuxPath>SAK</SccAuxPath>
|
||||
<SccProvider>SAK</SccProvider>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="MSUnitProxy.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Rig\Roblox.Test.csproj">
|
||||
<Project>{A35CBBF6-D87A-440E-8846-AED69FFBFB8D}</Project>
|
||||
<Name>Roblox.Test</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@@ -0,0 +1,35 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("MSUnitProxy")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("MSUnitProxy")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2010")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM componenets. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("e44dd482-ae1f-454f-a07c-e7aa5e7f2c27")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
Reference in New Issue
Block a user