Roger Meier | 41ad434 | 2015-03-24 22:30:40 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | Licensed to the Apache Software Foundation (ASF) under one |
| 3 | or more contributor license agreements. See the NOTICE file |
| 4 | distributed with this work for additional information |
| 5 | regarding copyright ownership. The ASF licenses this file |
| 6 | to you under the Apache License, Version 2.0 (the |
| 7 | "License"); you may not use this file except in compliance |
| 8 | with the License. You may obtain a copy of the License at |
| 9 | |
| 10 | http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | |
| 12 | Unless required by applicable law or agreed to in writing, |
| 13 | software distributed under the License is distributed on an |
| 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | KIND, either express or implied. See the License for the |
| 16 | specific language governing permissions and limitations |
| 17 | under the License. |
| 18 | |
| 19 | --> |
cdwijayarathna | 3f67978 | 2014-07-09 14:00:33 +0530 | [diff] [blame] | 20 | <!DOCTYPE HTML> |
| 21 | <html> |
| 22 | <head> |
| 23 | <meta charset="utf-8"> |
| 24 | <title>Apache Thrift - integration test suite</title> |
Roger Meier | 41ad434 | 2015-03-24 22:30:40 +0100 | [diff] [blame] | 25 | <link rel="stylesheet" type="text/css" href="http://cdn.datatables.net/1.10.4/css/jquery.dataTables.css"> |
| 26 | <script type="text/javascript" charset="utf-8" src="http://code.jquery.com/jquery-2.1.3.min.js"></script> |
| 27 | <script type="text/javascript" charset="utf-8" src="http://cdn.datatables.net/1.10.4/js/jquery.dataTables.js"></script> |
cdwijayarathna | 3f67978 | 2014-07-09 14:00:33 +0530 | [diff] [blame] | 28 | <script> |
Roger Meier | 41ad434 | 2015-03-24 22:30:40 +0100 | [diff] [blame] | 29 | $.getJSON('results.json', function(results) { |
| 30 | $(document).ready(function() { |
| 31 | var transport = 3; |
| 32 | var socket = 4; |
| 33 | var success = 5; |
| 34 | var expected = 6; |
| 35 | var returnCode = 7; |
| 36 | var logFile = 8; |
| 37 | testTable = $('#test_results').DataTable({ |
| 38 | data: results['results'], |
| 39 | columnDefs: [ |
| 40 | { |
| 41 | targets: 3, |
| 42 | render: function(data, type, row) { |
| 43 | return row[transport] + '-' + row[socket]; |
| 44 | }, |
Roger Meier | e8bafb6 | 2014-08-01 23:39:32 +0200 | [diff] [blame] | 45 | }, |
Roger Meier | 41ad434 | 2015-03-24 22:30:40 +0100 | [diff] [blame] | 46 | { |
| 47 | targets: 4, |
| 48 | render: function(data, type, row) { |
| 49 | return (row[success] ? 'success' : 'failure') |
| 50 | + '(' + (row[returnCode] == 128 ? 'timeout' : row[returnCode]) + ')' |
| 51 | + '(<a href="' + row[logFile].server + '">Server</a>, ' |
| 52 | + '<a href="' + row[logFile].client + '">Client</a>)'; |
| 53 | }, |
| 54 | }, |
| 55 | { |
| 56 | targets: 5, |
| 57 | render: function(data, type, row) { |
| 58 | // 'yes' rather than 'expected' to ease search |
| 59 | return row[expected] ? 'yes' : 'unexpected'; |
| 60 | }, |
| 61 | } |
| 62 | ], |
cdwijayarathna | 3f67978 | 2014-07-09 14:00:33 +0530 | [diff] [blame] | 63 | }); |
Roger Meier | 41ad434 | 2015-03-24 22:30:40 +0100 | [diff] [blame] | 64 | $('#test_results_filter label input').focus().val('unexpected failure'); |
| 65 | $('#test_info').text( |
| 66 | "Test Date: " + results['date'] + "\n" + |
| 67 | "Revision: " + results['revision'] + "\n" + |
| 68 | "Platform: " + results['platform'] + "\n" + |
| 69 | "Test duration: " + results['duration']) + " seconds"; |
| 70 | }); |
| 71 | }); |
cdwijayarathna | 3f67978 | 2014-07-09 14:00:33 +0530 | [diff] [blame] | 72 | </script> |
| 73 | </head> |
| 74 | <body> |
| 75 | <h2>Apache Thrift - integration test suite: Results</h2> |
| 76 | <table id="test_results" class="display"> |
| 77 | <thead> |
| 78 | <tr> |
| 79 | <th>Server</th> |
| 80 | <th>Client</th> |
| 81 | <th>Protocol</th> |
| 82 | <th>Transport</th> |
| 83 | <th>Result (log)</th> |
Roger Meier | 41ad434 | 2015-03-24 22:30:40 +0100 | [diff] [blame] | 84 | <th>Expected</th> |
cdwijayarathna | 3f67978 | 2014-07-09 14:00:33 +0530 | [diff] [blame] | 85 | </tr> |
| 86 | </thead> |
| 87 | </table> |
Roger Meier | 41ad434 | 2015-03-24 22:30:40 +0100 | [diff] [blame] | 88 | <h2>Test Information</h2> |
| 89 | <pre id="test_info"></pre> |
cdwijayarathna | 3f67978 | 2014-07-09 14:00:33 +0530 | [diff] [blame] | 90 | </body> |
| 91 | </html> |