This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
fixeria gerrit-no-reply at lists.osmocom.orgfixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-dev/+/26485 ) Change subject: Add tmux scripts for ttcn3-{msc,bsc,bts}-test ...................................................................... Add tmux scripts for ttcn3-{msc,bsc,bts}-test Change-Id: I201b77c013cbeef9d1a07b9422b27f375811ed69 --- A ttcn3/tmux/ttcn3-bsc-test.sh A ttcn3/tmux/ttcn3-bts-test.sh A ttcn3/tmux/ttcn3-msc-test.sh 3 files changed, 123 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-dev refs/changes/85/26485/1 diff --git a/ttcn3/tmux/ttcn3-bsc-test.sh b/ttcn3/tmux/ttcn3-bsc-test.sh new file mode 100755 index 0000000..c0d9709 --- /dev/null +++ b/ttcn3/tmux/ttcn3-bsc-test.sh @@ -0,0 +1,43 @@ +#!/bin/sh + +SESSION="ttcn3-bsc-test" + +OSMO_DIR="/home/$USER/osmocom" +SUITE_DIR="$OSMO_DIR/osmo-ttcn3-hacks" +RESPAWN="$OSMO_DIR/scripts/respawn.sh" + +if [ ! -d $SUITE_DIR ]; then + echo "Directory '$SUITE_DIR' does not exist" + echo "Please specify where to find osmo-ttcn3-hacks" + exit 1 +fi + +if [ ! -f $RESPAWN ]; then + echo "Script '$RESPAWN' does not exist" + echo "Please specify where to find respawn.sh" + exit 1 +fi + +tmux new-session -s $SESSION -n $SESSION -d + +tmux split-window -t $SESSION:0 -v +tmux send-keys -t $SESSION:0.0 "cd $SUITE_DIR/bsc" C-m +tmux send-keys -t $SESSION:0.0 "osmo-bsc -c osmo-bsc.cfg" C-m +tmux send-keys -t $SESSION:0.1 "cd $SUITE_DIR/bsc" C-m +tmux send-keys -t $SESSION:0.1 "../start-testsuite.sh ./BSC_Tests BSC_Tests.cfg" + +tmux new-window -t $SESSION:1 +tmux split-window -t $SESSION:1 -v +tmux split-window -t $SESSION:1 -v +tmux split-window -t $SESSION:1 -v +tmux split-window -t $SESSION:1 -v + +# Start osmo-stp +tmux send-keys -t $SESSION:1.0 "cd $SUITE_DIR/bsc" C-m +tmux send-keys -t $SESSION:1.0 "osmo-stp -c osmo-stp.cfg" C-m +# Start osmo-bts-omldummy +tmux send-keys -t $SESSION:1.1 "$RESPAWN osmo-bts-omldummy 127.0.0.1 1234" C-m +tmux send-keys -t $SESSION:1.2 "$RESPAWN osmo-bts-omldummy 127.0.0.1 1235" C-m +tmux send-keys -t $SESSION:1.3 "$RESPAWN osmo-bts-omldummy 127.0.0.1 1236" C-m + +tmux attach -t $SESSION:0 diff --git a/ttcn3/tmux/ttcn3-bts-test.sh b/ttcn3/tmux/ttcn3-bts-test.sh new file mode 100755 index 0000000..25a3351 --- /dev/null +++ b/ttcn3/tmux/ttcn3-bts-test.sh @@ -0,0 +1,54 @@ +#!/bin/sh + +SESSION="ttcn3-bts-test" + +OSMO_DIR="/home/$USER/osmocom" +OBB_DIR="$OSMO_DIR/osmocom-bb" +SUITE_DIR="$OSMO_DIR/osmo-ttcn3-hacks" +RESPAWN="$OSMO_DIR/scripts/respawn.sh" + +if [ ! -d $SUITE_DIR ]; then + echo "Directory '$SUITE_DIR' does not exist" + echo "Please specify where to find osmo-ttcn3-hacks" + exit 1 +fi + +if [ ! -d $OBB_DIR ]; then + echo "Directory '$OBB_DIR' does not exist" + echo "Please specify where to find osmocom-bb" + exit 1 +fi + +if [ ! -f $RESPAWN ]; then + echo "Script '$RESPAWN' does not exist" + echo "Please specify where to find respawn.sh" + exit 1 +fi + +tmux new-session -s $SESSION -n $SESSION -d + +tmux split-window -t $SESSION:0 -v +tmux send-keys -t $SESSION:0.0 "cd $SUITE_DIR/bts" C-m +tmux send-keys -t $SESSION:0.0 "$RESPAWN osmo-bts-trx -c osmo-bts.cfg" +tmux send-keys -t $SESSION:0.1 "cd $SUITE_DIR/bts" C-m +tmux send-keys -t $SESSION:0.1 "../start-testsuite.sh ./BTS_Tests cfg/BTS_Tests.cfg" + + +tmux new-window -t $SESSION:1 +tmux split-window -t $SESSION:1 -v +tmux split-window -t $SESSION:1 -v + +# Start osmo-bsc +tmux send-keys -t $SESSION:1.0 "cd $SUITE_DIR/bts" C-m +tmux send-keys -t $SESSION:1.0 "osmo-bsc -c osmo-bsc.cfg" C-m +# Start trxcon +tmux send-keys -t $SESSION:1.1 "cd $OBB_DIR/src/host/trxcon" C-m +tmux send-keys -t $SESSION:1.1 "./trxcon -s /tmp/osmocom_l2.ttcn" C-m +# Start fake_trx.py +tmux send-keys -t $SESSION:1.2 "cd $OBB_DIR/src/target/trx_toolkit" C-m +tmux send-keys -t $SESSION:1.2 "./fake_trx.py \ + --trx TRX1 at 127.0.0.1:5700/1 \ + --trx TRX1 at 127.0.0.1:5700/2 \ + --trx TRX1 at 127.0.0.1:5700/3" C-m + +tmux attach -t $SESSION:0 diff --git a/ttcn3/tmux/ttcn3-msc-test.sh b/ttcn3/tmux/ttcn3-msc-test.sh new file mode 100755 index 0000000..fee1383 --- /dev/null +++ b/ttcn3/tmux/ttcn3-msc-test.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +SESSION="ttcn3-msc-test" + +OSMO_DIR="/home/$USER/osmocom" +SUITE_DIR="$OSMO_DIR/osmo-ttcn3-hacks" + +if [ ! -d $SUITE_DIR ]; then + echo "Directory '$SUITE_DIR' does not exist" + echo "Please specify where to find osmo-ttcn3-hacks" + exit 1 +fi + +tmux new-session -s $SESSION -n $SESSION -d + +tmux split-window -t $SESSION:0 -v +tmux send-keys -t $SESSION:0.0 "cd $SUITE_DIR/msc" C-m +tmux send-keys -t $SESSION:0.0 "osmo-msc -c osmo-msc.cfg" C-m +tmux send-keys -t $SESSION:0.1 "cd $SUITE_DIR/msc" C-m +tmux send-keys -t $SESSION:0.1 "../start-testsuite.sh ./MSC_Tests MSC_Tests.cfg" + +tmux new-window -t $SESSION:1 +tmux send-keys -t $SESSION:1.0 "cd $SUITE_DIR/msc" C-m +tmux send-keys -t $SESSION:1.0 "osmo-stp -c osmo-stp.cfg" C-m + +tmux attach -t $SESSION:0 -- To view, visit https://gerrit.osmocom.org/c/osmo-dev/+/26485 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-dev Gerrit-Branch: master Gerrit-Change-Id: I201b77c013cbeef9d1a07b9422b27f375811ed69 Gerrit-Change-Number: 26485 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211209/5783bcac/attachment.htm>