aboutsummaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
authorRyan S. Arnold <ryan.arnold@linaro.org>2014-07-14 21:20:56 +0100
committerRyan S. Arnold <ryan.arnold@linaro.org>2014-07-14 21:20:56 +0100
commit69ea8cc51e92e8dc653e341da7b3783f31f1cdf4 (patch)
treeec89012d3eb3bb93f7d9ad31c0ea3972348a3532 /test.sh
parent92b9a45b234c510b10b3d124ae301872993201fc (diff)
Add support for --march
Added support for --march in order to build --target arm-linux-gnueabihf --march armv8-a for generating Aarch32 instructions. It is recommended to use --disable make_docs with this feature since making docs are currently broken when building for Aarch32. Change-Id: Ief6a42118cb12b02545d3c3355c45d108ea77c50
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/test.sh b/test.sh
index eab1303..bd40d1e 100755
--- a/test.sh
+++ b/test.sh
@@ -613,6 +613,15 @@ else
fail ${testlineno} "VALID: --dryrun --build gcc.git --stage 2"
fi
+cb_commands="--dry-run --target arm-none-linux-gnueabihf --march armv8-a --dump"
+match='Default march armv8-a'
+test_pass "${cb_commands}" "${match}"
+
+cb_commands="--dry-run --target arm-none-linux-gnueabihf --march=armv8-a --dump"
+match="A space is expected"
+test_fail "${cb_commands}" "${match}"
+
+
# If the tests pass successfully clean up /tmp/<tmpdir> but only if the
# directory name is conformant. We don't want to accidentally remove /tmp.
if test x"${tmpdir}" = x"/tmp"; then