Skip to content

Instantly share code, notes, and snippets.

@russellsimpkins
Created June 30, 2016 14:46
Show Gist options
  • Save russellsimpkins/0a1d5ad9081ef0dc8ea6a22a020e3df4 to your computer and use it in GitHub Desktop.
Save russellsimpkins/0a1d5ad9081ef0dc8ea6a22a020e3df4 to your computer and use it in GitHub Desktop.
Illustrating importing your custom vmod
$> /usr/bin/varnishtest –Dvmod_topbuild=/usr/local/builds/mmdb-vmod /usr/local/builds/mmdb-vmod/src/tests/test01.vtc
$> cat test02.vtc
varnishtest "Test example vmod"
server s1 {
rxreq
txresp
} -start
varnish v1 -vcl+backend {
import geo from "${vmod_topbuild}/src/.libs/libvmod_geo.so";
import std;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment