3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-04 02:10:24 +00:00

bugpoint: Add -greperr option

`-greperr <string>` redirects stderr to 'bugpoint-case.err', and then searches that file for `<string>`.
Move `-runner` option up with the other options to reduce ambiguity (i.e. so it doesn't look like it's another design parts constraint).
Also some shuffling of `err.ys`.
This commit is contained in:
Krystine Sherwin 2025-07-29 11:39:51 +12:00
parent 8d5dbae06e
commit fb92eabdcd
No known key found for this signature in database
3 changed files with 45 additions and 30 deletions

View file

@ -1,2 +1,3 @@
*.il
*.log
*.log
*.err

View file

@ -20,33 +20,24 @@ bugpoint -yosys ../../yosys -command raise_error -expect-return 7
select -assert-mod-count 1 =*
select -assert-mod-count 1 top
# raise_error with string prints message
# raise_error with string prints message and exits with 1
design -load read
rename top abc
bugpoint -yosys ../../yosys -command raise_error -grep "help me"
bugpoint -yosys ../../yosys -command raise_error -grep "help me" -expect-return 1
select -assert-mod-count 1 =*
select -assert-mod-count 1 other
# raise_error with no value exits with 1
design -load read
rename def zzy
delete other
bugpoint -yosys ../../yosys -command raise_error -expect-return 1
select -assert-mod-count 1 =*
select -assert-mod-count 1 zzy
# raise_error -stderr exits with 1
# raise_error -stderr prints to stderr and exits with 1
design -load read
rename top abc
delete def
bugpoint -yosys ../../yosys -command "raise_error -stderr" -expect-return 1
bugpoint -yosys ../../yosys -command "raise_error -stderr" -greperr "help me" -expect-return 1
select -assert-mod-count 1 =*
select -assert-mod-count 1 other
#TODO
# raise_error -stderr prints to stderr
design -load read
rename top abc
delete def
# bugpoint -yosys ../../yosys -command "raise_error -stderr" -grep "help me"
# select -assert-mod-count 1 =*
# select -assert-mod-count 1 other