Skip to content

Commit a54d7cf

Browse files
committed
PVM tests v0.3: remove tests which expose gas precharging
1 parent 30ba85a commit a54d7cf

File tree

5 files changed

+8
-217
lines changed

5 files changed

+8
-217
lines changed

pvm/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PVM Test Vectors, version 0.1
1+
# PVM Test Vectors, version 0.3
22

33
## How to use this
44

@@ -24,6 +24,13 @@ See [TESTCASES.md](./TESTCASES.md) for a human-readable index of all of the test
2424

2525
## Changelog
2626

27+
### v0.3
28+
29+
* Removed tests which were testing gas behavior that is not yet described in the GP:
30+
- `inst_load_u8_trap.json`,
31+
- `inst_store_u8_trap_inaccessible`
32+
- `inst_store_u8_trap_read_only`
33+
2734
### v0.2
2835

2936
* Bitmask paddings are now filled with zeros, in alignment with the GP.

pvm/TESTCASES.md

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,21 +1594,6 @@ Final value of the program counter: 5
15941594
Gas consumed: 10000 -> 9998
15951595

15961596

1597-
## inst_load_u8_trap
1598-
1599-
```
1600-
: @0
1601-
0: 3c 07 00 00 02 r7 = u8 [0x20000]
1602-
5: invalid
1603-
```
1604-
1605-
Program should end with: trap
1606-
1607-
Final value of the program counter: 0
1608-
1609-
Gas consumed: 10000 -> 9998
1610-
1611-
16121597
## inst_move_reg
16131598

16141599
Initial non-zero registers:
@@ -2554,45 +2539,6 @@ Final value of the program counter: 5
25542539
Gas consumed: 10000 -> 9998
25552540

25562541

2557-
## inst_store_u8_trap_inaccessible
2558-
2559-
Initial non-zero registers:
2560-
* r7 = 0x12345678
2561-
2562-
```
2563-
: @0
2564-
0: 47 07 00 00 02 u8 [0x20000] = r7
2565-
5: invalid
2566-
```
2567-
2568-
Program should end with: trap
2569-
2570-
Final value of the program counter: 0
2571-
2572-
Gas consumed: 10000 -> 9998
2573-
2574-
2575-
## inst_store_u8_trap_read_only
2576-
2577-
Initial page map:
2578-
* RO: 0x10000-0x11000 (0x1000 bytes)
2579-
2580-
Initial non-zero registers:
2581-
* r7 = 0x12345678
2582-
2583-
```
2584-
: @0
2585-
0: 47 07 00 00 01 u8 [0x10000] = r7
2586-
5: invalid
2587-
```
2588-
2589-
Program should end with: trap
2590-
2591-
Final value of the program counter: 0
2592-
2593-
Gas consumed: 10000 -> 9998
2594-
2595-
25962542
## inst_sub
25972543

25982544
Initial non-zero registers:

pvm/programs/inst_load_u8_trap.json

Lines changed: 0 additions & 52 deletions
This file was deleted.

pvm/programs/inst_store_u8_trap_inaccessible.json

Lines changed: 0 additions & 52 deletions
This file was deleted.

pvm/programs/inst_store_u8_trap_read_only.json

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)