2025-07-29 01:39:52 +02:00
|
|
|
write_file fail.temp << EOF
|
|
|
|
|
logger -expect error "Missing -script or -command option." 1
|
2026-05-19 14:26:07 +02:00
|
|
|
bugpoint -suffix fail -yosys ${YOSYS}
|
2025-07-29 01:39:52 +02:00
|
|
|
EOF
|
2026-05-19 14:26:07 +02:00
|
|
|
exec -expect-return 0 -- ${YOSYS} -qq mods.il -s fail.temp
|
2025-07-29 01:39:52 +02:00
|
|
|
|
|
|
|
|
write_file fail.temp << EOF
|
|
|
|
|
logger -expect error "do not crash on this design" 1
|
2026-05-19 14:26:07 +02:00
|
|
|
bugpoint -suffix fail -yosys ${YOSYS} -command "dump"
|
2025-07-29 01:39:52 +02:00
|
|
|
EOF
|
2026-05-19 14:26:07 +02:00
|
|
|
exec -expect-return 0 -- ${YOSYS} -qq mods.il -s fail.temp
|
2025-07-29 01:39:52 +02:00
|
|
|
|
|
|
|
|
write_file fail.temp << EOF
|
|
|
|
|
logger -expect error "returned value 3 instead of expected 7" 1
|
2026-05-19 14:26:07 +02:00
|
|
|
bugpoint -suffix fail -yosys ${YOSYS} -command raise_error -expect-return 7
|
2025-07-29 01:39:52 +02:00
|
|
|
EOF
|
2026-05-19 14:26:07 +02:00
|
|
|
exec -expect-return 0 -- ${YOSYS} -qq mods.il -s fail.temp
|
2025-07-29 01:39:52 +02:00
|
|
|
|
|
|
|
|
write_file fail.temp << EOF
|
|
|
|
|
logger -expect error "not found in the log file!" 1
|
2026-05-19 14:26:07 +02:00
|
|
|
bugpoint -suffix fail -yosys ${YOSYS} -command raise_error -grep "nope"
|
2025-07-29 01:39:52 +02:00
|
|
|
EOF
|
2026-05-19 14:26:07 +02:00
|
|
|
exec -expect-return 0 -- ${YOSYS} -qq mods.il -s fail.temp
|
2025-07-29 01:39:52 +02:00
|
|
|
|
|
|
|
|
write_file fail.temp << EOF
|
|
|
|
|
logger -expect error "not found in stderr log!" 1
|
2026-05-19 14:26:07 +02:00
|
|
|
bugpoint -suffix fail -yosys ${YOSYS} -command raise_error -err-grep "nope"
|
2025-07-29 01:39:52 +02:00
|
|
|
EOF
|
2026-05-19 14:26:07 +02:00
|
|
|
exec -expect-return 0 -- ${YOSYS} -qq mods.il -s fail.temp
|