3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-09-01 17:20:41 +00:00

More directory tests

Confirming that the changes to path handling didn't break anything.
`~/` works locally, but I'm not sure how to actually include that as a test.
This commit is contained in:
Krystine Sherwin 2025-08-02 10:38:35 +12:00
parent a215e3260a
commit 1d28294391
No known key found for this signature in database
2 changed files with 27 additions and 0 deletions

17
tests/links/more_dirs.sby Normal file
View file

@ -0,0 +1,17 @@
[tasks]
link
copy
[options]
mode prep
[engines]
btor btormc
[script]
read -noverific
script dir/script.ys
[files]
here/dir ${WORKDIR}/../dir
a/b/c.v prv32fmcmp.v

10
tests/links/more_dirs.sh Normal file
View file

@ -0,0 +1,10 @@
#!/bin/bash
set -e
if [[ $TASK == link ]]; then
flags="--setup --link"
else
flags="--setup"
fi
python3 $SBY_MAIN -f $SBY_FILE $TASK $flags
test -e ${WORKDIR}/src/here/dir -a -e ${WORKDIR}/src/a/b/c.v