Skip to content

Commit 46a2067

Browse files
committed
Improved test to also check system library includes
1 parent 8c9801f commit 46a2067

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

resources/dummy.c

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#include <ctype.h>
2+
3+
main(){}

scripts/test

+8-6
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ LIBC="/lib/ld-musl-$CPU_PORT.so.1"
88
PATH=`pwd`/bin:$PATH
99

1010
(
11-
mkdir -p build &&
12-
cd build || exit 1
11+
mkdir -p build || exit 1
1312

14-
echo 'main(){}' > dummy.c || exit 2
15-
$TARGET-gcc dummy.c || exit 3
16-
$TARGET-readelf -l a.out | grep -q $LIBC || exit 4
17-
rm dummy.c a.out || exit 5
13+
cp resources/dummy.c build || exit 2
14+
15+
cd build || exit 3
16+
17+
$TARGET-gcc dummy.c || exit 4
18+
$TARGET-readelf -l a.out | grep -q $LIBC || exit 5
19+
rm dummy.c a.out || exit 6
1820
) || exit $?

0 commit comments

Comments
 (0)