aboutsummaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
authorRyan S. Arnold <ryan.arnold@linaro.org>2014-07-14 17:32:17 +0100
committerRyan S. Arnold <ryan.arnold@linaro.org>2014-07-14 17:32:17 +0100
commit92882d814c4bfaffe6f1a65c6e8a1699117937c5 (patch)
treee9649c9458db9e9d333a7373cb200a29a14008d2 /test.sh
parent78c403cf6f1bf7790bce7db6f131f7ae0f0f2ae6 (diff)
cbuild2.sh: Make --dump a do_ option so it's position doesn't matter.
Change-Id: I89bdc9498cb9372a9ebabf6a9860ab31de6169af
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/test.sh b/test.sh
index c9a1a80..079b6ad 100755
--- a/test.sh
+++ b/test.sh
@@ -457,6 +457,16 @@ cb_commands="--disable update --dump"
match='Source Update no'
test_pass "${cb_commands}" "${match}"
+# Test dump ordering. --target processing is immediate, so --dump
+# should work before or after --target.
+cb_commands="--target arm-linux-gnueabihf --dump"
+match='Target is\: arm-linux-gnueabihf'
+test_pass "${cb_commands}" "${match}"
+
+cb_commands="--dump --target arm-linux-gnueabihf"
+match='Target is\: arm-linux-gnueabihf'
+test_pass "${cb_commands}" "${match}"
+
# This tests that --checkout and --build can be run together.
cb_commands="--dryrun --target arm-none-linux-gnueabihf --checkout all --build all"
match=''