libtestodp.la contains all platform agnostic test functions and symbols defined testodp.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.mil...@linaro.org> --- since v1: fixed alphabetical order since v2: changed lib name from lib<module> to libtest<module> Also changed the superlib name to libtestodp, for consistency 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 testodp.h file... Not optimal but best I could do. Automake gurus are welcome to improve it :-) test/validation/Makefile.am | 22 ++++++++++++++++++++++ test/validation/testodp.h | 29 +++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 test/validation/testodp.h diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index 56ddd64..8c3dc92 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -18,3 +18,25 @@ ODP_MODULES = buffer \ system SUBDIRS = common $(ODP_MODULES) + +#the lib containing all platform agnostic tests: +noinst_LTLIBRARIES = libtestodp.la +libtestodp_la_SOURCES = +libtestodp_la_LIBADD = buffer/libtestbuffer.la \ + classification/libtestclassification.la \ + cpumask/libtestcpumask.la \ + crypto/libtestcrypto.la \ + errno/libtesterrno.la \ + init/libtestinit.la \ + packet/libtestpacket.la \ + pktio/libtestpktio.la \ + pool/libtestpool.la \ + queue/libtestqueue.la \ + random/libtestrandom.la \ + scheduler/libtestscheduler.la \ + shmem/libtestshmem.la \ + synchronizers/libtestsynchronizers.la \ + system/libtestsystem.la \ + thread/libtestthread.la \ + time/libtesttime.la \ + timer/libtesttimer.la diff --git a/test/validation/testodp.h b/test/validation/testodp.h new file mode 100644 index 0000000..33a3e07 --- /dev/null +++ b/test/validation/testodp.h @@ -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 -- 2.1.4 _______________________________________________ lng-odp mailing list lng-odp@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lng-odp