diff options
author | Ryan S. Arnold <ryan.arnold@linaro.org> | 2014-07-02 23:14:37 +0100 |
---|---|---|
committer | Ryan S. Arnold <ryan.arnold@linaro.org> | 2014-07-02 23:57:31 +0100 |
commit | d70c1d00f7bed22900d446530f2854dece630285 (patch) | |
tree | dae7bff165885dd5347c15cafca578a63e145723 /test.sh | |
parent | dbe743b1aa1e4ec196ce2c3be5b0f156b93c4738 (diff) |
Make eglibc default. The gcc.conf file shouldn't set the clibrary.
The clibrary should be set in cbuild2.sh so that it can be overridden
and the values compared against expectations. This includes automatic
setting of newlib for baremetal targets.
Change-Id: Ifb468099162a6e48a43d82a82d5204d11348604a
Diffstat (limited to 'test.sh')
-rwxr-xr-x | test.sh | 52 |
1 files changed, 46 insertions, 6 deletions
@@ -278,12 +278,6 @@ cb_commands="--dryrun --target arm-none-linux-gnueabihf --checkout all" match='' test_pass "${cb_commands}" "${match}" -libc="glibc" -target="aarch64-none-elf" -cb_commands="--target ${target} --set libc=${libc}" -match="crosscheck_clibrary_target" -test_failure "${cb_commands}" "${match}" - cb_commands="--set=libc=glibc" match="A space is expected" test_failure "${cb_commands}" "${match}" @@ -325,6 +319,52 @@ match='' test_pass "${cb_commands}" "${match}" target="aarch64-none-elf" +# A baremetal target should pick the right clibrary (newlib) +cb_commands="--target ${target} --dump" +match='newlib' +test_pass "${cb_commands}" "${match}" + +target="armeb-none-linux-gnueabihf" +# A baremetal target should pick the right clibrary (newlib) +cb_commands="--target ${target} --dump" +match='eglibc' +test_pass "${cb_commands}" "${match}" + +target="armeb-linux-gnueabihf" +# A baremetal target should pick the right clibrary (newlib) +cb_commands="--target ${target} --dump" +match='eglibc' +test_pass "${cb_commands}" "${match}" + +target="armeb-none-linux-gnueabi" +cb_commands="--target ${target} --dump" +match='eglibc' +test_pass "${cb_commands}" "${match}" + +target="armeb-linux-gnueabi" +cb_commands="--target ${target} --dump" +match='eglibc' +test_pass "${cb_commands}" "${match}" + +target="armeb-none-linux-gnueabi" +# A baremetal target should pick the right clibrary (newlib) +cb_commands="--target ${target} --dump" +match='eglibc' +test_pass "${cb_commands}" "${match}" + +target="armeb-none-eabi" +# A baremetal target should pick the right clibrary (newlib) +cb_commands="--target ${target} --dump" +match='newlib' +test_pass "${cb_commands}" "${match}" + +target="arm-none-eabi" +# A baremetal target should pick the right clibrary (newlib) +cb_commands="--target ${target} --dump" +match='newlib' +test_pass "${cb_commands}" "${match}" + +target="aarch64-none-elf" libc="newlib" cb_commands="--target ${target} --set libc=${libc}" match='' |