Skip to content

Commit 9fb2685

Browse files
committed
The start of a FAILING dragonegg travis test.
1 parent e6bfc89 commit 9fb2685

File tree

3 files changed

+70
-2
lines changed

3 files changed

+70
-2
lines changed

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@ python:
88
install:
99
- sudo apt-get update
1010
- sudo apt-get install llvm-3.4 clang-3.4 libapr1-dev libaprutil1-dev
11+
- sudo apt-get install dragonegg-4.8 llvm-3.3 llvm-gcc-4.8
12+
- sudo ln -s /usr/bin/llvm-gcc-4.8 /usr/bin/llvm-gcc
1113
- export WLLVM_HOME=`pwd`
1214

1315
# command to run tests
1416
script:
15-
# build apache (i.e. httpd-2.4.12)
16-
- ${WLLVM_HOME}/.travis/apache.sh
17+
# build apache with clang (i.e. httpd-2.4.12)
18+
- ${WLLVM_HOME}/.travis/apache_clang.sh
19+
# when it works we can uncomment this puppy out
20+
# - ${WLLVM_HOME}/.travis/apache_dragonegg.sh
21+
1722

.travis/apache_clang.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash -x
2+
# Make sure we exit if there is a failure
3+
set -e
4+
5+
6+
export PATH=/usr/lib/llvm-3.4/bin:${WLLVM_HOME}:${PATH}
7+
export LLVM_COMPILER=clang
8+
export WLLVM_OUTPUT=WARNING
9+
10+
wget http://apache.mirrors.pair.com//httpd/httpd-2.4.12.tar.gz
11+
tar xfz httpd-2.4.12.tar.gz
12+
mv httpd-2.4.12 apache_clang
13+
cd apache_clang
14+
CC=wllvm ./configure
15+
make
16+
extract-bc httpd
17+
18+
19+
if [ -s "httpd.bc" ]
20+
then
21+
echo "httpd.bc built."
22+
else
23+
exit 1
24+
fi
25+
26+
27+
28+
29+
30+

.travis/apache_dragonegg.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash -x
2+
# Make sure we exit if there is a failure
3+
set -e
4+
5+
6+
export PATH=/usr/lib/llvm-3.3/bin:${WLLVM_HOME}:${PATH}
7+
export LLVM_COMPILER=dragonegg
8+
export LLVM_GCC_PREFIX=llvm-
9+
export LLVM_DRAGONEGG_PLUGIN=/usr/lib/gcc/x86_64-linux-gnu/4.8/plugin/dragonegg.so
10+
11+
export WLLVM_OUTPUT=WARNING
12+
13+
wget http://apache.mirrors.pair.com//httpd/httpd-2.4.12.tar.gz
14+
tar xfz httpd-2.4.12.tar.gz
15+
mv httpd-2.4.12 apache_dragonegg
16+
cd apache_dragonegg
17+
CC=wllvm ./configure
18+
make
19+
extract-bc httpd
20+
21+
22+
if [ -s "httpd.bc" ]
23+
then
24+
echo "httpd.bc built."
25+
else
26+
exit 1
27+
fi
28+
29+
30+
31+
32+
33+

0 commit comments

Comments
 (0)