Skip to content

Commit

Permalink
allow more default vendor names for debian
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
  • Loading branch information
tonistiigi committed May 6, 2021
1 parent bd56e72 commit c1a3c1e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions base/test-clang.bats
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ testHelloCLLD() {
clean
add clang lld
xxadd xx-c-essentials
run sh -c 'xx-clang --print-target-triple | sed s/unknown-//'
run sh -c 'xx-clang --print-target-triple | sed s/unknown-// | sed s/pc-//'
assert_success
assert_output $(xx-info triple)
[ -f /etc/llvm/xx-default.cfg ]
Expand All @@ -42,7 +42,7 @@ testHelloCLLD() {

testHelloCPPLLD() {
clean
run sh -c 'xx-clang++ --print-target-triple | sed s/unknown-//'
run sh -c 'xx-clang++ --print-target-triple | sed s/unknown-// | sed s/pc-//'
assert_success
assert_output $(xx-info triple)

Expand Down Expand Up @@ -101,7 +101,7 @@ testBuildHello() {

[ "$nativeTriple" != "$crossTriple" ]

run sh -c "clang --print-target-triple | sed s/unknown-//"
run sh -c "clang --print-target-triple | sed s/unknown-// | sed s/pc-//"
assert_success
assert_output "$nativeTriple"

Expand All @@ -123,7 +123,7 @@ testBuildHello() {
run xx-clang --unwrap
assert_success

run sh -c "clang --print-target-triple | sed s/unknown-//"
run sh -c "clang --print-target-triple | sed s/unknown-// | sed s/pc-//"
assert_success
assert_output "$nativeTriple"

Expand All @@ -137,7 +137,7 @@ testBuildHello() {
del lld
add binutils
export XX_NO_DOWNLOAD=1
run sh -c 'xx-clang --print-target-triple | sed s/unknown-//'
run sh -c 'xx-clang --print-target-triple | sed s/unknown-// | sed s/pc-//'
assert_success
assert_output $(xx-info triple)

Expand All @@ -147,7 +147,7 @@ testBuildHello() {

assert_output "-fuse-ld=/usr/bin/$(xx-info triple)-ld"
[ -f /usr/bin/$(xx-info triple)-clang ]
run sh -c "/usr/bin/$(xx-info triple)-clang --print-target-triple | sed s/unknown-//"
run sh -c "/usr/bin/$(xx-info triple)-clang --print-target-triple | sed s/unknown-// | sed s/pc-//"
assert_success
assert_output $(xx-info triple)
[ -f /usr/bin/$(xx-info triple)-clang++ ]
Expand Down

0 comments on commit c1a3c1e

Please sign in to comment.