[ovs-dev] [PATCH v1 1/3] tests/atlocal.in: Add check for aarch64 Architecture
Lance Yang
Lance.Yang at arm.com
Mon Mar 30 12:54:01 UTC 2020
From: Malvika Gupta <Malvika.Gupta at arm.com>
From: Malvika Gupta <malvika.gupta at arm.com>
This patch adds a condition to check if the CPU architecture is aarch64. If the
condition evaluates to true, $IS_ARM64 variable is set to 'yes'. For all other
architectures, this variable is set to 'no'.
Reviewed-by: Yanqin Wei <Yanqin.wei at arm.com>
Signed-off-by: Malvika Gupta <malvika.gupta at arm.com>
---
tests/atlocal.in | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/tests/atlocal.in b/tests/atlocal.in
index 1dc7cd5d0..02e2dc57f 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -111,6 +111,16 @@ if test "$IS_WIN32" = yes; then
export PYTHONLEGACYWINDOWSSTDIO
fi
+# Check for CPU architecture
+case `uname -m` in
+aarch64)
+ IS_ARM64="yes"
+ ;;
+*)
+ IS_ARM64="no"
+ ;;
+esac
+
# Check whether to run IPv6 tests.
$PYTHON3 -c '
import errno
--
2.17.1
More information about the dev
mailing list