Skip to contentSkip to conversation

Rename runtests_noltp.sh script so have unique name

PATCH New Khem Raj 2 participants 2 messages Jan 7, 2016

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 Rename runtests_noltp.sh script so have unique name

From: Martin Jansa <[email protected]>

* they are installed in the same target path /opt/ltp/testcases/bin/runtests_noltp.sh and overwrite each other in non-deterministic way when multiple processes are used in "make install"

./temp/log.do_install:install -m 00775

    "ltp/20120903-r2/ltp-20120903/testcases/kernel/containers/sysvipc/runtests_noltp.sh"
    "ltp/20120903-r2/image/opt/ltp/testcases/bin/runtests_noltp.sh"
  ./temp/log.do_install:install -m 00775
    "ltp/20120903-r2/ltp-20120903/testcases/kernel/containers/utsname/runtests_noltp.sh"
    "ltp/20120903-r2/image/opt/ltp/testcases/bin/runtests_noltp.sh"
---
 .../kernel/containers/sysvipc/runipctests_noltp.sh | 31 ++++++++++++++++
 .../kernel/containers/sysvipc/runtests_noltp.sh    | 31 ----------------
 .../kernel/containers/utsname/runtests_noltp.sh    | 41 ----------------------
 .../kernel/containers/utsname/runutstests_noltp.sh | 41 ++++++++++++++++++++++
 4 files changed, 72 insertions(+), 72 deletions(-)
 create mode 100644 testcases/kernel/containers/sysvipc/runipctests_noltp.sh
 delete mode 100644 testcases/kernel/containers/sysvipc/runtests_noltp.sh
 delete mode 100755 testcases/kernel/containers/utsname/runtests_noltp.sh
 create mode 100755 testcases/kernel/containers/utsname/runutstests_noltp.sh
testcases/kernel/containers/sysvipc/runipctests_noltp.sh new file +31 -0
new file mode 100644
index 0000000..84f398f
@@ -0,0 +1,31 @@
+#!/bin/sh
+################################################################################
+##                                                                            ##
+## Copyright (c) International Business Machines  Corp., 2007                 ##
+##                                                                            ##
+## This program is free software;  you can redistribute it and#or modify      ##
+## it under the terms of the GNU General Public License as published by       ##
+## the Free Software Foundation; either version 2 of the License, or          ##
+## (at your option) any later version.                                        ##
+##                                                                            ##
+## This program is distributed in the hope that it will be useful, but        ##
+## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
+## or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License   ##
+## for more details.                                                          ##
+##                                                                            ##
+## You should have received a copy of the GNU General Public License          ##
+## along with this program;  if not, write to the Free Software               ##
+## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA    ##
+##                                                                            ##
+################################################################################
+
+exit_code=0
+echo "sysvipc tests"
+for type in none clone unshare; do
+      echo "**sysvipc $type"
+      ./shmnstest_noltp $type
+      if [ $? -ne 0 ]; then
+              exit_code=$?
+      fi
+done
+exit $exit_code
testcases/kernel/containers/sysvipc/runtests_noltp.sh deleted +0 -31
deleted file mode 100644
index 84f398f..0000000
@@ -1,31 +0,0 @@
-#!/bin/sh
-################################################################################
-##                                                                            ##
-## Copyright (c) International Business Machines  Corp., 2007                 ##
-##                                                                            ##
-## This program is free software;  you can redistribute it and#or modify      ##
-## it under the terms of the GNU General Public License as published by       ##
-## the Free Software Foundation; either version 2 of the License, or          ##
-## (at your option) any later version.                                        ##
-##                                                                            ##
-## This program is distributed in the hope that it will be useful, but        ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License   ##
-## for more details.                                                          ##
-##                                                                            ##
-## You should have received a copy of the GNU General Public License          ##
-## along with this program;  if not, write to the Free Software               ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA    ##
-##                                                                            ##
-################################################################################
-
-exit_code=0
-echo "sysvipc tests"
-for type in none clone unshare; do
-      echo "**sysvipc $type"
-      ./shmnstest_noltp $type
-      if [ $? -ne 0 ]; then
-              exit_code=$?
-      fi
-done
-exit $exit_code
testcases/kernel/containers/utsname/runtests_noltp.sh deleted +0 -41

41 lines not on this page · raw message

testcases/kernel/containers/utsname/runutstests_noltp.sh new file +41 -0

41 lines not on this page · raw message

Signature · 1 line
1.8.4.3
Applied
#1 lore raw

PATCH 1/1 Rename runtests_noltp.sh script so have unique name

----- Original Message -----

Quoted 14 lines

From: "Khem Raj" <[email protected]>
To: [email protected]
Cc: "Martin Jansa" <[email protected]>
Sent: Thursday, 7 January, 2016 8:40:08 AM
Subject: [LTP] [PATCH] Rename runtests_noltp.sh script so have unique name

From: Martin Jansa <[email protected]>

* they are installed in the same target path /opt/ltp/testcases/bin/runtests_noltp.sh and overwrite each other in non-deterministic way when multiple processes are used in "make install"

./temp/log.do_install:install -m 00775

Quoted 8 lines
    "ltp/20120903-r2/ltp-20120903/testcases/kernel/containers/sysvipc/runtests_noltp.sh"
    "ltp/20120903-r2/image/opt/ltp/testcases/bin/runtests_noltp.sh"
  ./temp/log.do_install:install -m 00775
    "ltp/20120903-r2/ltp-20120903/testcases/kernel/containers/utsname/runtests_noltp.sh"
    "ltp/20120903-r2/image/opt/ltp/testcases/bin/runtests_noltp.sh"

