Test case now lives in GMT

it failed when it did not run on the same timezone as my laptop :|
parent c78b66fa
......@@ -31,7 +31,8 @@ EXTRA_DIST = foreign/zipflow/LICENSE
AM_TESTS_ENVIRONMENT = \
PATH="$(abs_builddir):$(VARNISH_TEST_PATH):$(PATH)" \
LD_LIBRARY_PATH="$(VARNISH_LIBRARY_PATH)"
LD_LIBRARY_PATH="$(VARNISH_LIBRARY_PATH)" \
TZ=GMT
TEST_EXTENSIONS = .vtc
VTC_LOG_COMPILER = varnishtest -vl -t10
AM_VTC_LOG_FLAGS = \
......
......@@ -52,7 +52,7 @@ client c1 {
shell "curl -so t.zip -H 'Host: ${v1_addr}' http://${v1_addr}:${v1_port}/ && unzip -Z t.zip | grep -P '^-rw-r--r--.*\\b1024\\b.*\\b..-...-.. ..:.. unnamed_file$'"
# mtime = last-modified
shell "curl -so t.zip -H 'Host: ${v1_addr}' http://${v1_addr}:${v1_port}/path/to/lm?p && unzip -Z t.zip | grep -P '^-rw-r--r--.*\\b512\\b.*\\b23-Aug-21 11:48 lm'"
shell "curl -so t.zip -H 'Host: ${v1_addr}' http://${v1_addr}:${v1_port}/path/to/lm?p && unzip -Z t.zip | grep -P '^-rw-r--r--.*\\b512\\b.*\\b23-Aug-21 09:48 lm'"
# filename
shell "curl -so t.zip -H 'Host: ${v1_addr}' -H 'filename: file' http://${v1_addr}:${v1_port}/ && unzip -Z t.zip | grep -P '^-rw-r--r--.*\\b1024\\b.*\\b..-...-.. ..:.. file$'"
......@@ -61,4 +61,4 @@ shell "curl -so t.zip -H 'Host: ${v1_addr}' -H 'filename: file' http://${v1_addr
shell "curl -so t.zip -H 'Host: ${v1_addr}' -H 'mode: 0755' http://${v1_addr}:${v1_port}/ && unzip -Z t.zip | grep -P '^-rwxr-xr-x.*\\b1024\\b.*\\b..-...-.. ..:.. unnamed_file$'"
# mtime
shell "curl -so t.zip -H 'Host: ${v1_addr}' -H 'mtime: 157590000' http://${v1_addr}:${v1_port}/ && unzip -Z t.zip | grep -P '^-rw-r--r--.*\\b1024\\b.*\\b74-Dec-30 00:00 unnamed_file$'"
shell "curl -so t.zip -H 'Host: ${v1_addr}' -H 'mtime: 157593600' http://${v1_addr}:${v1_port}/ && unzip -Z t.zip | grep -P '^-rw-r--r--.*\\b1024\\b.*\\b74-Dec-30 00:00 unnamed_file$'"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment