test: fix tests to skip when missing required feature

This commit is contained in:
Miroslav Lichvar
2018-09-26 18:04:09 +02:00
parent 91dbe3c6c2
commit e8bc41e862
15 changed files with 55 additions and 1 deletions

View File

@@ -1,8 +1,11 @@
#!/bin/bash
. ./test.common
test_start "leap second"
check_config_h 'FEAT_REFCLOCK 1' || test_skip
export CLKNETSIM_START_DATE=$(TZ=UTC date -d 'Dec 30 2008 0:00:00' +'%s')
leap=$[2 * 24 * 3600]