run.sh 1.31 KB
Newer Older
incardon's avatar
incardon committed
1 2
#! /bin/bash

incardon's avatar
incardon committed
3 4
hostname=$(hostname)
branch=$3
incardon's avatar
incardon committed
5 6 7 8 9 10 11

# Make a directory in /tmp/openfpm_data

cd "$1/openfpm_io"

if [ "$2" == "gin" ]
then
incardon's avatar
incardon committed
12
 module load gcc/4.9.2
incardon's avatar
incardon committed
13 14 15
 module load boost/1.54.0
fi

incardon's avatar
incardon committed
16
if [ x"$hostname" == x"cifarm-centos-node.mpi-cbg.de"  ]; then
incardon's avatar
incardon committed
17
        export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/openfpm_dependencies/openfpm_io/$branch/HDF5/lib"
incardon's avatar
incardon committed
18
	export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/openfpm_dependencies/openfpm_io/$branch/BOOST/lib"
incardon's avatar
incardon committed
19 20 21 22
fi

if [ x"$hostname" == x"cifarm-ubuntu-node"  ]; then
        export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/openfpm_dependencies/openfpm_io/$branch/HDF5/lib"
incardon's avatar
incardon committed
23
	export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/openfpm_dependencies/openfpm_io/$branch/BOOST/lib"
incardon's avatar
incardon committed
24 25 26
fi

if [ x"$hostname" == x"cifarm-mac-node.mpi-cbg.de"  ]; then
incardon's avatar
incardon committed
27
        export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:$HOME/openfpm_dependencies/openfpm_io/$branch/HDF5/lib"
incardon's avatar
incardon committed
28
	export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:$HOME/openfpm_dependencies/openfpm_io/$branch/BOOST/lib"
incardon's avatar
incardon committed
29 30
fi

incardon's avatar
incardon committed
31
./build/src/io
incardon's avatar
incardon committed
32 33 34 35 36 37
if [ $? -ne 0 ]; then
   curl -X POST --data "payload={\"icon_emoji\": \":jenkins:\", \"username\": \"jenkins\"  , \"attachments\":[{ \"title\":\"Error:\", \"color\": \"#FF0000\", \"text\":\"$2 failed to complete the openfpm_io test \" }] }" https://hooks.slack.com/services/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
   exit 1 ; 
fi