test: update for latest clknetsim

Latest clknetsim now allows source and destination port numbers to
differ. This fixes the tests to work with the recent changes that added
client NTP sockets.
This commit is contained in:
Miroslav Lichvar 2014-03-25 17:33:55 +01:00
parent b13836e9cc
commit 727bf195d1
3 changed files with 5 additions and 6 deletions

View file

@ -7,10 +7,7 @@ freq_offset=0.0
wander=0.0 wander=0.0
limit=100 limit=100
# clknetsim requires source port (if bound) to match dest port client_conf="initstepslew 5 192.168.123.1"
client_server_options="port 124"
client_conf="initstepslew 5 192.168.123.1
port 124"
min_sync_time=15 min_sync_time=15
max_sync_time=30 max_sync_time=30

View file

@ -4,7 +4,9 @@
test_start "reply to client configured as server" test_start "reply to client configured as server"
server_conf="server 192.168.123.2" server_conf="server 192.168.123.2
acquisitionport 123"
client_conf="acquisitionport 123"
log_packets=1 log_packets=1
run_test || test_fail run_test || test_fail

View file

@ -18,7 +18,7 @@ export PATH=../../:$PATH
export CLKNETSIM_PATH=clknetsim export CLKNETSIM_PATH=clknetsim
# Known working clknetsim revision # Known working clknetsim revision
clknetsim_revision=eb0b85335c40027ac941b2276142542fff482107 clknetsim_revision=c25faaf0a08e33e281bf33b209f4e295624b28b2
clknetsim_url=https://github.com/mlichvar/clknetsim/archive/$clknetsim_revision.tar.gz clknetsim_url=https://github.com/mlichvar/clknetsim/archive/$clknetsim_revision.tar.gz
# Only Linux is supported # Only Linux is supported