3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-31 08:23:19 +00:00

Merge pull request #1774 from boqwxp/exec

Add `exec` command to allow running shell commands from inside Yosys scripts
This commit is contained in:
N. Engelhardt 2020-03-19 13:14:43 +01:00 committed by GitHub
commit e03f725ef2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 210 additions and 0 deletions

6
tests/various/exec.ys Normal file
View file

@ -0,0 +1,6 @@
exec -expect-return 0 -- exit 0
exec -expect-return 27 -- exit 27
exec -expect-stdout nana -expect-stdout api -not-expect-stdout giraffe -- echo "bananapie"
logger -expect error "stdout did have a line" 1
exec -not-expect-stdout giraffe -- echo "giraffe"