Add jsoncpp_test bazel configuration
This patch adds a new configuration for jsoncpp_test in
the BUILD.bazel file.
diff --git a/BUILD.bazel b/BUILD.bazel
index 6d7ac3d..f615307 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -23,7 +23,7 @@
"include/json/writer.h",
],
copts = [
- "-DJSON_USE_EXCEPTION=0",
+ "-DJSON_USE_EXCEPTION=1",
"-DJSON_HAS_INT64",
],
includes = ["include"],
@@ -35,3 +35,22 @@
name = "private",
textual_hdrs = ["src/lib_json/json_valueiterator.inl"],
)
+
+cc_binary(
+ name = "jsontestrunner",
+ srcs = ["src/jsontestrunner/main.cpp"],
+ includes = ["include"],
+ deps = [":jsoncpp"],
+)
+
+cc_binary(
+ name = "jsoncpp_test",
+ srcs = [
+ "src/test_lib_json/jsontest.cpp",
+ "src/test_lib_json/jsontest.h",
+ "src/test_lib_json/main.cpp",
+ "src/test_lib_json/fuzz.h",
+ "src/test_lib_json/fuzz.cpp",
+ ],
+ deps = [":jsoncpp"],
+)