@@ -297,10 +297,13 @@ allprojects {
297
297
298
298
def refTestVersion = ' v1.4.0' // Arbitrary change to refresh cache number: 1
299
299
def blsRefTestVersion = ' v0.1.2'
300
+ def slashingProtectionInterchangeRefTestVersion = ' v5.3.0'
300
301
def refTestBaseUrl = ' https://github.com/ethereum/consensus-spec-tests/releases/download'
301
302
def blsRefTestBaseUrl = ' https://github.com/ethereum/bls12-381-tests/releases/download'
303
+ def slashingProtectionInterchangeRefTestBaseUrl = ' https://github.com/eth-clients/slashing-protection-interchange-tests/archive/refs/tags'
302
304
def refTestDownloadDir = " ${ buildDir} /refTests/${ refTestVersion} "
303
305
def blsRefTestDownloadDir = " ${ buildDir} /blsRefTests/${ blsRefTestVersion} "
306
+ def slashingProtectionInterchangeRefTestDownloadDir = " ${ buildDir} /slashingProtectionInterchangeRefTests/${ slashingProtectionInterchangeRefTestVersion} "
304
307
def refTestExpandDir = " ${ project.rootDir} /eth-reference-tests/src/referenceTest/resources/consensus-spec-tests/"
305
308
306
309
task downloadEthRefTests (type : Download ) {
@@ -321,7 +324,15 @@ task downloadBlsRefTests(type: Download) {
321
324
overwrite false
322
325
}
323
326
324
- task downloadRefTests (dependsOn : [downloadEthRefTests, downloadBlsRefTests])
327
+ task downloadSlashingProtectionInterchangeRefTests (type : Download ) {
328
+ src([
329
+ " ${ slashingProtectionInterchangeRefTestBaseUrl} /${ slashingProtectionInterchangeRefTestVersion} .tar.gz"
330
+ ])
331
+ dest " ${ slashingProtectionInterchangeRefTestDownloadDir} /slashing-protection-interchange-tests.tar.gz"
332
+ overwrite false
333
+ }
334
+
335
+ task downloadRefTests (dependsOn : [downloadEthRefTests, downloadBlsRefTests, downloadSlashingProtectionInterchangeRefTests])
325
336
326
337
task cleanRefTestsGeneral (type : Delete ) {
327
338
delete " ${ refTestExpandDir} /tests/general"
@@ -359,8 +370,25 @@ task expandRefTestsBls(type: Copy, dependsOn: [cleanRefTestsBls, downloadBlsRefT
359
370
into " ${ refTestExpandDir} /tests/bls"
360
371
}
361
372
362
- task expandRefTests (dependsOn : [expandRefTestsGeneral, expandRefTestsMainnet, expandRefTestsMinimal, expandRefTestsBls])
363
- task cleanRefTests (dependsOn : [cleanRefTestsGeneral, cleanRefTestsMainnet, cleanRefTestsMinimal, cleanRefTestsBls])
373
+ task cleanRefTestsSlashingProtectionInterchange (type : Delete ) {
374
+ delete " ${ refTestExpandDir} /tests/slashing-protection-interchange"
375
+ }
376
+
377
+ task expandRefTestsSlashingProtectionInterchange (type : Copy , dependsOn : [cleanRefTestsSlashingProtectionInterchange, downloadSlashingProtectionInterchangeRefTests]) {
378
+ from {
379
+ tarTree(" ${ slashingProtectionInterchangeRefTestDownloadDir} /slashing-protection-interchange-tests.tar.gz" ). matching {
380
+ include " **/tests/generated/*.json"
381
+ // flatten
382
+ eachFile { FileCopyDetails fcp ->
383
+ fcp. path = fcp. name
384
+ }
385
+ }
386
+ }
387
+ into " ${ refTestExpandDir} /tests/slashing-protection-interchange"
388
+ }
389
+
390
+ task expandRefTests (dependsOn : [expandRefTestsGeneral, expandRefTestsMainnet, expandRefTestsMinimal, expandRefTestsBls, expandRefTestsSlashingProtectionInterchange])
391
+ task cleanRefTests (dependsOn : [cleanRefTestsGeneral, cleanRefTestsMainnet, cleanRefTestsMinimal, cleanRefTestsBls, cleanRefTestsSlashingProtectionInterchange])
364
392
365
393
task deploy () {}
366
394
0 commit comments