mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 00:55:32 +00:00
add test and make help message more verbose
This commit is contained in:
parent
4c7cda1c8b
commit
1187e91c2f
2 changed files with 20 additions and 1 deletions
14
tests/various/scratchpad.sh
Executable file
14
tests/various/scratchpad.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
trap 'echo "ERROR in scratchpad.sh" >&2; exit 1' ERR
|
||||
|
||||
../../yosys -qp "scratchpad -set foo \"bar baz\"; \
|
||||
scratchpad -copy foo oof; scratchpad -unset foo; \
|
||||
tee -o scratchpad1.log scratchpad -get oof; \
|
||||
tee -o scratchpad2.log scratchpad -get foo"
|
||||
|
||||
test "$(cat scratchpad1.log)" = "bar baz"
|
||||
test "$(cat scratchpad2.log)" = "\"foo\" not set"
|
||||
|
||||
rm scratchpad1.log
|
||||
rm scratchpad2.log
|
Loading…
Add table
Add a link
Reference in a new issue