]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: specify files with path in source commands
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 5 Feb 2016 09:52:47 +0000 (10:52 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 5 Feb 2016 14:20:40 +0000 (15:20 +0100)
This should prevent sourcing of an unrelated file found in $PATH.

31 files changed:
test/simulation/001-defaults
test/simulation/002-largenetwork
test/simulation/003-largefreqoffset
test/simulation/004-largetimeoffset
test/simulation/005-externalstep
test/simulation/006-largejitter
test/simulation/007-largewander
test/simulation/008-ntpera
test/simulation/009-sourceselection
test/simulation/101-poll
test/simulation/102-iburst
test/simulation/103-initstepslew
test/simulation/104-driftfile
test/simulation/105-ntpauth
test/simulation/106-refclock
test/simulation/107-allowdeny
test/simulation/108-peer
test/simulation/109-makestep
test/simulation/110-chronyc
test/simulation/111-knownclient
test/simulation/112-port
test/simulation/113-leapsecond
test/simulation/114-presend
test/simulation/115-cmdmontime
test/simulation/116-minsources
test/simulation/117-fallbackdrift
test/simulation/118-maxdelay
test/simulation/119-smoothtime
test/simulation/120-selectoptions
test/simulation/201-freqaccumulation
test/simulation/202-prefer

index 466d43b1e88acbbfd35df342b486c11fbcb7afc4..541cdad64afe462362e59a92dba7f6ab0f46e80c 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 
 test_start "default test settings"
 
index 62885e5722ea2b9330a38e8cc9096f9f8855ce29..fd411063a2b4747ff501565051290288309c5fac 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 
 test_start "large network"
 
index 4c47b859c71457abce0bde4f1554179264092af2..7210662f89db8d09c2fa461ed231261119073670 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 
 test_start "large frequency offset"
 
index 4c982cfe08b9115e68815768a9837185af3fca3c..5d8e2b67108c2db0210556244f204bbf199c1e78 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 
 test_start "large time offset"
 
index 77393458fccab38977b7c6de74edd0ee029d41ac..709c8a83ee7d11ed555c0a88f4fead394d4e7088 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 
 test_start "external time step"
 
index 50d5db9db9cd45eb0f769f33ecf1b8ed6cb4e533..f70e63c12276b78bf0dabba8ed21f6d4eaafa792 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 
 test_start "large jitter"
 
index 22ffece5047e921a523ce729f204958a9e45bb1b..5572cbcbb4abd358106aad609cfca5c0b111af48 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 
 test_start "large wander"
 
index 808497df0c7c9c961f01edeeb6d33f3472822ce6..3c63419211b101ceb3c260fd90f82e42310f3680 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 test_start "NTP eras"
 
 # Assume NTP_ERA_SPLIT is between years 1960 and 1990
index 6158a812671ba5ae274fe7fd946e96fb270b7e79..7e609311a49e3e9a3636420546c06c09ad18f987 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 
 test_start "source selection"
 
index ce9bd7664c3c0920d245cf8263fb0d2b672002a1..f3507773b387d7a2bf9c30d61e68a9fe6d58cc1f 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 test_start "minpoll/maxpoll options"
 
 wander=0.0
index dd66339d1e693cb7bd0fb9e695cd3551bd388c7a..bd82530749ed20230193a081f1af7007b4ddc43b 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 test_start "iburst option"
 
 freq_offset=1e-4
index 8f384f69e74e58bdb8d47c02e8ce0352d4448acf..303020e2184e27f517da5b638f3f1cedfd3d38a3 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 test_start "initstepslew directive"
 
 freq_offset=0.0
index 50399d6bf75f6d24acb48661c24ae411e93a32cd..703dad7651750eb5b964c3f257f7532caf522c03 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 test_start "driftfile directive"
 
 servers=0
index 6968e0847e73659299d1008e9523907570bc418d..1b9dd48a09df6d71e621f324b6c3745d5a9ccdd4 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 
 test_start "NTP authentication"
 
index 64844a1c5ea8b19382ccfd0a4dc353cde1b26583..f64f2bec05fee45669349fd8ac7d9e4b0dff5930 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 test_start "SHM refclock"
 
 servers=0
index a87aed0214b5f912b9fc63d23e373aed83325a39..b11db32410784daf9864cc0f7587a8374ae113ca 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 
 test_start "allow/deny directives"
 
index b4d21d2c3b4fab7decc59d81e548736bce3b938d..0679f6e3594fdab2e294f6aaae3309d2d76d4080 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 
 test_start "NTP peers"
 
index 781e20b811fd6a27177c31430189c500955dd8a5..f984f72aef2884483a221435de9497277a0fd2aa 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 test_start "makestep directive"
 
 client_conf="makestep 0 -1
index c534cbdac41d32a738bc5b6f8a1435058969b9c6..29ade1cc6940a03303efb0af1c05d0ed26773daf 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 
 test_start "chronyc"
 
index 70ba2b1b06277f2ac568068e1693e04862424b05..3d3fd87d19d07f55b7778811a8cce0b5a50ce290 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 
 test_start "reply to client configured as server"
 
index 74777afdd1d936ef9a9f0d38ab6ef68622df532c..e98375719f795eedb262d1c4e017505824cf85d3 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 
 test_start "port and acquisitionport directives"
 
index 7d6700715077e1879df8dabb0ad56dc5bbac2bde..dcf1439e9d449a6b13f9df93f93b4f5cf4fc293f 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 test_start "leap second"
 
 export CLKNETSIM_START_DATE=$(TZ=UTC date -d 'Dec 30 2008 0:00:00' +'%s')
index 88725256bcab94d5f1b6d8b0d6d7ed208f7a7a1d..1371aa891068e78d8203462ba407d7f51735ed01 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 test_start "presend option"
 
 min_sync_time=140
index f63ee6cbecc98f04cc4614cada787c8420785c6d..6eb495a7b04ce8a633e0600b5d10cc6f527ab3e6 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 
 test_start "cmdmon timestamps"
 
index f32596a8b19e2d2eb143862d44df4fd6a8a33f42..392f360253a5a66c0e23859f7a69a24777b574d4 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 
 test_start "minsources directive"
 
index a4f3d0f55d117b2ec4d3f0ea3322793212dbac32..a6519225f33076a9c124f0ea884fa2c349884874 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 test_start "fallback drift"
 
 limit=100000
index 0e27847e40d792dd5ff40c56c86061919b7090af..98728366b9172da9b57936626cded705520388b8 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 test_start "maxdelay options"
 
 max_sync_time=2000
index 5b043e2f05fab9399c9915ce07a3f183946281dc..3d392333dcf0221ed9fc7f433783b8f7e2d4a6cb 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 test_start "smoothtime option"
 
 server_strata=2
index 694882ee362ed7c8d0df19c846d2e5c3960c11fd..7e10293ca8c7619b1db4c06e5d4ec9c0a9a7474c 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 
 test_start "source selection options"
 
index 1398319215103a5888eda5006bba4c7271f6c4a4..7a9c22c6a70a144f4a83a36ce7418efd35c3b274 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 
 # Test fix in commit 60d0fa299307076143da94d36deb7b908fa9bdb7
 
index 57a7fc932c8bf68b7ada3b7286bde830aa49ca94..ae24848c16665c5e2e9ce990e0d4c7e4b5e1243f 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-. test.common
+. ./test.common
 
 # Test fix in commit 4253075a97141edfa62043ab71bd0673587e6629