-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update from eth-infinitism/bundler-test-executor@5f5dbb3
- Loading branch information
1 parent
a3375ac
commit 75ce306
Showing
11 changed files
with
4,491 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
<head> | ||
<style> | ||
#results { | ||
font-family: Arial, Helvetica, sans-serif; | ||
border-collapse: collapse; | ||
/*width: 100%;*/ | ||
} | ||
|
||
#results td, #results th { | ||
border: 1px solid #ddd; | ||
padding: 8px; | ||
} | ||
|
||
#results tr:nth-child(even){background-color: #f2f2f2;} | ||
|
||
#results tr:hover {background-color: #ddd;} | ||
|
||
#results th { | ||
padding-top: 12px; | ||
padding-bottom: 12px; | ||
text-align: left; | ||
background-color: #04AA6D; | ||
color: white; | ||
} | ||
</style> | ||
</head> | ||
|
||
<h1>EIP-4337 Bundlers Spec Test Results</h1> | ||
<div id=output > | ||
</div> | ||
|
||
<p> | ||
|
||
This page was generated by <a href="https://github.com/eth-infinitism/bundler-test-results">bundler-test-results</a> | ||
|
||
|
||
<script> | ||
|
||
okmark = '✅' | ||
errmark = '❌' | ||
const dir = './out/' | ||
async function getList() { | ||
list = await fetch(dir+'index.txt').then(r=>r.text()) | ||
return list.split('\n').filter(line=>line.endsWith('json')).map(line=>dir+line) | ||
} | ||
|
||
async function getJson(path) { | ||
return await fetch(path).then(r=>r.json()) | ||
} | ||
|
||
function mapTests(testcases) { | ||
return testcases.map(t=>({ | ||
name: t['@name'], | ||
classname: t['@classname'], | ||
time: t['@time'], | ||
skipped: t['skipped'], | ||
error: t['error'], | ||
failure: t['failure'], | ||
})) | ||
} | ||
|
||
async function load() { | ||
list = await getList() | ||
out=[] | ||
for ( fname of list ) { | ||
const j = await getJson(fname) | ||
test = j.testsuites.testsuite | ||
res = { | ||
name: test['@name'], | ||
fname, //: fname.replace(/.*\/(.*.json)$/,'$1'), | ||
skipped: test['@skipped'], | ||
failures: test['@failures'], | ||
errors: test['@errors'], | ||
time: test['@time'], | ||
tests: mapTests(test.testcase) | ||
} | ||
console.log('res=',JSON.stringify(res,null,2)) | ||
out.push(res) | ||
} | ||
|
||
return out | ||
} | ||
|
||
function ref(data,link) { | ||
if ( !link) return data | ||
return `<a href="${link}">${data}</a>` | ||
} | ||
|
||
function tr(...data) { | ||
return `<tr>${data.join(' ')}</tr>` | ||
} | ||
|
||
function th(data) { | ||
// return td(data) | ||
return `<th>${data}</th>` | ||
} | ||
|
||
function td(data,link) { | ||
return `<td>${ref(data,link)}</td>` | ||
} | ||
|
||
async function init() { | ||
data = await load() | ||
console.log(data) | ||
rows = document.querySelector('#output') | ||
|
||
rows.innerHTML = '<table id="results"><tbody>\n' + | ||
tr(th('Name'),th('Total'),th('Errors'),th('Failures'),th('Skipped'),th('Time')) + | ||
data.map(line=>{ | ||
const {name, fname, skipped, errors,failures, time, tests} = line | ||
link = fname.replace('json', 'txt') | ||
ok = failures== '0' && errors == '0' | ||
return tr(td(name, link),td(tests.length),td(errors),td(failures),td(skipped),td(time)) | ||
}).join('\n') | ||
'</tbody></table>' | ||
|
||
console.log(rows.innerHTML) | ||
|
||
} | ||
init() | ||
|
||
</script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
aabundler.json | ||
aabundler.log | ||
aabundler.txt | ||
aabundler.xml | ||
html/ | ||
index.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
. | ||
./latest | ||
./index.txt | ||
./20240407 | ||
./20240407/182001 | ||
./20240407/182001/aabundler.xml | ||
./20240407/182001/index.txt | ||
./20240407/182001/aabundler.log | ||
./20240407/182001/aabundler.txt | ||
./20240407/182001/aabundler.json | ||
./20240407/182001/html | ||
./20240407/182001/html/index.html | ||
./20240222 | ||
./20240222/182751 | ||
./20240222/182751/aabundler.xml | ||
./20240222/182751/index.txt | ||
./20240222/182751/aabundler.log | ||
./20240222/182751/aabundler.txt | ||
./20240222/182751/aabundler.json | ||
./20240222/182751/html | ||
./20240222/182751/html/index.html | ||
./20240222/164701 | ||
./20240222/164701/index.txt | ||
./20240222/164701/aabundler.log | ||
./20240222/164701/aabundler.txt | ||
./20240222/164701/html | ||
./20240222/164701/html/index.html | ||
./all.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
20240222/ | ||
20240407/ | ||
all.txt | ||
index.txt | ||
latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
20240407/182001 |