]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: use env shebang in all bash scripts
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 3 Mar 2021 11:09:38 +0000 (12:09 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 4 Mar 2021 11:36:36 +0000 (12:36 +0100)
This allows the scripts to be executed on systems that don't have bash
in /bin. This fixes "make check".

57 files changed:
test/compilation/003-sanitizers
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/010-multrecv
test/simulation/011-asymjitter
test/simulation/012-daemonts
test/simulation/013-nameserv
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/121-orphan
test/simulation/122-xleave
test/simulation/123-mindelay
test/simulation/124-tai
test/simulation/125-packetloss
test/simulation/126-burst
test/simulation/127-filter
test/simulation/128-nocontrol
test/simulation/129-reload
test/simulation/130-quit
test/simulation/131-maxchange
test/simulation/132-logchange
test/simulation/133-hwtimestamp
test/simulation/134-log
test/simulation/135-ratelimit
test/simulation/136-broadcast
test/simulation/137-pool
test/simulation/138-syncloop
test/simulation/139-nts
test/simulation/140-noclientlog
test/simulation/201-freqaccumulation
test/simulation/202-prefer
test/simulation/run

index 4da9aa35007f5d5d01e8cd72aed3cc120627d32b..a3337f2518d7e1271a26c709e4e09ba6cd0b2af8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # Run the unit and simulation tests with different compiler sanitizers
 # and under valgrind
 
index 541cdad64afe462362e59a92dba7f6ab0f46e80c..b39d95cb1093d5a81b76f90c94d6f9cdf4bcd12d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index fd411063a2b4747ff501565051290288309c5fac..a9e0ad822eeda1992aa7bc9bec6abf77e4d2f762 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 7210662f89db8d09c2fa461ed231261119073670..9381b1af6fb86b540f16da0c7e1095b16155156f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 5d8e2b67108c2db0210556244f204bbf199c1e78..4aebdd386882522c11e4da30aa170fa8134fc54c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 709c8a83ee7d11ed555c0a88f4fead394d4e7088..e6fff2637b90bd26dc474951847b6ecfdcf45835 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index f70e63c12276b78bf0dabba8ed21f6d4eaafa792..36ae5e292993be09d3c2591d75d591d23a950731 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 5572cbcbb4abd358106aad609cfca5c0b111af48..af0c599d4204e05e314676c5206a7f79ca07c6f1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 360a97d5efc119f9d82d85f3858f9bd2976e4818..637ad9e86ea36892145610db6e9f553bb3b22256 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 test_start "NTP eras"
index 7e609311a49e3e9a3636420546c06c09ad18f987..547c376c6981ce513063f6cce9edfa4b65923712 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 8adfab6b68d4163eb7b62ab5eddb68d7f9ac2084..36e7476c4591d28b56068ecc924caaee3b17b629 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 18e6ec1e133182f6d83c219a5deb4f505612cbc2..9fb55673a650dd322edabaf6b25f0c3514fdc109 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index b883516adf7fc203d0000af1fc9dd5cf0b842ed5..a1b90e340a77c18b18df027f06708606e7b4ee9d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 84f0c8de0953c1d063e6b506aa7cb96a485eebff..941026bf9a4558bf8f6551754fd7ba4d4020058b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index cb3647fde4fc1a1202d1446cd7891ad0350291e1..1856a27f959a80eab797018e7bf7037ad61a4193 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 test_start "minpoll/maxpoll options"
index bd82530749ed20230193a081f1af7007b4ddc43b..9936572533661069e1f68aef68bb48834784feca 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 test_start "iburst option"
index 303020e2184e27f517da5b638f3f1cedfd3d38a3..4595194ae91a8425fd1a8a5222cbe8e4dcb51dce 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 test_start "initstepslew directive"
index 703dad7651750eb5b964c3f257f7532caf522c03..93d436374946477d896974a8a65b1aaeeee94c59 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 test_start "driftfile directive"
index 950313849b97846b6d1905cf31b36ea02d2dd3bb..1f228f515b0ceefde358f98b9a43464203b6c8b7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index c4cec202a5a5cd1b53e8e1d8a973a0b81879e671..ee1fd6679645732121f6a25cb3772395b660258e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 test_start "SHM refclock"
index 3ab83ff778c63dda425b9be18d6df4a4029db25e..46653377df19cbe0b8eb7efa470cc83d978c86ed 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 20e2254bea900e10a162467352d27745780f5e66..906de170d0c7ec7ab25185d364093c42d1de2c0a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index f984f72aef2884483a221435de9497277a0fd2aa..78d8d59ed0d12f2e6fd220adaa60c2b21fbb8f45 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 test_start "makestep directive"
index c5172491e93cb9afaf9e9c3db61dfc743e7c0f0e..51f2d1dff1018a0877c392fab53672ec7b6c5df2 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 3d3fd87d19d07f55b7778811a8cce0b5a50ce290..92bad54bd65e5cffbc057509d4444ca101d43119 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index a8efabd1d5dbc14c40a3bcc92178a2482d76e877..2f10eed5a04002c72468680338129560c6844152 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 2fb81b8875437d508445a5d9d41bc47941a8a473..394440b763197e69ac31efeeae2e333918327cbd 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 3113253643e10d32e1d822ea384d196fcc2ce65d..4fd89f8be5b03a872d5f2b5056bd8b7797574252 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 test_start "presend option"
index ea79b265c4556c8161422b6d7efbf29a5f4c13a1..525062de0ff08df707ca610afd2dbb4e718c021a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 392f360253a5a66c0e23859f7a69a24777b574d4..f576423edfae805add0dacfd13865843fbb44433 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 22270c99cc628ae167d4fb7d6206a5ab9f0b7c03..21f696346184212a0b1a5f6090886d020be50ea8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 test_start "fallback drift"
index 22b9a502c975fa8bf8a1ccce52a8bfd223cf954e..bb8b47c52ee4f20fed43732d1aa397bbc7ad59bc 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 test_start "maxdelay options"
index 3f907159c449d9a57a6672302193b5c9381c1c5e..7f5114c80d26afb104d33d00d06593d1ae933403 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index b4b67045851952c1fd3f59e941fe312ccdb827e1..611815eaefe1eda0714c0cd2d85764b09e190058 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index c3d043f8d3cc7cfbdd90d67b52b3ed155561280a..7579997acc47e1f1e4cce6b70d4a646643cae8c7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 66eef5cc68c4f38e3ba4a15cda52773be4559be9..f137f19701efe8e411ef4a06d3d86ee580470ee7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 test_start "interleaved mode"
index cde214accc845dab159d72aab3b0e8444f02e3c4..89a9f33b2ef5a18ccc379c4949502b0621788fe2 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index d41d29d82f1452e3dfaf27ed1d2c5bd669ad07ba..97064f7c8b2d999ac2cffa4c8283d84ec9087090 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 95604dab46fcc9d31cdc2a2198da477ee8f6d857..505e4fab7df64b272c14c8eac472d844e78bc50d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index d63f29057cec40c4039214b019ffe6649bfc472e..1cb6f9c7444e5c6b890ac579cc619bfcbe06a27f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 737d1f9dda1918d198a966a78a0af01c8b9301ec..db70d13a2482c1701001b954a656f37653929d83 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index cca82f4e49b64677c0084f4180a85e02c7bd78f5..3f0d18df846a4316fb2ba9ddb5c3a56c9a9e18bf 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 9dcf6c4e910d2930d35f55eb92e428fdcfd782b7..be2e336b6f5505765948ef9ae8644d1650fc0bab 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index f5f77666aa97cf8b15cce9df8e782c4d376eae10..da2b8cf2dc0dd179df5a285ef4b09cd8ece1baab 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 969f71f4234f755927a23f8f124bc8d2781c27fd..59cc0c1d80281f2f2898dfbbbcf4cd320f4b319e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 8db174100ad938cc45de5d9b88ec20e5d6a490a5..59ddf7c2f3d5084b3d1a26ac292b9b058669cbf0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index e4896fccc553e909d540d22a3282f8c23daca9d6..2c9268589e8ee50f69e8eec4f2277d7c30241d9b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 0a6ef76f030fda26835d62e9258e8faa55364bb4..c7a34337dc037531b11da43e195c05d8c474fcd9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index cfa5eab74a88507b7849238bf4d906affd512317..86c435dfadb0feb966e3eb9b2d17795573492b35 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 test_start "ratelimit directive"
index d60d678480d32a5fe06ae240926e517f5ed134ae..1488c53df1c6b5d59ff9941c7688acec87e13611 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 32f44ec1e9ed908f72c19867ea28a47f9aea348f..de8d77d1af7e5b283499bab6ef9c00af6f49ec3d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 8edeec6624e57adc330768dd83cc28e1101bb8bb..2d3999e5bfb65cacaebfd05752046249ad70c6d2 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 64a90dc08829acc20250088df5ff766a940ef3ec..6a2112d9204dab860857c03cb20c677bfe2b7a70 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index c45664785e28dbafb7073f4932a3cf111fa9bc31..502398f57fb18d05bd9737f91dd13cea49d2410e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 test_start "noclientlog option"
index 7a9c22c6a70a144f4a83a36ce7418efd35c3b274..6f14246c9f1b68b1afa093887a2119b54bb67da4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index ae24848c16665c5e2e9ce990e0d4c7e4b5e1243f..207c8009d9a27697c45b1c65abbb3508e290ffa4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ./test.common
 
index 463e8dda69bc405c8b990ccf9adf4ceec69d217c..09544387b3ff6833c1f3c1a1aeae426bd0db5561 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 print_help() {
        echo "$1 [-a] [-i ITERATIONS] [-m MAXFAILS] [-s SEED] [TEST]..."