Skip to content

Commit e85a991

Browse files
committed
testing the bitcode store in travis too.
1 parent 7c3f82d commit e85a991

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.travis/musllvm.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ export WLLVM_OUTPUT=WARNING
99

1010
wllvm-sanity-checker
1111

12+
#setup the store so we test that feature as well
13+
export WLLVM_BC_STORE=/tmp/bc
14+
mkdir /tmp/bc
1215

1316
git clone https://github.com/SRI-CSL/musllvm.git musllvm
1417
cd musllvm
@@ -18,11 +21,24 @@ extract-bc --bitcode ./lib/libc.a
1821

1922
if [ -s "./lib/libc.a.bc" ]
2023
then
21-
echo "libc.a.bc."
24+
echo "libc.a.bc exists."
2225
else
2326
exit 1
2427
fi
2528

29+
#now lets makes sure the store has the bitcode too.
30+
mv ./lib/libc.a .
31+
make clean
32+
extract-bc --bitcode ./libc.a
33+
34+
if [ -s "./libc.a.bc" ]
35+
then
36+
echo "libc.a.bc exists."
37+
else
38+
exit 1
39+
fi
40+
41+
2642

2743

2844

0 commit comments

Comments
 (0)