aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorN. Engelhardt <nak@symbioticeda.com>2020-03-19 13:14:43 +0100
committerGitHub <noreply@github.com>2020-03-19 13:14:43 +0100
commite03f725ef27f696e316595999f3dc94ad5f6d946 (patch)
tree42d5fb9a0492fe014c7c5db07a5faf048f2d6d52 /tests
parentb473264a060c96347e787aeb93557e320ef4b747 (diff)
parent7ea7fb700b4e7450b679d8be8a3380ecba721b68 (diff)
downloadyosys-e03f725ef27f696e316595999f3dc94ad5f6d946.tar.gz
yosys-e03f725ef27f696e316595999f3dc94ad5f6d946.tar.bz2
yosys-e03f725ef27f696e316595999f3dc94ad5f6d946.zip
Merge pull request #1774 from boqwxp/exec
Add `exec` command to allow running shell commands from inside Yosys scripts
Diffstat (limited to 'tests')
-rw-r--r--tests/various/exec.ys6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/various/exec.ys b/tests/various/exec.ys
new file mode 100644
index 000000000..0eec00719
--- /dev/null
+++ b/tests/various/exec.ys
@@ -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"