aboutsummaryrefslogtreecommitdiff
path: root/test/common_plat/validation/api/thread/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/common_plat/validation/api/thread/thread.h')
-rw-r--r--test/common_plat/validation/api/thread/thread.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/common_plat/validation/api/thread/thread.h b/test/common_plat/validation/api/thread/thread.h
new file mode 100644
index 000000000..d511c9259
--- /dev/null
+++ b/test/common_plat/validation/api/thread/thread.h
@@ -0,0 +1,33 @@
+/* Copyright (c) 2015, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef _ODP_TEST_THREAD_H_
+#define _ODP_TEST_THREAD_H_
+
+#include <odp_api.h>
+#include <odp_cunit_common.h>
+
+/* test functions: */
+#ifndef TEST_THRMASK
+#define TEST_THRMASK
+#endif
+#include "mask_common.h"
+void thread_test_odp_cpu_id(void);
+void thread_test_odp_thread_id(void);
+void thread_test_odp_thread_count(void);
+void thread_test_odp_thrmask_control(void);
+void thread_test_odp_thrmask_worker(void);
+
+/* test arrays: */
+extern odp_testinfo_t thread_suite[];
+
+/* test registry: */
+extern odp_suiteinfo_t thread_suites[];
+
+/* main test program: */
+int thread_main(int argc, char *argv[]);
+
+#endif