![]() |
|
|||
0001 /** 0002 * @brief Test buildserver, buildclient and buildtms - client 0003 * This will run with default switch. 0004 * - tms will be built with TestSw 0005 * - atmisv71 will be built with TestSw too. 0006 * 0007 * @file atmiclt71_1.c 0008 */ 0009 /* ----------------------------------------------------------------------------- 0010 * Enduro/X Middleware Platform for Distributed Transaction Processing 0011 * Copyright (C) 2009-2016, ATR Baltic, Ltd. All Rights Reserved. 0012 * Copyright (C) 2017-2023, Mavimax, Ltd. All Rights Reserved. 0013 * This software is released under one of the following licenses: 0014 * AGPL (with Java and Go exceptions) or Mavimax's license for commercial use. 0015 * See LICENSE file for full text. 0016 * ----------------------------------------------------------------------------- 0017 * AGPL license: 0018 * 0019 * This program is free software; you can redistribute it and/or modify it under 0020 * the terms of the GNU Affero General Public License, version 3 as published 0021 * by the Free Software Foundation; 0022 * 0023 * This program is distributed in the hope that it will be useful, but WITHOUT ANY 0024 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 0025 * PARTICULAR PURPOSE. See the GNU Affero General Public License, version 3 0026 * for more details. 0027 * 0028 * You should have received a copy of the GNU Affero General Public License along 0029 * with this program; if not, write to the Free Software Foundation, Inc., 0030 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 0031 * 0032 * ----------------------------------------------------------------------------- 0033 * A commercial use license is available from Mavimax, Ltd 0034 * contact@mavimax.com 0035 * ----------------------------------------------------------------------------- 0036 */ 0037 #include <string.h> 0038 #include <stdio.h> 0039 #include <stdlib.h> 0040 #include <memory.h> 0041 #include <math.h> 0042 0043 #include <atmi.h> 0044 #include <ubf.h> 0045 #include <ndebug.h> 0046 #include <test.fd.h> 0047 #include <ndrstandard.h> 0048 #include <nstopwatch.h> 0049 #include <fcntl.h> 0050 #include <unistd.h> 0051 #include <nstdutil.h> 0052 #include "test71.h" 0053 0054 #ifdef __cplusplus 0055 extern "C" 0056 { 0057 #endif 0058 0059 /*---------------------------Externs------------------------------------*/ 0060 extern int run_tran_services(void); 0061 extern int run_echo_services(void); 0062 /*---------------------------Macros-------------------------------------*/ 0063 /*---------------------------Enums--------------------------------------*/ 0064 /*---------------------------Typedefs-----------------------------------*/ 0065 /*---------------------------Globals------------------------------------*/ 0066 /*---------------------------Statics------------------------------------*/ 0067 /*---------------------------Prototypes---------------------------------*/ 0068 0069 /** 0070 * Do the test call to the server 0071 */ 0072 int run_loop(int argc, char** argv) 0073 { 0074 int ret = EXSUCCEED; 0075 0076 if (EXSUCCEED!=run_tran_services()) 0077 { 0078 EXFAIL_OUT(ret); 0079 } 0080 0081 if (EXSUCCEED!=run_echo_services()) 0082 { 0083 EXFAIL_OUT(ret); 0084 } 0085 0086 out: 0087 tpterm(); 0088 fprintf(stderr, "Exit with %d\n", ret); 0089 0090 return ret; 0091 } 0092 0093 #ifdef __cplusplus 0094 } // extern "C" 0095 #endif 0096 /* vim: set ts=4 sw=4 et smartindent: */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |