File: run_tutorials.sh

package info (click to toggle)
ospray 3.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,048 kB
  • sloc: cpp: 80,569; ansic: 951; sh: 805; makefile: 170; python: 69
file content (57 lines) | stat: -rwxr-xr-x 1,182 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
## Copyright 2016 Intel Corporation
## SPDX-License-Identifier: Apache-2.0

export LD_LIBRARY_PATH=`pwd`/build/install/ospray/lib:$LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=`pwd`/build/install/ospray/lib:$DYLD_LIBRARY_PATH
export PATH=`pwd`/build/install/ospray/bin:$PATH

while [[ $# -gt 0 ]]
do
key="$1"
case $key in
    TEST_MPI)
    TEST_MPI=true
    shift
    ;;
    *)
    shift
    ;;
esac
done

exitCode=0

echo -e "\n\nRunning 'ospTutorial'..."
ospTutorial
let exitCode+=$?

echo -e "\n\nRunning 'ospTutorialCpp'..."
ospTutorialCpp
let exitCode+=$?

echo -e "\n\nRunning 'ospTutorialAsync'..."
ospTutorialAsync
let exitCode+=$?

if [[ -x `pwd`/build/install/ospray/bin/ospTutorialGLM ]] ; then
  echo -e "\n\nRunning 'ospTutorialGLM'..."
  ospTutorialGLM
  let exitCode+=$?
fi

if [ $TEST_MPI ]; then
  echo -e "\n\nRunning 'ospMPIDistribTutorial'..."
  mpiexec -np 3 ospMPIDistribTutorial
  let exitCode+=$?

  echo -e "\n\nRunning 'ospMPIDistribTutorialCpp'..."
  mpiexec -np 3 ospMPIDistribTutorialCpp
  let exitCode+=$?

  echo -e "\n\nRunning 'ospMPIDistribTutorialAsync'..."
  mpiexec -np 3 ospMPIDistribTutorialAsync
  let exitCode+=$?
fi

exit $exitCode