Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed Aug 17, 2024
1 parent d9bf693 commit cf5d054
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion test/discard.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash
. $(dirname $0)/common.inc

[ $MACHINE = riscv64 -o $MACHINE = riscv32 ] && skip
[[ $MACHINE = riscv* ]] && skip
[[ $MACHINE = loongarch* ]] && skip

cat <<EOF | $CC -o $t/a.o -c -x assembler -Wa,-L -
.text
Expand Down
4 changes: 2 additions & 2 deletions test/strip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ grep -Fq _start $t/log
grep -Fq foo $t/log
grep -Fq bar $t/log

if [ $MACHINE '!=' riscv32 ] && [ $MACHINE '!=' riscv64 ]; then
if [[ $MACHINE != riscv* ]] && [[ $MACHINE != loongarch* ]]; then
grep -Fq .L.baz $t/log
fi

Expand All @@ -25,6 +25,6 @@ readelf --symbols $t/exe > $t/log
! grep -Fq foo $t/log || false
! grep -Fq bar $t/log || false

if [ $MACHINE '!=' riscv32 ] && [ $MACHINE '!=' riscv64 ]; then
if [[ $MACHINE != riscv* ]] && [[ $MACHINE != loongarch* ]]; then
! grep -Fq .L.baz $t/log || false
fi

0 comments on commit cf5d054

Please sign in to comment.