libclamav/c++/llvmcheck.sh
3ed4d931
 #!/bin/sh
4a9a7333
 mkdir -p llvm/Release/bin
 mkdir -p llvm/Debug/bin
3ae7d794
 cp lli llc llvm-as not count FileCheck llvm-dis llvm/Release/bin/
 cp lli llc llvm-as not count FileCheck llvm-dis llvm/Debug/bin/
4a9a7333
 $GMAKE -v || { echo "GNU make not found, skipping LLVM tests"; exit 77; }
 python -V || { echo "Python not found, skipping LLVM tests"; exit 77; }
14f07c5c
 python <<EOF
 import sys
 if sys.hexversion < 0x2040000: sys.exit(1)
 EOF
 test $? -eq 0 || { echo "Python version older than 2.4, skipping LLVM tests"; exit 77; }
 exec $GMAKE -C llvm check-lit TESTSUITE="--no-tcl-as-sh CodeGen ExecutionEngine Integer Verifier"