]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Fix tests to support Windows time zone name
authorWolfgang Stöggl <c72578@yahoo.de>
Thu, 29 Nov 2018 11:21:06 +0000 (12:21 +0100)
committerTobias Oetiker <tobi@oetiker.ch>
Fri, 30 Nov 2018 06:49:57 +0000 (07:49 +0100)
- On Windows, names of times zones are different.
  Substitute 'W. Europe Standard Time' with 'CET' by function seddif
- Removes unnecessary diff output and fixes therefore failing tests

tests/functions

index e9456c2c4a624b9f3a62974ccd22217875100e05..b4c672ab2c2431776c7a58b59701bf611f12d0e4 100644 (file)
@@ -11,8 +11,9 @@ TOP_BUILDDIR="${TOP_BUILDDIR:-${BASEDIR}/..}"
 DIFF="diff -u"
 DIFF9=seddif
 
+# On Windows, names of times zones are different. Substitute 'W. Europe Standard Time' with 'CET'
 function seddif {
-   perl -p -e 's/([-+]?\d\.\d+e[-+]\d+)/sprintf("%0.7e",$1)/ge' | $DIFF $@
+   perl -p -e 's/([-+]?\d\.\d+e[-+]\d+)/sprintf("%0.7e",$1)/ge; s/W. Europe Standard Time/CET/g' | $DIFF $@
 }
 
 BLANK=blank