]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Patch 8 in a series of cleanup patches from Will Schmidt
authorCarl Love <cel@us.ibm.com>
Wed, 6 May 2015 21:11:35 +0000 (21:11 +0000)
committerCarl Love <cel@us.ibm.com>
Wed, 6 May 2015 21:11:35 +0000 (21:11 +0000)
Add a helper script to determine if the platform is ppc64le.
This is specifically used to help exclude the 32-bit tests from being
run on a ppc64LE (ABIV2)  platform.  The 32-bit targets, specifically ppc32/*
is not built on LE.

This patch fixes Vagrind bugzilla 347322.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15188

none/tests/ppc32/jm_vec_isa_2_07.vgtest
tests/check_ppc64le_cap [new file with mode: 0644]

index a93060a0b97a395c55b519a24a8373c157f58fae..f69c126e64d6f432a005a1e207ab3e1b2c766106 100644 (file)
@@ -1,2 +1,2 @@
-prereq: ../../../tests/check_isa-2_07_cap
+prereq: ../../../tests/check_isa-2_07_cap && ! ../../../tests/check_ppc64le_cap
 prog: test_isa_2_07_part1 -a
diff --git a/tests/check_ppc64le_cap b/tests/check_ppc64le_cap
new file mode 100644 (file)
index 0000000..9f48888
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# Helper script to indicate if we are ppc64 LE.
+# Note: The ELFV2 ABI (for ppc64le) specifically does not
+# support the 32-bit environment.
+
+UNAME_M="$(uname -m)"
+
+if [ $UNAME_M != "ppc64le" ]; then
+       exit 1
+else
+       exit 0
+fi
+