summaryrefslogtreecommitdiffstats
path: root/testsuite/init01/test_main.c
blob: 61d7836b91bc797fc5bfff9eb3eee2867d650c36 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
 *  This is the body of the test. It does not do much except ensure
 *  that the target is alive after initializing the TCP/IP stack.
 */

#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>

#define TEST_NAME "LIBBSD INIT 1"

static void test_main(void)
{
  puts( "Sleeping to see what happens" );
  sleep( 5 );

  exit( 0 );
}

/* for old configuration structure */
#include <rtems/rtems_bsdnet.h>

/*
 * Network configuration
 */
struct rtems_bsdnet_config rtems_bsdnet_config = {
    NULL,                   /* Network interface */
    NULL,                   /* Use fixed network configuration */
    0,                      /* Default network task priority */
    0,                      /* Default mbuf capacity */
    0,                      /* Default mbuf cluster capacity */
    "testSystem",           /* Host name */
    "nowhere.com",          /* Domain name */
    "127.0.0.1",            /* Gateway */
    "127.0.0.1",            /* Log host */
    {"127.0.0.1" },         /* Name server(s) */
    {"127.0.0.1" },         /* NTP server(s) */
    0,
    0,
    0,
    0,
    0
};

#include <rtems/bsd/test/default-init.h>