X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_version.c;h=f66827d086f58ae8e4754a1df306531442ead3cf;hb=ff708facfcbf42f3dcb3c62d82ecd93e7b8c2506;hp=83474ec142ba8a3a3f7b5d96a7949a6c258481e7;hpb=21a7f4e2646e1cb6b0dbd6643e5d64f72355af58;p=dpdk.git diff --git a/app/test/test_version.c b/app/test/test_version.c index 83474ec142..f66827d086 100644 --- a/app/test/test_version.c +++ b/app/test/test_version.c @@ -1,13 +1,13 @@ /*- * BSD LICENSE - * + * * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright @@ -17,7 +17,7 @@ * * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -41,7 +41,7 @@ #include "test.h" -int +static int test_version(void) { const char *version = rte_version(); @@ -53,3 +53,9 @@ test_version(void) return -1; return 0; } + +static struct test_command version_cmd = { + .command = "version_autotest", + .callback = test_version, +}; +REGISTER_TEST_COMMAND(version_cmd);