From 70bb7ef976a6a7b43d8aad6577773feaed7a2ebd Mon Sep 17 00:00:00 2001 From: Hoang Date: Thu, 26 May 2016 23:38:50 +0200 Subject: add metaSMT to travis --- .travis/klee.sh | 6 ++++++ .travis/metaSMT.sh | 20 ++++++++++++++++++++ .travis/solvers.sh | 4 ++++ 3 files changed, 30 insertions(+) create mode 100755 .travis/metaSMT.sh (limited to '.travis') diff --git a/.travis/klee.sh b/.travis/klee.sh index 296e1c83..64087b11 100755 --- a/.travis/klee.sh +++ b/.travis/klee.sh @@ -51,6 +51,7 @@ fi ############################################################################### KLEE_Z3_CONFIGURE_OPTION="" KLEE_STP_CONFIGURE_OPTION="" +KLEE_METASMT_CONFIGURE_OPTION="" SOLVER_LIST=$(echo "${SOLVERS}" | sed 's/:/ /') for solver in ${SOLVER_LIST}; do @@ -63,6 +64,10 @@ for solver in ${SOLVER_LIST}; do echo "Z3" KLEE_Z3_CONFIGURE_OPTION="--with-z3=/usr" ;; + metaSMT) + echo "metaSMT" + KLEE_METASMT_CONFIGURE_OPTION="--with-metasmt=${BUILD_DIR}/metaSMT/build/root" + ;; *) echo "Unknown solver ${solver}" exit 1 @@ -87,6 +92,7 @@ ${KLEE_SRC}/configure --with-llvmsrc=/usr/lib/llvm-${LLVM_VERSION}/build \ --with-llvmcxx=${KLEE_CXX} \ ${KLEE_STP_CONFIGURE_OPTION} \ ${KLEE_Z3_CONFIGURE_OPTION} \ + ${KLEE_METASMT_CONFIGURE_OPTION} \ ${KLEE_UCLIBC_CONFIGURE_OPTION} \ ${TCMALLOC_OPTION} \ CXXFLAGS="${COVERAGE_FLAGS}" \ diff --git a/.travis/metaSMT.sh b/.travis/metaSMT.sh new file mode 100755 index 00000000..7a0d1eef --- /dev/null +++ b/.travis/metaSMT.sh @@ -0,0 +1,20 @@ +#!/bin/bash -x + +# Get Boost, Z3, libgmp +sudo apt-get -y install libboost1.55-dev libz3 libz3-dev libgmp-dev + +# Clone +git clone git://github.com/hoangmle/metaSMT.git +cd metaSMT +git clone git://github.com/agra-uni-bremen/dependencies.git + +# Bootstrap +export BOOST_ROOT=/usr +sudo cp dependencies/Z3-2.19/Z3Config.cmake /usr # this is a hack +./bootstrap.sh -d deps -m RELEASE build -DmetaSMT_ENABLE_TESTS=off --build stp-git-basic --build boolector-1.5.118 --build minisat-git -DZ3_DIR=/usr +sudo cp deps/boolector-1.5.118/lib/* /usr/lib/ # +sudo cp deps/minisat-git/lib/* /usr/lib/ # hack +sudo cp deps/stp-git-basic/lib/* /usr/lib/ # + +# Build +make -C build install diff --git a/.travis/solvers.sh b/.travis/solvers.sh index db717f2d..d64c1077 100755 --- a/.travis/solvers.sh +++ b/.travis/solvers.sh @@ -20,6 +20,10 @@ for solver in ${SOLVER_LIST}; do # Should we install libz3-dbg too? sudo apt-get -y install libz3 libz3-dev ;; + metaSMT) + echo "metaSMT" + ${KLEE_SRC}/.travis/metaSMT.sh + ;; *) echo "Unknown solver ${solver}" exit 1 -- cgit 1.4.1