From: Miroslav Lichvar Date: Thu, 25 Apr 2019 16:40:46 +0000 (+0200) Subject: test: add 104-systemdirs system test X-Git-Tag: 3.5-pre1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3093a11cd0fc758044ad318e064ca7e95f5a473d;p=thirdparty%2Fchrony.git test: add 104-systemdirs system test --- diff --git a/test/system/104-systemdirs b/test/system/104-systemdirs new file mode 100755 index 00000000..a8ee0566 --- /dev/null +++ b/test/system/104-systemdirs @@ -0,0 +1,19 @@ +#!/bin/bash + +TEST_LIBDIR=${CHRONY_LIBDIR:-/var/lib/chrony} +TEST_LOGDIR=${CHRONY_LOGDIR:-/var/log/chrony} +TEST_RUNDIR=${CHRONY_RUNDIR:-/var/run/chrony} + +. ./test.common + +user=$(ls -ld "$TEST_RUNDIR" 2> /dev/null | awk '{print $3}') + +test_start "system directories" + +start_chronyd || test_fail +wait_for_sync || test_fail +stop_chronyd || test_fail +check_chronyd_messages || test_fail +check_chronyd_files || test_fail + +test_pass