Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Symbolic Executor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Blockchains
UTXO Chains
Symbolic Executor
Commits
b9dabbbd
Commit
b9dabbbd
authored
2 years ago
by
vincent
Browse files
Options
Downloads
Patches
Plain Diff
Tests:
* Set a timeout for the symbolic execution * More tests for the symbolic execution
parent
f85da99d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/language/bitcoin/symbolic/testing_scenarii.py
+126
-28
126 additions, 28 deletions
tests/language/bitcoin/symbolic/testing_scenarii.py
tests/language/bitcoin/test_parser.py
+4
-2
4 additions, 2 deletions
tests/language/bitcoin/test_parser.py
with
130 additions
and
30 deletions
tests/language/bitcoin/symbolic/testing_scenarii.py
+
126
−
28
View file @
b9dabbbd
This diff is collapsed.
Click to expand it.
tests/language/bitcoin/test_parser.py
+
4
−
2
View file @
b9dabbbd
...
...
@@ -9,7 +9,9 @@ from symbolic_execution.hardware.machines.btc_machine import BTC_VECTOR_SIZE, BT
from
symbolic_execution.program.executer.concrete
import
ConcreteExecuter
from
.concrete.testing_scenarii
import
TESTING_SCENARII
as
CONCRETE_TESTING_SCENARII
from
.symbolic.testing_scenarii
import
TESTING_SCENARII
as
SYMBOLIC_TESTING_SCENARII
from
symbolic_execution.language.bitcoin.symbolic_interpreter
import
find_unlocking_script
from
symbolic_execution.language.bitcoin.symbolic_interpreter
import
(
find_unlocking_script
,
)
from
z3
import
is_expr
...
...
@@ -90,7 +92,7 @@ class TestParser(unittest.TestCase):
def
test_symbolic_execution
(
self
):
for
_
,
scenario
in
enumerate
(
SYMBOLIC_TESTING_SCENARII
):
with
self
.
subTest
(
scenario
.
hex_script
):
_
,
status
=
find_unlocking_script
(
scenario
.
hex_script
)
_
,
status
=
find_unlocking_script
(
scenario
.
hex_script
,
timeout
=
10
)
self
.
assertEqual
(
status
,
scenario
.
execution_status
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment