Add tests for R builds
This commit is contained in:
parent
69b268e6f7
commit
1de359f3e6
1 changed files with 505 additions and 0 deletions
18
test/test-r.sh
Executable file
18
test/test-r.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
|
||||
DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
|
||||
|
||||
R_HOME=/opt/R/${R_VERSION}/lib/R
|
||||
"${R_HOME}/bin/R" --version
|
||||
"${R_HOME}/bin/Rscript" -e 'sessionInfo()'
|
||||
|
||||
# List R devel dependencies
|
||||
gcc --version
|
||||
g++ --version
|
||||
gfortran --version
|
||||
|
||||
# List shared library dependencies (e.g. BLAS/LAPACK)
|
||||
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${R_HOME}/lib ldd "${R_HOME}/lib/libR.so"
|
||||
|
||||
DIR=${DIR} "${R_HOME}/bin/Rscript" /test/test.R
|
||||
Loading…
Reference in a new issue