-
Notifications
You must be signed in to change notification settings - Fork 4
script: Add some exhaustive testing #124
base: staging
Are you sure you want to change the base?
Conversation
|
||
// Test the interpreter on all 4-byte combinations of non-trivial opcodes. | ||
#[test] | ||
//#[ignore = "This test is too expensive to run by default"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to comment the ignore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure. It runs pretty quickly in release mode, but under debug, I will have to measure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running this test with debug build takes 147 seconds on my laptop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do we aim for in these tests? Are tests that run a long-ish time under debug acceptable or do we want to disable them by default (make opt-in)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
147s is okay for me but is probably approaching the limit of "I'm getting bored waiting for this"-ness so maybe making them opt-in is a good idea. If someone touches the script stuff then they know to run them anyway so we're probably safe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In release mode, it is about 5s on my laptop btw
f7f742e
to
e6aca48
Compare
e6aca48
to
34f9b90
Compare
34f9b90
to
53a235e
Compare
53a235e
to
600ea45
Compare
No description provided.