about summary refs log tree commit diff homepage
path: root/scripts/build/run-tests.sh
diff options
context:
space:
mode:
authorMartin Nowack <m.nowack@imperial.ac.uk>2022-03-25 22:57:31 +0000
committerCristian Cadar <c.cadar@imperial.ac.uk>2022-03-30 12:18:59 +0100
commit818275b7249250780ddd5ed021cae64288514270 (patch)
tree9ed884e1db33bb33ce992dc6afeaff75ee85f81b /scripts/build/run-tests.sh
parent71c1c45fe266d73e307f422f09f2afdc41c70ec3 (diff)
downloadklee-818275b7249250780ddd5ed021cae64288514270.tar.gz
Add support to `sudo` if necessary
Instead if executing system-relevant changes directly, use `sudo` on
Ubuntu-based machines.

Simplifies the installation procedure.
Diffstat (limited to 'scripts/build/run-tests.sh')
-rwxr-xr-xscripts/build/run-tests.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/build/run-tests.sh b/scripts/build/run-tests.sh
index 48337f40..76500da7 100755
--- a/scripts/build/run-tests.sh
+++ b/scripts/build/run-tests.sh
@@ -68,6 +68,8 @@ run_tests() {
   
   # If metaSMT is the only solver, then rerun lit tests with non-default metaSMT backends
   if [ "X${SOLVERS}" == "XmetaSMT" ]; then
+    base_path="$(python3 -m site --user-base)"
+    export PATH="$PATH:${base_path}/bin"
     available_metasmt_backends="btor stp z3 yices2 cvc4"
     for backend in $available_metasmt_backends; do
       if [ "X${METASMT_DEFAULT}" != "X$backend" ]; then