diff options
author | Daniel Dunbar <daniel@zuster.org> | 2013-09-11 17:45:11 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2013-09-11 17:45:11 +0000 |
commit | 9aeba4963aa61503d1542808eb1cd2b647646767 (patch) | |
tree | ee5789c6dc0c68f421103cfea745e8fcd2dbc198 /llvm/utils/lit/tests/test-data.py | |
parent | 6a44af36297ae61238bb7ad1e05e77bcc5571f72 (diff) | |
download | bcm5719-llvm-9aeba4963aa61503d1542808eb1cd2b647646767.tar.gz bcm5719-llvm-9aeba4963aa61503d1542808eb1cd2b647646767.zip |
[lit] Add support for attach arbitrary metrics to test results.
- This is a work-in-progress and all details are subject to change, but I am
trying to build up support for allowing lit to be used as a driver for
performance tests (or other tests which might want to record information
beyond simple PASS/FAIL).
llvm-svn: 190535
Diffstat (limited to 'llvm/utils/lit/tests/test-data.py')
-rw-r--r-- | llvm/utils/lit/tests/test-data.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/utils/lit/tests/test-data.py b/llvm/utils/lit/tests/test-data.py new file mode 100644 index 00000000000..54909d7338e --- /dev/null +++ b/llvm/utils/lit/tests/test-data.py @@ -0,0 +1,12 @@ +# Test features related to formats which support reporting additional test data. + +# RUN: %{lit} -j 1 -v %{inputs}/test-data > %t.out +# RUN: FileCheck < %t.out %s + +# CHECK: -- Testing: + +# CHECK: PASS: test-data :: metrics.ini +# CHECK-NEXT: *** TEST 'test-data :: metrics.ini' RESULTS *** +# CHECK-NEXT: value0: 1 +# CHECK-NEXT: value1: 2.3456 +# CHECK-NEXT: *** |