diff options
author | Tobias Bosch <tbosch@google.com> | 2019-09-30 10:11:25 -0700 |
---|---|---|
committer | Tobias Bosch <tbosch@google.com> | 2019-09-30 17:43:29 +0000 |
commit | bbb3c8113eb9c8b44d727874ae46066e7f2ca81b (patch) | |
tree | 76aff18464d8c859db0a53edd74f75ffe0d44d58 /compiler_wrapper/testdata/android_golden/clang_path.json | |
parent | 0010a5194eb63fa107d3d982fa6037b655c409fc (diff) | |
download | toolchain-utils-bbb3c8113eb9c8b44d727874ae46066e7f2ca81b.tar.gz |
Initial support for the android wrapper.
BUG=chromium:773875
TEST=golden tests and comparison against old andorid wrapper.
Change-Id: Ic11be4bc1399adcbf9c50134928aceda45e936ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1831787
Tested-by: Tobias Bosch <tbosch@google.com>
Reviewed-by: George Burgess <gbiv@chromium.org>
Diffstat (limited to 'compiler_wrapper/testdata/android_golden/clang_path.json')
-rw-r--r-- | compiler_wrapper/testdata/android_golden/clang_path.json | 137 |
1 files changed, 137 insertions, 0 deletions
diff --git a/compiler_wrapper/testdata/android_golden/clang_path.json b/compiler_wrapper/testdata/android_golden/clang_path.json new file mode 100644 index 00000000..2928bf89 --- /dev/null +++ b/compiler_wrapper/testdata/android_golden/clang_path.json @@ -0,0 +1,137 @@ +[ + { + "wd": "/tmp/stable", + "wrapper": { + "cmd": { + "path": "/tmp/stable/clang", + "args": [ + "main.cc" + ] + } + }, + "cmds": [ + { + "cmd": { + "path": "/tmp/stable/clang.real", + "args": [ + "main.cc" + ] + } + } + ] + }, + { + "wd": "/tmp/stable", + "wrapper": { + "cmd": { + "path": "/tmp/stable/clang", + "args": [ + "main.cc" + ] + }, + "stdout": "somemessage", + "stderr": "someerror", + "exitcode": 1 + }, + "cmds": [ + { + "cmd": { + "path": "/tmp/stable/clang.real", + "args": [ + "main.cc" + ] + }, + "stdout": "somemessage", + "stderr": "someerror", + "exitcode": 1 + } + ] + }, + { + "wd": "/tmp/stable", + "wrapper": { + "cmd": { + "path": "/tmp/stable/clang++", + "args": [ + "main.cc" + ] + } + }, + "cmds": [ + { + "cmd": { + "path": "/tmp/stable/clang++.real", + "args": [ + "main.cc" + ] + } + } + ] + }, + { + "wd": "/tmp/stable", + "wrapper": { + "cmd": { + "path": "a/b/c/d/e/f/g/clang", + "args": [ + "main.cc" + ] + } + }, + "cmds": [ + { + "cmd": { + "path": "a/b/c/d/e/f/g/clang.real", + "args": [ + "main.cc" + ] + } + } + ] + }, + { + "wd": "/tmp/stable", + "wrapper": { + "cmd": { + "path": "symlinked/clang_other", + "args": [ + "main.cc" + ] + } + }, + "cmds": [ + { + "cmd": { + "path": "symlinked/clang.real", + "args": [ + "main.cc" + ] + } + } + ] + }, + { + "wd": "/tmp/stable", + "env": [ + "PATH=/tmp/stable/pathenv" + ], + "wrapper": { + "cmd": { + "path": "clang", + "args": [ + "main.cc" + ] + } + }, + "cmds": [ + { + "cmd": { + "path": "/tmp/stable/pathenv/clang.real", + "args": [ + "main.cc" + ] + } + } + ] + } +] |