blob: 95215ff33854a391745e0f3db0c4cb2c56b5275d [file] [log] [blame]
Jens Geyer8a701962013-03-25 01:28:12 +02001(*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 *)
19
20
21program Multiplex.Test.Client;
22
23{$APPTYPE CONSOLE}
24
25uses
Jens Geyerd5436f52014-10-03 19:50:38 +020026 SysUtils,
27 Multiplex.Client.Main in 'Multiplex.Client.Main.pas',
Jens Geyer66f95362021-03-29 20:35:41 +020028 Benchmark in 'gen-delphi\Benchmark.pas',
29 Aggr in 'gen-delphi\Aggr.pas',
Jens Geyerd5436f52014-10-03 19:50:38 +020030 Thrift in '..\..\src\Thrift.pas',
Jens Geyerbea9bbe2016-04-20 00:02:40 +020031 Thrift.Socket in '..\..\src\Thrift.Socket.pas',
Jens Geyer606f1ef2018-04-09 23:09:41 +020032 Thrift.Exception in '..\..\src\Thrift.Exception.pas',
Jens Geyerd5436f52014-10-03 19:50:38 +020033 Thrift.Transport in '..\..\src\Thrift.Transport.pas',
34 Thrift.Transport.Pipes in '..\..\src\Thrift.Transport.Pipes.pas',
35 Thrift.Protocol in '..\..\src\Thrift.Protocol.pas',
36 Thrift.Protocol.Multiplex in '..\..\src\Thrift.Protocol.Multiplex.pas',
37 Thrift.Collections in '..\..\src\Thrift.Collections.pas',
Jens Geyera019cda2019-11-09 23:24:52 +010038 Thrift.Configuration in '..\..\src\Thrift.Configuration.pas',
Jens Geyerd5436f52014-10-03 19:50:38 +020039 Thrift.Server in '..\..\src\Thrift.Server.pas',
40 Thrift.Stream in '..\..\src\Thrift.Stream.pas',
Jens Geyereab29a02014-11-09 23:32:50 +010041 Thrift.TypeRegistry in '..\..\src\Thrift.TypeRegistry.pas',
Jens Geyer02230912019-04-03 01:12:51 +020042 Thrift.WinHTTP in '..\..\src\Thrift.WinHTTP.pas',
Jens Geyerd5436f52014-10-03 19:50:38 +020043 Thrift.Utils in '..\..\src\Thrift.Utils.pas';
44
Jens Geyer8a701962013-03-25 01:28:12 +020045var
46 nParamCount : Integer;
47 args : array of string;
48 i : Integer;
49 arg : string;
50 s : string;
51
52begin
53 try
54 Writeln( 'Multiplex TestClient '+Thrift.Version);
55 nParamCount := ParamCount;
56 SetLength( args, nParamCount);
57 for i := 1 to nParamCount do
58 begin
59 arg := ParamStr( i );
60 args[i-1] := arg;
61 end;
62 TTestClient.Execute( args );
63 Readln;
64 except
65 on E: Exception do begin
66 Writeln(E.ClassName, ': ', E.Message);
67 ExitCode := $FFFF;
68 end;
69 end;
70end.
71