blob: 4b223566fa1d65f5d4f80cf56f22542f5ca52a15 [file] [log] [blame]
Benny Prijonofb947dd2008-10-07 20:23:01 +00001/* $Id$ */
Benny Prijono5dcb38d2005-11-21 01:55:47 +00002/*
Benny Prijono844653c2008-12-23 17:27:53 +00003 * Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com)
Benny Prijono32177c02008-06-20 22:44:47 +00004 * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
Benny Prijono5dcb38d2005-11-21 01:55:47 +00005 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
Benny Prijono4ea0bf12006-02-02 19:16:07 +000020#include "test.h"
Benny Prijono5dcb38d2005-11-21 01:55:47 +000021
Benny Prijono42c5b9e2006-05-10 19:24:40 +000022
23/* Any tests that want to build a linked executable for RTEMS must include
24 this header to get a default config for the network stack. */
25#if defined(PJ_RTEMS)
26# include <bsp.h>
27# include <rtems.h>
28# include <rtems/rtems_bsdnet.h>
29# include "../../../pjlib/include/rtems-network-config.h"
30#endif
31
32
Benny Prijonofb947dd2008-10-07 20:23:01 +000033int main(int argc, char *argv[])
Benny Prijono5dcb38d2005-11-21 01:55:47 +000034{
Benny Prijono4ea0bf12006-02-02 19:16:07 +000035 int rc;
36 char s[10];
Benny Prijono5dcb38d2005-11-21 01:55:47 +000037
Benny Prijono4ea0bf12006-02-02 19:16:07 +000038 rc = test_main();
Benny Prijono5dcb38d2005-11-21 01:55:47 +000039
Benny Prijonofb947dd2008-10-07 20:23:01 +000040 if (argc == 2 && argv[1][0]=='-' && argv[1][1]=='i') {
41 puts("\nPress <ENTER> to quit");
Benny Prijono32d267b2009-01-01 22:08:21 +000042 if (fgets(s, sizeof(s), stdin) == NULL)
43 return rc;
Benny Prijonofb947dd2008-10-07 20:23:01 +000044 }
Benny Prijono5dcb38d2005-11-21 01:55:47 +000045
Benny Prijono4ea0bf12006-02-02 19:16:07 +000046 return rc;
Benny Prijono5dcb38d2005-11-21 01:55:47 +000047}
Benny Prijono20da7992008-12-18 16:48:43 +000048
49