@@ -18,3 +18,25 @@ ODP_MODULES = buffer \
system
SUBDIRS = common $(ODP_MODULES)
+
+#the lib containing all platform agnostic tests:
+noinst_LTLIBRARIES = libodptests.la
+libodptests_la_SOURCES =
+libodptests_la_LIBADD = buffer/libbuffer.la \
+ classification/libclassification.la \
+ cpumask/libcpumask.la \
+ crypto/libcrypto.la \
+ errno/liberrno.la \
+ init/libinit.la \
+ packet/libpacket.la \
+ pktio/libpktio.la \
+ pool/libpool.la \
+ queue/libqueue.la \
+ random/librandom.la \
+ scheduler/libscheduler.la \
+ shmem/libshmem.la \
+ synchronizers/libsynchronizers.la \
+ system/libsystem.la \
+ thread/libthread.la \
+ time/libtime.la \
+ timer/libtimer.la
new file mode 100644
@@ -0,0 +1,29 @@
+/* Copyright (c) 2015, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef _ODP_TESTS_H_
+#define _ODP_TESTS_H_
+
+#include "buffer/buffer.h"
+#include "classification/classification.h"
+#include "cpumask/cpumask.h"
+#include "crypto/crypto.h"
+#include "errno/errno.h"
+#include "init/init.h"
+#include "packet/packet.h"
+#include "pktio/pktio.h"
+#include "pool/pool.h"
+#include "queue/queue.h"
+#include "random/random.h"
+#include "scheduler/scheduler.h"
+#include "shmem/shmem.h"
+#include "synchronizers/synchronizers.h"
+#include "system/system.h"
+#include "thread/thread.h"
+#include "time/time.h"
+#include "timer/timer.h"
+
+#endif
libodptests.la contains all platform agnostic test functions and symbols defined odptests.h (from all modules) It is meant to be used by ODP devloppers to pick up the tests they need (and disgard others) during the devlopment process on their platform. Signed-off-by: Christophe Milard <christophe.milard@linaro.org> --- since v1: fixed alphabetical order Saddly, I could not get Makefile.am and automake to generate the list of needed libs ( <module>/lib<module>.la ) from the list of modules The list is therefore repeated 3 times, twice in the Makefile and once in the odptests.h file... Not optimal but best I could do. Automake gurus are welcome to improve it :-) test/validation/Makefile.am | 22 ++++++++++++++++++++++ test/validation/odptests.h | 29 +++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 test/validation/odptests.h