@@ -308,6 +308,7 @@ AC_CONFIG_FILES([Makefile
test/validation/cpumask/Makefile
test/validation/common/Makefile
test/validation/crypto/Makefile
+ test/validation/errno/Makefile
test/validation/init/Makefile
test/validation/packet/Makefile
test/validation/pktio/Makefile
@@ -8,6 +8,7 @@ TESTS = pktio/pktio_run \
${top_builddir}/test/validation/classification/classification_main$(EXEEXT) \
${top_builddir}/test/validation/cpumask/cpumask_main$(EXEEXT) \
${top_builddir}/test/validation/crypto/crypto_main \
+ ${top_builddir}/test/validation/errno/errno_main$(EXEEXT) \
${top_builddir}/test/validation/init/init_main_ok$(EXEEXT) \
${top_builddir}/test/validation/init/init_main_abort$(EXEEXT) \
${top_builddir}/test/validation/init/init_main_log$(EXEEXT) \
@@ -27,6 +27,7 @@ ODP_MODULES = buffer \
classification \
cpumask \
crypto \
+ errno \
init \
queue \
packet \
new file mode 100644
@@ -0,0 +1,2 @@
+errno_main
+liberrno.a
new file mode 100644
@@ -0,0 +1,8 @@
+include ../Makefile.inc
+
+noinst_LIBRARIES = liberrno.a
+liberrno_a_SOURCES = errno.c
+
+bin_PROGRAMS = errno_main$(EXEEXT)
+dist_errno_main_SOURCES = errno_main.c
+errno_main_LDADD = liberrno.a $(LIBCUNIT_COMMON) $(LIBODP)
similarity index 73%
rename from test/validation/ver_abt_log_dbg/odp_errno.c
rename to test/validation/errno/errno.c
@@ -22,3 +22,13 @@ CU_TestInfo test_odp_errno[] = {
{"sunny day", test_odp_errno_sunny_day},
CU_TEST_INFO_NULL,
};
+
+CU_SuiteInfo errno_suites[] = {
+ {"Errno", NULL, NULL, NULL, NULL, test_odp_errno},
+ CU_SUITE_INFO_NULL,
+};
+
+int errno_main(void)
+{
+ return odp_cunit_run(errno_suites);
+}
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2015, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+int errno_main(void);
new file mode 100644
@@ -0,0 +1,12 @@
+/* Copyright (c) 2015, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include "errno.h"
+
+int main(void)
+{
+ return errno_main();
+}
Errno (earlyer part of the odp_ver_abt_log_dbg module) now gets its own module. Test contents remains unchanged. Signed-off-by: Christophe Milard <christophe.milard@linaro.org> --- configure.ac | 1 + platform/linux-generic/test/Makefile.am | 1 + test/validation/Makefile.am | 1 + test/validation/errno/.gitignore | 2 ++ test/validation/errno/Makefile.am | 8 ++++++++ .../{ver_abt_log_dbg/odp_errno.c => errno/errno.c} | 10 ++++++++++ test/validation/errno/errno.h | 7 +++++++ test/validation/errno/errno_main.c | 12 ++++++++++++ 8 files changed, 42 insertions(+) create mode 100644 test/validation/errno/.gitignore create mode 100644 test/validation/errno/Makefile.am rename test/validation/{ver_abt_log_dbg/odp_errno.c => errno/errno.c} (73%) create mode 100644 test/validation/errno/errno.h create mode 100644 test/validation/errno/errno_main.c