All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cr_tests: fix syscall numbers for powerpc
@ 2009-12-05  3:22 Nathan Lynch
       [not found] ` <1259983334-25854-1-git-send-email-ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Nathan Lynch @ 2009-12-05  3:22 UTC (permalink / raw)
  To: Serge E. Hallyn; +Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

Update to the values for ckpt-v19-rc2, and add eclone.
---
 cr.h |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/cr.h b/cr.h
index a58c2e4..8acd750 100644
--- a/cr.h
+++ b/cr.h
@@ -71,12 +71,16 @@
 /* parisc unsupported. */
 #if __powerpc__
 
+#ifndef __NR_eclone
+#define __NR_eclone 323
+#endif
+
 #ifndef __NR_checkpoint
-#define __NR_checkpoint 323
+#define __NR_checkpoint 324
 #endif
 
 #ifndef __NR_restart
-#define __NR_restart 324
+#define __NR_restart 325
 #endif
 
 #elif __s390x__
-- 
1.6.0.6

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] cr_tests: attempt all tests
       [not found] ` <1259983334-25854-1-git-send-email-ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>
@ 2009-12-05  3:22   ` Nathan Lynch
  2009-12-09 16:23   ` [PATCH] cr_tests: fix syscall numbers for powerpc Serge E. Hallyn
  1 sibling, 0 replies; 3+ messages in thread
From: Nathan Lynch @ 2009-12-05  3:22 UTC (permalink / raw)
  To: Serge E. Hallyn; +Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

Bailing at the first failure in runall.sh inhibits good test coverage.

Attempt to run all tests and keep running counts of tests passed and
attempted.

Signed-off-by: Nathan Lynch <ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>
---
 runall.sh |   60 ++++++++++++++++++++++++------------------------------------
 1 files changed, 24 insertions(+), 36 deletions(-)

diff --git a/runall.sh b/runall.sh
index 11e8fab..d15dc25 100644
--- a/runall.sh
+++ b/runall.sh
@@ -2,6 +2,20 @@
 # Copyright 2009 IBM Corp.
 # Author: Serge Hallyn
 
+declare -i total=0
+declare -i passed=0
+
+# $1 = status
+update_totals() {
+    local status=$1
+    total+=1
+    if [ $status -eq 0 ] ; then
+	passed+=1
+    else
+	echo FAIL
+    fi
+}
+
 which checkpoint > /dev/null 2>&1
 if [ $? -ne 0 ]; then
 	echo Please place ckpt from user-cr in your PATH
@@ -32,82 +46,56 @@ fi
 echo Running simple checkpoint/restart test
 pushd simple
 bash runtests.sh
-if [ $? -ne 0 ]; then
-	echo FAIL
-	exit 1
-fi
+update_totals $?
 popd
 
 echo Running counterloop tests
 pushd counterloop
 bash runtests.sh
-if [ $? -ne 0 ]; then
-	echo FAIL
-	exit 2
-fi
+update_totals $?
 popd
 
 echo Running fileio test
 pushd fileio
 bash runtests.sh
-if [ $? -ne 0 ]; then
-	echo FAIL
-	exit 3
-fi
+update_totals $?
 popd
 
 echo Running futex tests
 pushd futex
 bash run.sh
-if [ $? -ne 0 ]; then
-	echo FAIL
-	exit 8
-fi
+update_totals $?
 popd
 
 echo Running restart block test
 pushd sleep
 bash runtest.sh
-if [ $? -ne 0 ]; then
-	echo FAIL
-	exit 6
-fi
+update_totals $?
 popd
 
 echo Running process-tree tests
 pushd process-tree
 sh runtests.sh
-if [ $? -ne 0 ]; then
-	echo FAIL
-	exit 7
-fi
+update_totals $?
 popd
 
 echo Running bash test
 pushd bashckpt
 bash bash-cr.sh
-if [ $? -ne 0 ]; then
-	echo FAIL
-	exit 5
-fi
+update_totals $?
 popd
 
 echo Running ipc tests
 pushd ipc
 bash runtests.sh
-if [ $? -ne 0 ]; then
-	echo FAIL
-	exit 6
-fi
+update_totals $?
 popd
 
 echo Running userid/namespace test
 pushd userns
 bash runtests.sh
-if [ $? -ne 0 ]; then
-	echo FAIL
-	exit 4
-fi
+update_totals $?
 popd
 
+echo $passed out of $total test groups passed.
 exit 0
-- 
1.6.0.6

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] cr_tests: fix syscall numbers for powerpc
       [not found] ` <1259983334-25854-1-git-send-email-ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>
  2009-12-05  3:22   ` [PATCH] cr_tests: attempt all tests Nathan Lynch
@ 2009-12-09 16:23   ` Serge E. Hallyn
  1 sibling, 0 replies; 3+ messages in thread
From: Serge E. Hallyn @ 2009-12-09 16:23 UTC (permalink / raw)
  To: Nathan Lynch; +Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

Quoting Nathan Lynch (ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org):
> Update to the values for ckpt-v19-rc2, and add eclone.

Thanks, both applied.

> ---
>  cr.h |    8 ++++++--
>  1 files changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/cr.h b/cr.h
> index a58c2e4..8acd750 100644
> --- a/cr.h
> +++ b/cr.h
> @@ -71,12 +71,16 @@
>  /* parisc unsupported. */
>  #if __powerpc__
> 
> +#ifndef __NR_eclone
> +#define __NR_eclone 323
> +#endif
> +
>  #ifndef __NR_checkpoint
> -#define __NR_checkpoint 323
> +#define __NR_checkpoint 324
>  #endif
> 
>  #ifndef __NR_restart
> -#define __NR_restart 324
> +#define __NR_restart 325
>  #endif
> 
>  #elif __s390x__
> -- 
> 1.6.0.6

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-12-09 16:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-05  3:22 [PATCH] cr_tests: fix syscall numbers for powerpc Nathan Lynch
     [not found] ` <1259983334-25854-1-git-send-email-ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>
2009-12-05  3:22   ` [PATCH] cr_tests: attempt all tests Nathan Lynch
2009-12-09 16:23   ` [PATCH] cr_tests: fix syscall numbers for powerpc Serge E. Hallyn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.