made test001.bash usable on my workstation in addition to jenkin server

This commit is contained in:
Guillaume Raffy 2019-09-13 15:16:12 +02:00
parent e8523efd18
commit 669d5822d1
1 changed files with 19 additions and 2 deletions

View File

@ -1,3 +1,20 @@
./Fiji.app/ImageJ-linux64 --ij2 --headless --run './tests/test0001.py' "lipase_src_root_path='$(pwd)',raw_images_root_path='/opt/ipr/cluster/work.global/graffy/jenkins-store/lipase/raw-images'"
#!/bin/bash
FIJI_EXE_PATH=''
RAW_IMAGES_ROOT_PATH=''
LIPASE_SRC_ROOT_PATH="$(pwd)"
case "$(uname)" in
'Linux')
FIJI_EXE_PATH='./Fiji.app/ImageJ-linux64'
RAW_IMAGES_ROOT_PATH='/opt/ipr/cluster/work.global/graffy/jenkins-store/lipase/raw-images'
;;
'Darwin')
FIJI_EXE_PATH='/Applications/Fiji.app/Contents/MacOS/ImageJ-macosx'
RAW_IMAGES_ROOT_PATH='/Users/graffy/ownCloud/ipr/lipase/raw-images'
;;
*)
echo "unhandled openating system : $(uname)"
exit 1
esac
"$FIJI_EXE_PATH" --ij2 --headless --run './tests/test0001.py' "lipase_src_root_path='$LIPASE_SRC_ROOT_PATH',raw_images_root_path='$RAW_IMAGES_ROOT_PATH'"
# on macosx : /Applications/Fiji.app/Contents/MacOS/ImageJ-macosx --ij2 --headless --run './test0001.py'
# /Applications/Fiji.app/Contents/MacOS/ImageJ-macosx --ij2 --headless --run './tests/test0001.py' "lipase_src_root_path='$(pwd)',raw_images_root_path='/Users/graffy/ownCloud/ipr/lipase/raw-images'"