validation: creation of the test superlib

Message ID 1438180116-30739-1-git-send-email-christophe.milard@linaro.org
State New
Headers show

Commit Message

Christophe Milard July 29, 2015, 2:28 p.m.
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>
---

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

Comments

Maxim Uvarov July 30, 2015, 3:30 p.m. | #1
On 07/29/15 17:28, Christophe Milard wrote:
> 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>
> ---
>
> 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
>
> diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am
> index 56ddd64..8dac877 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:
contains
> +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 \
> +			queue/libqueue.la \
> +			packet/libpacket.la \
> +			pktio/libpktio.la \
> +			pool/libpool.la \
> +			random/librandom.la \
> +			scheduler/libscheduler.la \
> +			synchronizers/libsynchronizers.la \
> +			thread/libthread.la \
> +			time/libtime.la \
> +			timer/libtimer.la \
> +			shmem/libshmem.la \
> +			system/libsystem.la

alphabetic sort here please.

Maxim.
> diff --git a/test/validation/odptests.h b/test/validation/odptests.h
> new file mode 100644
> index 0000000..33a3e07
> --- /dev/null
> +++ b/test/validation/odptests.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

Patch

diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am
index 56ddd64..8dac877 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 = 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 \
+			queue/libqueue.la \
+			packet/libpacket.la \
+			pktio/libpktio.la \
+			pool/libpool.la \
+			random/librandom.la \
+			scheduler/libscheduler.la \
+			synchronizers/libsynchronizers.la \
+			thread/libthread.la \
+			time/libtime.la \
+			timer/libtimer.la \
+			shmem/libshmem.la \
+			system/libsystem.la
diff --git a/test/validation/odptests.h b/test/validation/odptests.h
new file mode 100644
index 0000000..33a3e07
--- /dev/null
+++ b/test/validation/odptests.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