CI: group snippets for tuttest

Signed-off-by: Karol Gugala <kgugala@antmicro.com>
This commit is contained in:
Karol Gugala 2021-01-19 19:07:53 +01:00
parent 4b4eba12f6
commit 557137a5a1
2 changed files with 11 additions and 16 deletions

View File

@ -53,25 +53,21 @@ elif [ "$fpga_family" == "eos-s3" -a -z "$examples" ]; then
fi
# activate conda and enter example dir
tuttest_exec docs/building-examples.rst export-install-dir
tuttest_exec docs/building-examples.rst fpga-fam-$fpga_family
tuttest_exec docs/building-examples.rst conda-prep-env
tuttest_exec docs/building-examples.rst conda-act-env
tuttest_exec docs/building-examples.rst enter-dir-$fpga_family
snippets="export-install-dir,fpga-fam-$fpga_family,conda-prep-env,conda-act-env,enter-dir-$fpga_family"
# Xilinx 7-Series examples
if [ "$fpga_family" = "xc7" ]; then
for example in $examples; do
case $example in
"counter")
tuttest_exec xc7/counter_test/README.rst example-counter-*-group
snippets="${snippets},example-counter-*-group"
;;
"picosoc")
tuttest_exec xc7/picosoc_demo/README.rst example-picosoc-*-group
snippets="${snippets},xc7/picosoc_demo/README.rst,example-picosoc-*-group"
;;
"litex_linux")
tuttest_exec xc7/linux_litex_demo/README.rst example-litex-deps
tuttest_exec xc7/linux_litex_demo/README.rst example-litex-*-group
snippets="${snippets},xc7/linux_litex_demo/README.rst,example-litex-deps,example-litex-*-group"
;;
*)
echo "ERROR: Unknown example name: $example"
@ -84,7 +80,7 @@ elif [ "$fpga_family" = "eos-s3" ]; then
for example in $examples; do
case $example in
"counter")
tuttest eos-s3/btn_counter/README.rst eos-s3-counter
snippets="${snippets},eos-s3-counter"
;;
*)
echo "ERROR: Unknown example name: $example"
@ -94,4 +90,8 @@ elif [ "$fpga_family" = "eos-s3" ]; then
done
else
echo "ERROR: Unknown fpga_family: $fpga_family"
exit 1
fi
# call tuttest
tuttest_exec docs/building-examples.rst ${snippets}

View File

@ -45,9 +45,4 @@ fi
fpga_family=$1
os=$2
tuttest_exec docs/getting-symbiflow.rst install-reqs-$os
tuttest_exec docs/getting-symbiflow.rst wget-conda
tuttest_exec docs/getting-symbiflow.rst conda-install-dir
tuttest_exec docs/getting-symbiflow.rst fpga-fam-$fpga_family
tuttest_exec docs/getting-symbiflow.rst conda-setup
tuttest_exec docs/getting-symbiflow.rst download-arch-def-$fpga_family
tuttest_exec docs/getting-symbiflow.rst install-reqs-$os,wget-conda,conda-install-dir,fpga-fam-$fpga_family,conda-setup,download-arch-def-$fpga_family