Move vomp console feature to test binary

This commit is contained in:
Jeremy Lakeman 2016-11-14 12:25:27 +10:30
parent 1e70bcaac6
commit 3726fe2f73
4 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,6 @@ void servald_features()
USE_FEATURE(cli_meshmb); USE_FEATURE(cli_meshmb);
USE_FEATURE(cli_monitor); USE_FEATURE(cli_monitor);
USE_FEATURE(cli_msp_proxy); USE_FEATURE(cli_msp_proxy);
USE_FEATURE(cli_vomp_console);
USE_FEATURE(cli_rhizome_direct); USE_FEATURE(cli_rhizome_direct);
USE_FEATURE(mdp_binding_MDP_PORT_ECHO); USE_FEATURE(mdp_binding_MDP_PORT_ECHO);

View File

@ -24,6 +24,7 @@ void test_features()
USE_FEATURE(cli_version); USE_FEATURE(cli_version);
USE_FEATURE(cli_echo); USE_FEATURE(cli_echo);
USE_FEATURE(cli_log); USE_FEATURE(cli_log);
USE_FEATURE(cli_vomp_console);
USE_FEATURE(cli_tests); USE_FEATURE(cli_tests);
} }

View File

@ -186,7 +186,7 @@ setup_MonitorQuit() {
start_servald_server start_servald_server
} }
test_MonitorQuit() { test_MonitorQuit() {
executeOk_servald console < <(echo "monitor quit") executeOk --executable="$servald_build_root/serval-tests" console < <(echo "monitor quit")
tfw_cat --stdout --stderr tfw_cat --stdout --stderr
wait_until ! kill -0 $servald_pid 2>/dev/null wait_until ! kill -0 $servald_pid 2>/dev/null
} }

View File

@ -51,7 +51,7 @@ vomp_console() {
local C="$instance_name" local C="$instance_name"
mkfifo "${C}_IN" mkfifo "${C}_IN"
exec 8<>"${C}_IN" # prevent fifo from blocking exec 8<>"${C}_IN" # prevent fifo from blocking
executeOk_servald --stdout-file="${C}_OUT" console <"${C}_IN" executeOk --executable="$servald_build_root/serval-tests" --stdout-file="${C}_OUT" console <"${C}_IN"
tfw_cat --stdout --stderr tfw_cat --stdout --stderr
} }