app/test: minor updates
[dpdk.git] / app / test / commands.c
index 83f737f..6b14d2c 100644 (file)
@@ -1,7 +1,7 @@
 /*-
  *   BSD LICENSE
  * 
- *   Copyright(c) 2010-2013 Intel Corporation. All rights reserved.
+ *   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
  *   All rights reserved.
  * 
  *   Redistribution and use in source and binary forms, with or without
 #include <netinet/in.h>
 #include <termios.h>
 #ifndef __linux__
+#ifndef __FreeBSD__
 #include <net/socket.h>
 #endif
+#endif
 #include <inttypes.h>
 #include <errno.h>
 #include <sys/queue.h>
@@ -62,7 +64,6 @@
 #include <rte_ring.h>
 #include <rte_mempool.h>
 #include <rte_mbuf.h>
-#include <rte_timer.h>
 
 #include <cmdline_rdline.h>
 #include <cmdline_parse.h>
@@ -182,6 +183,8 @@ static void cmd_autotest_parsed(void *parsed_result,
                ret |= test_power();
        if (all || !strcmp(res->autotest, "common_autotest"))
                ret |= test_common();
+       if (all || !strcmp(res->autotest, "ivshmem_autotest"))
+               ret = test_ivshmem();
 #ifdef RTE_LIBRTE_PMD_RING
        if (all || !strcmp(res->autotest, "ring_pmd_autotest"))
                ret |= test_pmd_ring();
@@ -211,7 +214,7 @@ cmdline_parse_token_string_t cmd_autotest_autotest =
                        "timer_autotest#malloc_autotest#"
                        "memcpy_autotest#hash_autotest#"
                        "lpm_autotest#debug_autotest#"
-                       "lpm6_autotest#debug_autotest#"
+                       "lpm6_autotest#"
                        "errno_autotest#tailq_autotest#"
                        "string_autotest#multiprocess_autotest#"
                        "cpuflags_autotest#eal_flags_autotest#"
@@ -222,7 +225,7 @@ cmdline_parse_token_string_t cmd_autotest_autotest =
                        "memcpy_perf_autotest#ring_perf_autotest#"
                        "red_autotest#meter_autotest#sched_autotest#"
                        "memcpy_perf_autotest#kni_autotest#"
-                       "pm_autotest#"
+                       "pm_autotest#ivshmem_autotest#"
 #ifdef RTE_LIBRTE_ACL
                        "acl_autotest#"
 #endif