Skip to content

Commit c4d1e24

Browse files
committed
updated the testing part of the build_spack.sh script
1 parent b4ad72a commit c4d1e24

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

build_spack.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,14 @@ cat magix3d/spack-configure-args.txt
7878

7979
#==========================================
8080
# testing the install
81-
#export PYTHONPATH=spack/opt/spack/gmds/lib:$PYTHONPATH
82-
#spack load py-pytest
83-
#pytest gmds/pygmds/tst gmds/test_samples
81+
82+
# fetch the test data
83+
git clone --recurse-submodules https://github.com/LIHPC-Computational-Geometry/magix3d_test_data_dir.git
84+
export MAGIX3D_TEST_DATA_DIR=$PWD/magix3d_test_data_dir
85+
86+
spack load python
87+
spack load py-pytest
88+
# when developing be careful to take the correct pyMagix3d library
89+
export PYTHONPATH=`spack find -p magix3d | awk 'NR==2 {print $2}'`/lib:$PYTHONPATH
90+
pytest -v -s magix3d/test_link
8491
#==========================================

0 commit comments

Comments
 (0)