yosys/tests/various/logger_cmd_error.sh

10 lines
224 B
Bash
Raw Normal View History

2024-10-07 07:49:17 -05:00
#!/usr/bin/env bash
trap 'echo "ERROR in logger_cmd_error.sh" >&2; exit 1' ERR
(../../yosys -v 3 -C <<EOF
yosys -import
hierarchy -top nonexistent
EOF
) 2>&1 | grep -F "ERROR: Module \`nonexistent' not found!" > /dev/null