llvm-jd is a C++ port of [jd], which is a JSON diff tool. It supports the subset
that we need for LLVM.
FileCheck is well-suited to output that follows a particular sequence and where
delta outputs are fairly readable upon inspection. Our JSON output can sometimes
appear in different orders, and due to the structuring of JSON, it's often
difficult to work out where in the JSON object something is. llvm-jd is able to
report the exact position of a diff more directly, and can also take order (or
lack thereof) into account.
[llvm-jd] adds UI I/O
[llvm-jd] adds scalar support
[llvm-jd] adds array support
[llvm-jd] adds object support
[llvm-jd] fixes the output so there's no space between commas
[llvm-jd] sets the return code for diffs to 1
[llvm-jd] adds multiset capabilities
jd supports multisets, which allow us to test JSON arrays without regard
for order.
Building instead of Installation?