X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_interrupts.c;h=6e3dec31a0de7be9b808fc69716e87b2f56c1054;hb=503f9e8b42562b923e73e908be6ba69964f1f1e7;hp=31f3d26a59782f99abe0f3db228d344bc8ba5f3b;hpb=f1a6c22424ceaf310e9796603ba3cb35387e5e5b;p=dpdk.git diff --git a/app/test/test_interrupts.c b/app/test/test_interrupts.c index 31f3d26a59..6e3dec31a0 100644 --- a/app/test/test_interrupts.c +++ b/app/test/test_interrupts.c @@ -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 @@ -35,8 +35,6 @@ #include #include -#include - #include #include #include @@ -159,7 +157,7 @@ test_interrupt_handle_compare(struct rte_intr_handle *intr_handle_l, } #else -/* to be implemented for baremetal later */ +/* to be implemented for bsd later */ static inline int test_interrupt_handle_sanity_check(struct rte_intr_handle *intr_handle) { @@ -397,7 +395,7 @@ test_interrupt_full_path_check(enum test_interrupt_handle_type intr_type) /** * Main function of testing interrupt. */ -int +static int test_interrupt(void) { int ret = -1; @@ -550,3 +548,8 @@ out: return ret; } +static struct test_command interrupt_cmd = { + .command = "interrupt_autotest", + .callback = test_interrupt, +}; +REGISTER_TEST_COMMAND(interrupt_cmd);