소스 검색

Check that the sample configuration parses

Ask Bjørn Hansen 8 년 전
부모
커밋
2d4d676ce9
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      config_test.go

+ 11 - 0
config_test.go

@@ -0,0 +1,11 @@
+package main
+
+import "testing"
+
+func TestConfig(t *testing.T) {
+	// check that the sample config parses
+	err := configReader("dns/geodns.conf.sample")
+	if err != nil {
+		t.Fatalf("Could not read config: %s", err)
+	}
+}