diff --git a/SConstruct b/SConstruct index aba4e30..3ed4ffa 100644 --- a/SConstruct +++ b/SConstruct @@ -196,6 +196,7 @@ if env["BOOTDISK"] == "1": Depends(bootdisk, "#build/sbin/ifconfig/ifconfig") Depends(bootdisk, "#build/sbin/init/init") Depends(bootdisk, "#build/sys/castor") + Depends(bootdisk, "#build/tests/lwiptest") Depends(bootdisk, "#build/tests/pthreadtest") Depends(bootdisk, "#build/tests/threadtest") env.Alias('bootdisk', '#build/bootdisk.img') diff --git a/release/bootdisk.manifest b/release/bootdisk.manifest index 04d2346..5a8c3c3 100644 --- a/release/bootdisk.manifest +++ b/release/bootdisk.manifest @@ -14,6 +14,7 @@ DIR / FILE init build/sbin/init/init END DIR tests + FILE lwiptest build/tests/lwiptest FILE pthreadtest build/tests/pthreadtest FILE threadtest build/tests/threadtest END diff --git a/tests/lwiptest.c b/tests/lwiptest.c index cb41479..4c40dd0 100644 --- a/tests/lwiptest.c +++ b/tests/lwiptest.c @@ -1,10 +1,20 @@ +#include #include #include int main(int argc, const char *argv[]) { + struct netif netif; + static ip_addr_t addr, mask, gw; + + IP4_ADDR(&addr, 192, 168, 0, 1); + IP4_ADDR(&mask, 255, 255, 255, 0); + IP4_ADDR(&gw, 0, 0, 0, 0); + + lwip_init(); + lwip_socket(AF_INET, SOCK_STREAM, IP_PROTO_TCP); return 0;