3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-11-22 05:36:43 +00:00

bug5495.sh: Skip test if timeout isn't available

This commit is contained in:
Krystine Sherwin 2025-11-21 16:30:27 +13:00 committed by Robert O'Callahan
parent e33ca17388
commit 44ab884b06

View file

@ -1,5 +1,10 @@
#!/usr/bin/env bash
if ! which timeout ; then
echo "No 'timeout', skipping test"
exit 0
fi
if ! timeout 5 ../../yosys bug5495.v -p 'hierarchy; techmap; abc -script bug5495.abc' ; then
echo "Yosys failed to complete"
exit 1