1#!/bin/sh 2# 3# Run a simple connection test 4# with the tray-monitor. 5# 6export estat 7TestName="tray-monitor-connection-test-tls-psk" 8. scripts/functions 9 10scripts/cleanup 11copy_configs 12 13tray_monitor_binary="${bin}/bareos-tray-monitor" 14 15start_test 16 17# check if tray-monitor binary was built 18if [ ! -f ${tray_monitor_binary} ]; then 19 set_error "Could not find executable ${tray_monitor_binary}" 20 end_test 21 exit 1 22fi 23 24run_bareos 25${tray_monitor_binary} -rc -c ${bin}/tray-monitor.conf 26estat=$? 27stop_bareos 28 29end_test 30 31