|
From: <sv...@va...> - 2015-05-06 21:11:43
|
Author: carll
Date: Wed May 6 22:11:35 2015
New Revision: 15188
Log:
Patch 8 in a series of cleanup patches from Will Schmidt
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.
Added:
trunk/tests/check_ppc64le_cap
Modified:
trunk/none/tests/ppc32/jm_vec_isa_2_07.vgtest
Modified: trunk/none/tests/ppc32/jm_vec_isa_2_07.vgtest
==============================================================================
--- trunk/none/tests/ppc32/jm_vec_isa_2_07.vgtest (original)
+++ trunk/none/tests/ppc32/jm_vec_isa_2_07.vgtest Wed May 6 22:11:35 2015
@@ -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
Added: trunk/tests/check_ppc64le_cap
==============================================================================
--- trunk/tests/check_ppc64le_cap (added)
+++ trunk/tests/check_ppc64le_cap Wed May 6 22:11:35 2015
@@ -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
+
|