xref: /spdk/test/unit/lib/scsi/scsi.c/scsi_ut.c (revision 8afdeef3becfe9409cc9e7372bd0bc10e8b7d46d)
1 /*   SPDX-License-Identifier: BSD-3-Clause
2  *   Copyright (C) 2016 Intel Corporation.
3  *   All rights reserved.
4  */
5 
6 #include "spdk/stdinc.h"
7 
8 #include "spdk/scsi.h"
9 
10 #include "spdk_internal/cunit.h"
11 
12 #include "scsi/scsi.c"
13 #include "common/lib/test_env.c"
14 
15 static void
16 scsi_init(void)
17 {
18 	int rc;
19 
20 	rc = spdk_scsi_init();
21 	CU_ASSERT_EQUAL(rc, 0);
22 }
23 
24 int
25 main(int argc, char **argv)
26 {
27 	CU_pSuite	suite = NULL;
28 	unsigned int	num_failures;
29 
30 	CU_initialize_registry();
31 
32 	suite = CU_add_suite("scsi_suite", NULL, NULL);
33 
34 	CU_ADD_TEST(suite, scsi_init);
35 
36 	num_failures = spdk_ut_run_tests(argc, argv, NULL);
37 	CU_cleanup_registry();
38 	return num_failures;
39 }
40