Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
drortirosh committed Apr 24, 2024
1 parent bb87989 commit 25c8120
Show file tree
Hide file tree
Showing 23 changed files with 85,114 additions and 5 deletions.
3,590 changes: 3,590 additions & 0 deletions v07/history/history.json

Large diffs are not rendered by default.

3,590 changes: 3,590 additions & 0 deletions v07/history/script-history.js

Large diffs are not rendered by default.

889 changes: 889 additions & 0 deletions v07/runs/20240424/140112/aabundler.json

Large diffs are not rendered by default.

2,426 changes: 2,426 additions & 0 deletions v07/runs/20240424/140112/aabundler.log

Large diffs are not rendered by default.

740 changes: 740 additions & 0 deletions v07/runs/20240424/140112/aabundler.txt

Large diffs are not rendered by default.

262 changes: 262 additions & 0 deletions v07/runs/20240424/140112/aabundler.xml

Large diffs are not rendered by default.

123 changes: 123 additions & 0 deletions v07/runs/20240424/140112/html/index.html
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 = '&#9989;'
errmark = '&#10060;'
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>

18 changes: 18 additions & 0 deletions v07/runs/20240424/140112/index.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
aabundler.json
aabundler.log
aabundler.txt
aabundler.xml
html/
index.txt
okbund.json
okbund.log
okbund.txt
okbund.xml
skandha.json
skandha.log
skandha.txt
skandha.xml
transeptor.json
transeptor.log
transeptor.txt
transeptor.xml
895 changes: 895 additions & 0 deletions v07/runs/20240424/140112/okbund.json

Large diffs are not rendered by default.

21,293 changes: 21,293 additions & 0 deletions v07/runs/20240424/140112/okbund.log

Large diffs are not rendered by default.

870 changes: 870 additions & 0 deletions v07/runs/20240424/140112/okbund.txt

Large diffs are not rendered by default.

335 changes: 335 additions & 0 deletions v07/runs/20240424/140112/okbund.xml

Large diffs are not rendered by default.

895 changes: 895 additions & 0 deletions v07/runs/20240424/140112/skandha.json

Large diffs are not rendered by default.

39,673 changes: 39,673 additions & 0 deletions v07/runs/20240424/140112/skandha.log

Large diffs are not rendered by default.

743 changes: 743 additions & 0 deletions v07/runs/20240424/140112/skandha.txt

Large diffs are not rendered by default.

276 changes: 276 additions & 0 deletions v07/runs/20240424/140112/skandha.xml

Large diffs are not rendered by default.

925 changes: 925 additions & 0 deletions v07/runs/20240424/140112/transeptor.json

Large diffs are not rendered by default.

5,016 changes: 5,016 additions & 0 deletions v07/runs/20240424/140112/transeptor.log

Large diffs are not rendered by default.

1,732 changes: 1,732 additions & 0 deletions v07/runs/20240424/140112/transeptor.txt

Large diffs are not rendered by default.

796 changes: 796 additions & 0 deletions v07/runs/20240424/140112/transeptor.xml

Large diffs are not rendered by default.

29 changes: 25 additions & 4 deletions v07/runs/all.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,34 @@
.
./all.txt
./latest
./index.txt
./20240424
./20240424/140112
./20240424/140112/transeptor.log
./20240424/140112/aabundler.txt
./20240424/140112/okbund.txt
./20240424/140112/skandha.json
./20240424/140112/okbund.json
./20240424/140112/aabundler.xml
./20240424/140112/transeptor.xml
./20240424/140112/aabundler.log
./20240424/140112/skandha.log
./20240424/140112/okbund.xml
./20240424/140112/transeptor.txt
./20240424/140112/aabundler.json
./20240424/140112/skandha.xml
./20240424/140112/transeptor.json
./20240424/140112/html
./20240424/140112/html/index.html
./20240424/140112/skandha.txt
./20240424/140112/index.txt
./20240424/140112/okbund.log
./20240407
./20240407/182001
./20240407/182001/aabundler.txt
./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
./all.txt
./20240407/182001/index.txt
./index.txt
1 change: 1 addition & 0 deletions v07/runs/index.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
20240407/
20240424/
all.txt
index.txt
latest
2 changes: 1 addition & 1 deletion v07/runs/latest

0 comments on commit 25c8120

Please sign in to comment.