/
m00008.vtc
56 lines (41 loc) · 1.29 KB
/
m00008.vtc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
varnishtest "VCL compiler vmod coverage / vmod loading"
feature topbuild
varnish v1 -errvcl {Module debug conflicts with other symbol.} {
backend b { .host = "127.0.0.1"; }
sub debug {}
import debug;
}
server s1 {
rxreq
txresp
} -start
varnish v1 -vcl+backend {
import std;
}
varnish v1 -cliok "param.set vcc_unsafe_path off"
varnish v1 -errvcl {'import ... from path ...' is unsafe.} {
backend default { .host = "${s1_sock}"; }
import std from "${topbuild}/lib/libvmod_std/.libs/";
}
varnish v1 \
-cliok "param.set vmod_path /nowhere:${topbuild}/lib/libvmod_std/.libs/"
varnish v1 -vcl+backend {
import std;
}
varnish v1 -cliok "param.set vcc_unsafe_path on"
varnish v1 -cliok "param.set vmod_path /nowhere:/else"
varnish v1 -vcl+backend {
import std from "${topbuild}/lib/libvmod_std/.libs/";
}
varnish v1 -errvcl {Malformed VMOD std} {
backend default { .host = "${s1_sock}"; }
import std from "${topbuild}/lib/libvmod_debug/.libs/libvmod_debug.so";
}
# Check creation and cleanup of copied shared objects for VMODs
shell "test -e ./v1/vmod_cache/_vmod_std.*"
# In case varnishtest was invoked with -L or -l, in which case the
# bit is switched on.
varnish v1 -cliok "param.set debug -vmod_so_keep"
varnish v1 -stop
varnish v1 -cleanup
shell -err "test -e ./v1/vmod_cache/_vmod_std.*"