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