Skip to content

Commit 659a4e3

Browse files
committed
remove start_test.sh
small fix
1 parent 6fffdab commit 659a4e3

File tree

3 files changed

+21
-93
lines changed

3 files changed

+21
-93
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ start_all_secure:
2626
cd tools && ./start_all_tmux.sh secure
2727

2828
start_test_all:
29-
cd tools && chmod +x start_test.sh && ./start_test.sh
29+
cd tools && ./start_all_tmux.sh test
3030

3131
all_service:
3232
cd lucida && make all

tools/start_all_tmux.sh

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
# source the port properties
1414
. ../lucida/config.properties
1515

16-
SESSION_NAME="lucida"
16+
if [ "$1" == "test" ]; then
17+
SESSION_NAME="lu-test"
18+
else
19+
SESSION_NAME="lucida"
20+
fi
1721

1822
# Check if session already exists
1923
tmux has-session -t ${SESSION_NAME}
@@ -55,12 +59,19 @@ declare -a facerecognition=("FACE" "$(pwd)/../lucida/djinntonic/face")
5559
declare -a weather=("WE" "$(pwd)/../lucida/weather")
5660
declare -a musicservice=("MS" "$(pwd)/../lucida/musicservice")
5761

58-
declare -a services=(
59-
commandcenter
62+
if [ "$1" == "test" ]; then
63+
declare -a services=(
64+
)
65+
else
66+
declare -a services=(
67+
commandcenter
68+
speechrecognition)
69+
fi
70+
71+
services+=(
6072
questionanswering
6173
imagematching
6274
calendar
63-
speechrecognition
6475
imageclassification
6576
digitrecognition
6677
facerecognition
@@ -82,7 +93,11 @@ do
8293
tmux new-window -n ${!NAME} -t ${SESSION_NAME}
8394
fi
8495
tmux send-keys -t ${SESSION_NAME}:$TMUX_WIN "cd ${!SERV_PATH}" C-m
85-
tmux send-keys -t ${SESSION_NAME}:$TMUX_WIN "make start_server" C-m
96+
if [ "$1" == "test" ]; then
97+
tmux send-keys -t ${SESSION_NAME}:$TMUX_WIN "make start_test" C-m
98+
else
99+
tmux send-keys -t ${SESSION_NAME}:$TMUX_WIN "make start_server" C-m
100+
fi
86101
((TMUX_WIN++))
87102
done
88103

tools/start_test.sh

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)