Hi,

The following patch add IA64 support to kdump test case,

Regards,
CQ

diff -u testcases/kdump/setup.orig testcases/kdump/setup
--- testcases/kdump/setup.orig  2007-10-31 13:20:12.000000000 +0800
+++ testcases/kdump/setup       2007-10-31 13:47:48.000000000 +0800
@@ -8,7 +8,7 @@
 declare -i ERRORS=0
 declare -i NUM_ITERATIONS=1
 declare -i CRASH_FOUND=0
-# ARCH = 1 means it's ia32/x86_64 arch
+# ARCH = 1 means it's ia32/x86_64/ia64 arch
 # ARCH = 2 means it's ppc64 arch
 declare -i ARCH
 
@@ -22,21 +22,19 @@
 
 # Determine architecture we're running on
 arch=`uname -m`
-if [ `echo $arch |grep -e "i[3-6]86"` ]
-then
-        ARCH=1
-else if [ $arch == "x86_64" ]
-then
-        ARCH=1
-else if [ $arch == "ppc64" ]
-then
-        ARCH=2
+if [ `echo ${arch} |grep -e "i[3-6]86"` ]; then
+    ARCH=1
+elif [ "${arch}" = "x86_64" ]; then
+    ARCH=1
+elif [ "${arch}" = "ia64" ]; then
+    ARCH=1
+elif [ "${arch}" = "ppc64" ]; then
+    ARCH=2
 else
-        echo "Unsupported architecture... exiting"
-        exit
-fi
-fi
+    echo "Unsupported architecture... exiting"
+    exit 1
 fi
+
 # Determine the Kernel Version
 KERNEL_VERSION=$(uname -r | awk -F . '{ print $1 $2 $3}' | awk -F - '{ print 
$1 }' )
 if [ $KERNEL_VERSION -lt $LINUX_2_6_16 ]; then


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to