Skip to content

Commit a27a6a9

Browse files
committed
Merge pull request #25 from SRI-CSL/master
travis ci support
2 parents a82b88d + 2fa884d commit a27a6a9

File tree

5 files changed

+90
-1
lines changed

5 files changed

+90
-1
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: python
2+
python:
3+
- "3.3"
4+
- "2.7"
5+
- "2.6"
6+
7+
# command to install dependencies
8+
install:
9+
- sudo apt-get update
10+
- sudo apt-get install llvm-3.4 clang-3.4 libapr1-dev libaprutil1-dev
11+
- sudo apt-get install dragonegg llvm-3.3 llvm-gcc
12+
- export WLLVM_HOME=`pwd`
13+
14+
# command to run tests
15+
script:
16+
# build apache with clang (i.e. httpd-2.4.12)
17+
- ${WLLVM_HOME}/.travis/apache_clang.sh
18+
# when it works we can uncomment this puppy out
19+
# - ${WLLVM_HOME}/.travis/apache_dragonegg.sh
20+
21+

.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.0/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.6/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+

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2+
[![Build Status](https://travis-ci.org/SRI-CSL/whole-program-llvm.svg?branch=master)](https://travis-ci.org/SRI-CSL/whole-program-llvm)
3+
4+
15
Introduction
26
============
37

driver/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def __init__(self, inputList, exactMatches={}, patternMatches={}):
6868

6969
#iam: presumably the len(inputFiles) == 0 in this case
7070
'--version' : (0, ArgumentListFilter.compileOnlyCallback),
71+
'-v' : (0, ArgumentListFilter.compileOnlyCallback),
7172

7273
#warnings (apart from the regex below)
7374
'-w' : (0, ArgumentListFilter.compileOnlyCallback),
@@ -214,7 +215,7 @@ def __init__(self, inputList, exactMatches={}, patternMatches={}):
214215
r'^.+\.(c|cc|cpp|C|cxx|i|s|S)$' : (0, ArgumentListFilter.inputFileCallback),
215216
#iam: the object file recogition is not really very robust, object files
216217
# should be determined by their existance and contents...
217-
r'^.+\.(o|So|so|po|a)$' : (0, ArgumentListFilter.objectFileCallback),
218+
r'^.+\.(o|lo|So|so|po|a)$' : (0, ArgumentListFilter.objectFileCallback),
218219
r'^-(l|L).+$' : (0, ArgumentListFilter.linkUnaryCallback),
219220
r'^-I.+$' : (0, ArgumentListFilter.compileUnaryCallback),
220221
r'^-D.+$' : (0, ArgumentListFilter.compileUnaryCallback),

0 commit comments

Comments
 (0)