automate_tests.sh 568 Bytes
Newer Older
1
2
3
4
#!/bin/bash

CURRENT_DIR=`pwd`
BUILD_DIR=$CURRENT_DIR/build
5
HPVM_RT=hpvm-rt/hpvm-rt.bc
6

7
if [ -f $BUILD_DIR/tools/hpvm/projects/$HPVM_RT ]; then
8
9
    true
else
10
    echo $BUILD_DIR/tools/hpvm/projects/$HPVM_RT
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
    echo HPVM not installed! Exiting without running tests!.
    exit 0
fi

LIT_DIR=$BUILD_DIR/bin/

LIT_TOOL=$LIT_DIR/llvm-lit

TEST_DIR=$CURRENT_DIR/test
REG_TEST_DIR=$TEST_DIR/regressionTests
UNIT_TEST_DIR=$TEST_DIR/unitTests

echo
echo Running tests ...
echo

# Run regression tests
$LIT_TOOL -v $REG_TEST_DIR

# Run unit tests
#$LIT_TOOL -v $UNIT_TEST_DIR