Commit dda229dd authored by Geoff Simmons's avatar Geoff Simmons

Verbose tests for FQVersion() and ConfigName() print the strings.

parent 2edb5814
......@@ -190,6 +190,9 @@ func TestTemplate(t *testing.T) {
func TestFQVersion(t *testing.T) {
fqVersion := testSpec.FQVersion()
if testing.Verbose() {
t.Log("FQVersion():", fqVersion)
}
if !strings.HasPrefix(fqVersion, testSpec.Version+"-") {
t.Fatal("FQVersion(): does not begin with spec.Version + "+
"\"-\":", fqVersion)
......@@ -204,6 +207,9 @@ func TestFQVersion(t *testing.T) {
func TestConfigName(t *testing.T) {
cfgName := testSpec.ConfigName()
if testing.Verbose() {
t.Log("ConfigName():", cfgName)
}
if vclIllegal.MatchString(cfgName) {
t.Fatal("ConfigName() result is an illegal VCL name:", cfgName)
}
......
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