File: run_iceensemble.sh

package info (click to toggle)
iceoryx 2.0.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 11,260 kB
  • sloc: cpp: 94,127; ansic: 1,443; sh: 1,436; python: 1,377; xml: 80; makefile: 61
file content (30 lines) | stat: -rwxr-xr-x 1,244 bytes parent folder | download | duplicates (3)
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
#!/bin/bash

CONFIGDIR="`pwd`"
WORKSPACE=$(git rev-parse --show-toplevel)
SESSION=iceensemble
tmux="tmux -2 -q"

$tmux kill-server

$tmux has-session -t $SESSION
if [ $? -eq 0 ]; then
       echo "Session $SESSION already exists. Attaching to session."
       $tmux attach -t $SESSION
       exit 0;
fi

command -v tmux >/dev/null 2>&1 || { echo >&2 "tmux is not installed but required. Trying to install it..."; sudo apt-get install tmux; }

$tmux new-session -d -s $SESSION
$tmux new-window -a -t $SESSION $WORKSPACE/build/iox-roudi

$tmux split-window -t 0 -h $WORKSPACE/build/iceoryx_examples/icehello/iox-cpp-publisher-helloworld
$tmux split-window -t 1 -h $WORKSPACE/build/iceoryx_examples/icedelivery/iox-cpp-publisher
$tmux split-window -t 0 -h $WORKSPACE/build/iceoryx_examples/icedelivery/iox-cpp-publisher-untyped
$tmux split-window -t 0 -v $WORKSPACE/build/iceoryx_examples/iceoptions/iox-cpp-publisher-with-options
$tmux split-window -t 2 -v $WORKSPACE/build/iceoryx_examples/icedelivery_in_c/iox-c-publisher
$tmux split-window -t 4 -v $WORKSPACE/build/iceoryx_examples/icedelivery/iox-cpp-subscriber
$tmux split-window -t 6 -v $WORKSPACE/build/iceoryx_examples/iceoptions/iox-cpp-subscriber-with-options

$tmux attach -t $SESSION