Ejemplo n.º 1
0
    public override void run(string[] args)
    {
        Ice.Properties properties = createTestProperties(ref args);

        //
        // For this test, we want to disable retries.
        //
        properties.setProperty("Ice.RetryIntervals", "-1");

        //
        // This test kills connections, so we don't want warnings.
        //
        properties.setProperty("Ice.Warn.Connections", "0");

        // This test relies on filling the TCP send/recv buffer, so
        // we rely on a fixed value for these buffers.
        properties.setProperty("Ice.TCP.SndSize", "50000");

        //
        // Setup the test transport plug-in.
        //
        properties.setProperty("Ice.Default.Protocol",
                               "test-" + properties.getPropertyWithDefault("Ice.Default.Protocol", "tcp"));

        using (var communicator = initialize(properties))
        {
            PluginI plugin = new PluginI(communicator);
            plugin.initialize();
            communicator.getPluginManager().addPlugin("Test", plugin);
            Test.BackgroundPrx background = AllTests.allTests(this);
            background.shutdown();
        }
    }
Ejemplo n.º 2
0
Archivo: Client.cs Proyecto: zhj149/ice
    public override int run(string[] args)
    {
        PluginI plugin = new PluginI(communicator());

        plugin.initialize();
        communicator().getPluginManager().addPlugin("Test", plugin);
        Test.BackgroundPrx background = AllTests.allTests(this);
        background.shutdown();
        return(0);
    }
Ejemplo n.º 3
0
    public override void run(string[] args)
    {
        var properties = createTestProperties(ref args);

        //
        // For this test, we want to disable retries.
        //
        properties["Ice.RetryIntervals"] = "-1";

        //
        // This test kills connections, so we don't want warnings.
        //
        properties["Ice.Warn.Connections"] = "0";

        // This test relies on filling the TCP send/recv buffer, so
        // we rely on a fixed value for these buffers.
        properties["Ice.TCP.SndSize"] = "50000";

        //
        // Setup the test transport plug-in.
        //
        string?protocol;

        if (!properties.TryGetValue("Ice.Default.Protocol", out protocol))
        {
            protocol = "tcp";
        }
        properties["Ice.Default.Protocol"] = $"test-{protocol}";

        using (var communicator = initialize(properties))
        {
            PluginI plugin = new PluginI(communicator);
            plugin.initialize();
            communicator.AddPlugin("Test", plugin);
            Test.BackgroundPrx background = AllTests.allTests(this);
            background.shutdown();
        }
    }
Ejemplo n.º 4
0
 public static int run(string[] args, Ice.Communicator communicator)
 {
     Test.BackgroundPrx background = AllTests.allTests(communicator);
     background.shutdown();
     return(0);
 }