From 362d7c517d3e18b26fbe0c7768c360159c2a7266 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 14 Jan 2021 16:54:04 +0100 Subject: [PATCH] test: improve NTS tests --- test/simulation/139-nts | 85 ++++++++++++++++++-------------- test/system/{105-nts => 010-nts} | 8 ++- 2 files changed, 52 insertions(+), 41 deletions(-) rename test/system/{105-nts => 010-nts} (92%) diff --git a/test/simulation/139-nts b/test/simulation/139-nts index 74b8981..4ae6677 100755 --- a/test/simulation/139-nts +++ b/test/simulation/139-nts @@ -11,10 +11,11 @@ export CLKNETSIM_START_DATE=$(date -d 'Jan 1 00:00:00 UTC 2010' +'%s') cat > tmp/cert.cfg < /dev/null || test_skip "certtool missing" -sed -i "/ $server_name\$/d" /etc/hosts && echo "$server $server_name" >> /etc/hosts || \ - test_skip "Cannot modify /etc/hosts" check_chronyd_features PRIVDROP && user="nobody" test_start "NTS authentication" cat > $TEST_DIR/cert.cfg <