[lit] Add the option to output test result as resultdb json format
authorHaowei Wu <haowei@google.com>
Mon, 9 Aug 2021 18:45:49 +0000 (11:45 -0700)
committerHaowei Wu <haowei@google.com>
Tue, 24 Aug 2021 00:00:50 +0000 (17:00 -0700)
commit253cb50c60991f155e49f1d76cd01f8ba66d3524
tree74953880bfc8008f729fb4d332e7c8b32b8924c0
parentb546f4347b87c20502c747b366a3303949a34d69
[lit] Add the option to output test result as resultdb json format

This change adds the option --resultdb-output=path allow llvm-lit
generating LuCI ResultDB JSON output for the test results, which
can be better integrated with certain CI/CQ framework.

Differential Revision: https://reviews.llvm.org/D108238
llvm/utils/lit/lit/cl_arguments.py
llvm/utils/lit/lit/reports.py
llvm/utils/lit/tests/test-output-micro-resultdb.py [new file with mode: 0644]
llvm/utils/lit/tests/test-output-resultdb.py [new file with mode: 0644]