Benny Prijono | fb947dd | 2008-10-07 20:23:01 +0000 | [diff] [blame^] | 1 | /* $Id$ */ |
Benny Prijono | 5dcb38d | 2005-11-21 01:55:47 +0000 | [diff] [blame] | 2 | /* |
Benny Prijono | 32177c0 | 2008-06-20 22:44:47 +0000 | [diff] [blame] | 3 | * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org> |
Benny Prijono | 5dcb38d | 2005-11-21 01:55:47 +0000 | [diff] [blame] | 4 | * |
| 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 Prijono | 4ea0bf1 | 2006-02-02 19:16:07 +0000 | [diff] [blame] | 19 | #include "test.h" |
Benny Prijono | 5dcb38d | 2005-11-21 01:55:47 +0000 | [diff] [blame] | 20 | |
Benny Prijono | 42c5b9e | 2006-05-10 19:24:40 +0000 | [diff] [blame] | 21 | |
| 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 Prijono | fb947dd | 2008-10-07 20:23:01 +0000 | [diff] [blame^] | 32 | int main(int argc, char *argv[]) |
Benny Prijono | 5dcb38d | 2005-11-21 01:55:47 +0000 | [diff] [blame] | 33 | { |
Benny Prijono | 4ea0bf1 | 2006-02-02 19:16:07 +0000 | [diff] [blame] | 34 | int rc; |
| 35 | char s[10]; |
Benny Prijono | 5dcb38d | 2005-11-21 01:55:47 +0000 | [diff] [blame] | 36 | |
Benny Prijono | 4ea0bf1 | 2006-02-02 19:16:07 +0000 | [diff] [blame] | 37 | rc = test_main(); |
Benny Prijono | 5dcb38d | 2005-11-21 01:55:47 +0000 | [diff] [blame] | 38 | |
Benny Prijono | fb947dd | 2008-10-07 20:23:01 +0000 | [diff] [blame^] | 39 | if (argc == 2 && argv[1][0]=='-' && argv[1][1]=='i') { |
| 40 | puts("\nPress <ENTER> to quit"); |
| 41 | fgets(s, sizeof(s), stdin); |
| 42 | } |
Benny Prijono | 5dcb38d | 2005-11-21 01:55:47 +0000 | [diff] [blame] | 43 | |
Benny Prijono | 4ea0bf1 | 2006-02-02 19:16:07 +0000 | [diff] [blame] | 44 | return rc; |
Benny Prijono | 5dcb38d | 2005-11-21 01:55:47 +0000 | [diff] [blame] | 45 | } |
Benny Prijono | fb947dd | 2008-10-07 20:23:01 +0000 | [diff] [blame^] | 46 | |