Applied.

Regards,
Jan

Quoted 260 lines
---
 .../kernel/containers/sysvipc/runipctests_noltp.sh | 31 ++++++++++++++++
 .../kernel/containers/sysvipc/runtests_noltp.sh    | 31 ----------------
 .../kernel/containers/utsname/runtests_noltp.sh    | 41
 ----------------------
 .../kernel/containers/utsname/runutstests_noltp.sh | 41
 ++++++++++++++++++++++
 4 files changed, 72 insertions(+), 72 deletions(-)
 create mode 100644 testcases/kernel/containers/sysvipc/runipctests_noltp.sh
 delete mode 100644 testcases/kernel/containers/sysvipc/runtests_noltp.sh
 delete mode 100755 testcases/kernel/containers/utsname/runtests_noltp.sh
 create mode 100755 testcases/kernel/containers/utsname/runutstests_noltp.sh
testcases/kernel/containers/sysvipc/runipctests_noltp.sh new file +3 -0
new file mode 100644
index 0000000..84f398f
@@ -0,0 +1,31 @@
+#!/bin/sh
+################################################################################
+##

##
+## Copyright (c) International Business Machines Corp., 2007 ##
+##
##
+## This program is free software; you can redistribute it and#or modify ##
+## it under the terms of the GNU General Public License as published by ##
+## the Free Software Foundation; either version 2 of the License, or ##
+## (at your option) any later version.
##
+##
##
+## This program is distributed in the hope that it will be useful, but ##
+## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
+## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
+## for more details.
##
+##
##
+## You should have received a copy of the GNU General Public License ##
+## along with this program; if not, write to the Free Software ##
+## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA ##
+##
##

testcases/kernel/containers/sysvipc/runipctests_noltp.sh new file +12 -0
+################################################################################
+
+exit_code=0
+echo "sysvipc tests"
+for type in none clone unshare; do
+      echo "**sysvipc $type"
+      ./shmnstest_noltp $type
+      if [ $? -ne 0 ]; then
+              exit_code=$?
+      fi
+done
+exit $exit_code
testcases/kernel/containers/sysvipc/runtests_noltp.sh deleted +0 -3
deleted file mode 100644
index 84f398f..0000000
@@ -1,31 +0,0 @@
-#!/bin/sh
-################################################################################
-##

##
-## Copyright (c) International Business Machines Corp., 2007 ##
-##
##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version.
##
-##
##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details.
##
-##
##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA ##
-##
##

testcases/kernel/containers/sysvipc/runtests_noltp.sh deleted +0 -12
-################################################################################
-
-exit_code=0
-echo "sysvipc tests"
-for type in none clone unshare; do
-      echo "**sysvipc $type"
-      ./shmnstest_noltp $type
-      if [ $? -ne 0 ]; then
-              exit_code=$?
-      fi
-done
-exit $exit_code
testcases/kernel/containers/utsname/runtests_noltp.sh deleted +0 -3
deleted file mode 100755
index 43cb7e2..0000000
@@ -1,41 +0,0 @@
-#!/bin/sh
-################################################################################
-##

##
-## Copyright (c) International Business Machines Corp., 2007 ##
-##
##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version.
##
-##
##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details.
##
-##
##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA ##
-##
##

testcases/kernel/containers/utsname/runtests_noltp.sh deleted +0 -22
-################################################################################
-
-oldhostname=`hostname`
-exit_code=0
-echo "unshare tests"
-for i in `seq 1 5`; do
-	echo "test $i (unshare)"
-	./utstest_noltp unshare $i
-	if [ $? -ne 0 ]; then
-		exit_code=$?
-	fi
-done
-echo "clone tests"
-for i in `seq 1 5`; do
-	echo "test $i (clone)"
-	./utstest_noltp clone $i
-	if [ $? -ne 0 ]; then
-		exit_code=$?
-	fi
-done
-hostname "$oldhostname"
-exit $exit_code
testcases/kernel/containers/utsname/runutstests_noltp.sh new file +3 -0
new file mode 100755
index 0000000..43cb7e2
@@ -0,0 +1,41 @@
+#!/bin/sh
+################################################################################
+##

##
+## Copyright (c) International Business Machines Corp., 2007 ##
+##
##
+## This program is free software; you can redistribute it and#or modify ##
+## it under the terms of the GNU General Public License as published by ##
+## the Free Software Foundation; either version 2 of the License, or ##
+## (at your option) any later version.
##
+##
##
+## This program is distributed in the hope that it will be useful, but ##
+## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
+## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
+## for more details.
##
+##
##
+## You should have received a copy of the GNU General Public License ##
+## along with this program; if not, write to the Free Software ##
+## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA ##
+##
##

testcases/kernel/containers/utsname/runutstests_noltp.sh new file +22 -1
+################################################################################
+
+oldhostname=`hostname`
+exit_code=0
+echo "unshare tests"
+for i in `seq 1 5`; do
+	echo "test $i (unshare)"
+	./utstest_noltp unshare $i
+	if [ $? -ne 0 ]; then
+		exit_code=$?
+	fi
+done
+echo "clone tests"
+for i in `seq 1 5`; do
+	echo "test $i (clone)"
+	./utstest_noltp clone $i
+	if [ $? -ne 0 ]; then
+		exit_code=$?
+	fi
+done
+hostname "$oldhostname"
+exit $exit_code
--

1.8.4.3

--
Mailing list info: http://lists.linux.it/listinfo/ltp