diff mbox

helper: test: add test for odph_pause

Message ID 1436902094-11361-1-git-send-email-mike.holmes@linaro.org
State Accepted
Commit 77b5d7563ddf0631838295d7503ce61e2be7de42
Headers show

Commit Message

Mike Holmes July 14, 2015, 7:28 p.m. UTC
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 helper/test/.gitignore   |  1 +
 helper/test/Makefile.am  |  4 +++-
 helper/test/odph_pause.c | 14 ++++++++++++++
 3 files changed, 18 insertions(+), 1 deletion(-)
 create mode 100644 helper/test/odph_pause.c

Comments

Maxim Uvarov July 16, 2015, 4:09 p.m. UTC | #1
Merged, thanks,
Maxim.

On 07/14/15 22:28, Mike Holmes wrote:
> Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
> ---
>   helper/test/.gitignore   |  1 +
>   helper/test/Makefile.am  |  4 +++-
>   helper/test/odph_pause.c | 14 ++++++++++++++
>   3 files changed, 18 insertions(+), 1 deletion(-)
>   create mode 100644 helper/test/odph_pause.c
>
> diff --git a/helper/test/.gitignore b/helper/test/.gitignore
> index 3542630..213bc5e 100644
> --- a/helper/test/.gitignore
> +++ b/helper/test/.gitignore
> @@ -3,3 +3,4 @@
>   odp_chksum
>   odp_process
>   odp_thread
> +odph_pause
> diff --git a/helper/test/Makefile.am b/helper/test/Makefile.am
> index 7b73602..fbf5a9b 100644
> --- a/helper/test/Makefile.am
> +++ b/helper/test/Makefile.am
> @@ -7,7 +7,8 @@ TESTS_ENVIRONMENT += TEST_DIR=${builddir}
>   
>   EXECUTABLES = odp_chksum$(EXEEXT) \
>                 odp_thread$(EXEEXT) \
> -              odp_process$(EXEEXT)
> +              odp_process$(EXEEXT)\
> +              odph_pause$(EXEEXT)
>   
>   COMPILE_ONLY =
>   
> @@ -27,3 +28,4 @@ dist_odp_thread_SOURCES = odp_thread.c
>   odp_thread_LDADD = $(LIB)/libodphelper.la $(LIB)/libodp.la
>   dist_odp_process_SOURCES = odp_process.c
>   odp_process_LDADD = $(LIB)/libodphelper.la $(LIB)/libodp.la
> +odph_pause_SOURCES = odph_pause.c
> diff --git a/helper/test/odph_pause.c b/helper/test/odph_pause.c
> new file mode 100644
> index 0000000..f5f5da3
> --- /dev/null
> +++ b/helper/test/odph_pause.c
> @@ -0,0 +1,14 @@
> +/* Copyright (c) 2015, Linaro Limited
> + * All rights reserved.
> + *
> + * SPDX-License-Identifier:     BSD-3-Clause
> + */
> +
> +#include <test_debug.h>
> +#include "../odph_pause.h"
> +
> +int main(int argc TEST_UNUSED, char *argv[] TEST_UNUSED)
> +{
> +	odph_pause();
> +	return 0;
> +}
diff mbox

Patch

diff --git a/helper/test/.gitignore b/helper/test/.gitignore
index 3542630..213bc5e 100644
--- a/helper/test/.gitignore
+++ b/helper/test/.gitignore
@@ -3,3 +3,4 @@ 
 odp_chksum
 odp_process
 odp_thread
+odph_pause
diff --git a/helper/test/Makefile.am b/helper/test/Makefile.am
index 7b73602..fbf5a9b 100644
--- a/helper/test/Makefile.am
+++ b/helper/test/Makefile.am
@@ -7,7 +7,8 @@  TESTS_ENVIRONMENT += TEST_DIR=${builddir}
 
 EXECUTABLES = odp_chksum$(EXEEXT) \
               odp_thread$(EXEEXT) \
-              odp_process$(EXEEXT)
+              odp_process$(EXEEXT)\
+              odph_pause$(EXEEXT)
 
 COMPILE_ONLY =
 
@@ -27,3 +28,4 @@  dist_odp_thread_SOURCES = odp_thread.c
 odp_thread_LDADD = $(LIB)/libodphelper.la $(LIB)/libodp.la
 dist_odp_process_SOURCES = odp_process.c
 odp_process_LDADD = $(LIB)/libodphelper.la $(LIB)/libodp.la
+odph_pause_SOURCES = odph_pause.c
diff --git a/helper/test/odph_pause.c b/helper/test/odph_pause.c
new file mode 100644
index 0000000..f5f5da3
--- /dev/null
+++ b/helper/test/odph_pause.c
@@ -0,0 +1,14 @@ 
+/* Copyright (c) 2015, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier:     BSD-3-Clause
+ */
+
+#include <test_debug.h>
+#include "../odph_pause.h"
+
+int main(int argc TEST_UNUSED, char *argv[] TEST_UNUSED)
+{
+	odph_pause();
+	return 0;
+}