Skip to content

Commit

Permalink
test: use pacboy
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Nov 4, 2021
1 parent e82282e commit 2e4f548
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 82 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
with:
msystem: ${{ matrix.sys.msystem }}
update: true
install: pactoys

- name: '🏳️ Test'
run: ./test/${{ matrix.tool }}.sh
13 changes: 2 additions & 11 deletions test/dfu-util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,8 @@ cd $(dirname "$0")

./env.sh

printf '\n::group::Install dfu-util through pacman\n'
case "$MSYSTEM" in
MINGW64|mingw64) _arch='x86_64' ;;
MINGW32|mingw32) _arch='i686' ;;
*)
echo 'Unknown MSYSTEM: $MSYSTEM'
exit 1
;;
esac

pacman -S --noconfirm mingw-w64-${_arch}-dfu-util
printf '\n::group::Install dfu-util through pacboy\n'
pacboy -S --noconfirm dfu-util:p
echo '::endgroup::'

printf '\nSmoke tests\n'
Expand Down
31 changes: 12 additions & 19 deletions test/ghdl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,18 @@ cd $(dirname "$0")

./env.sh

printf '\n::group::Install ghdl through pacman\n'
case "$MSYSTEM" in
MINGW64|mingw64) _arch='x86_64' ;;
MINGW32|mingw32) _arch='i686' ;;
*)
echo 'Unknown MSYSTEM: $MSYSTEM'
exit 1
;;
esac

pacman -S --noconfirm \
diffutils \
git \
make \
mingw-w64-${_arch}-gcc \
mingw-w64-${_arch}-ghdl \
mingw-w64-${_arch}-python-pip \
mingw-w64-${_arch}-python-pytest \
mingw-w64-${_arch}-python-wheel
printf '\n::group::Install ghdl and dependencies through pacman and pacboy\n'
pacman -S --noconfirm \
diffutils \
git \
make

pacboy -S --noconfirm \
gcc:p \
ghdl:p \
python-pip:p \
python-pytest:p \
python-wheel:p
echo '::endgroup::'

printf '\nSmoke tests\n'
Expand Down
13 changes: 2 additions & 11 deletions test/icesprog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,8 @@ cd $(dirname "$0")

./env.sh

printf '\n::group::Install icesprog through pacman\n'
case "$MSYSTEM" in
MINGW64|mingw64) _arch='x86_64' ;;
MINGW32|mingw32) _arch='i686' ;;
*)
echo 'Unknown MSYSTEM: $MSYSTEM'
exit 1
;;
esac

pacman -S --noconfirm mingw-w64-${_arch}-icesprog
printf '\n::group::Install icesprog through pacboy\n'
pacboy -S --noconfirm icesprog:p
echo '::endgroup::'

printf '\nSmoke tests\n'
Expand Down
13 changes: 2 additions & 11 deletions test/icestorm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,8 @@ cd $(dirname "$0")

./env.sh

printf '\n::group::Install icestorm through pacman\n'
case "$MSYSTEM" in
MINGW64|mingw64) _arch='x86_64' ;;
MINGW32|mingw32) _arch='i686' ;;
*)
echo 'Unknown MSYSTEM: $MSYSTEM'
exit 1
;;
esac

pacman -S --noconfirm mingw-w64-${_arch}-icestorm
printf '\n::group::Install icestorm through pacboy\n'
pacboy -S --noconfirm icestorm:p
echo '::endgroup::'

printf '\nSmoke tests (icestorm)\n'
Expand Down
31 changes: 12 additions & 19 deletions test/iverilog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,18 @@ cd $(dirname "$0")

./env.sh

printf '\n::group::Install iverilog through pacman\n'
case "$MSYSTEM" in
MINGW64|mingw64) _arch='x86_64' ;;
MINGW32|mingw32) _arch='i686' ;;
*)
echo 'Unknown MSYSTEM: $MSYSTEM'
exit 1
;;
esac

pacman -S --noconfirm \
diffutils \
git \
make \
mingw-w64-${_arch}-gcc \
mingw-w64-${_arch}-python-pip \
mingw-w64-${_arch}-python-pytest \
mingw-w64-${_arch}-python-wheel \
mingw-w64-${_arch}-iverilog
printf '\n::group::Install iverilog and dependencies through pacman and pacboy\n'
pacman -S --noconfirm \
diffutils \
git \
make

pacboy -S --noconfirm \
gcc:p \
python-pip:p \
python-pytest:p \
python-wheel:p \
iverilog:p
echo '::endgroup::'

printf '\nSmoke tests\n'
Expand Down
14 changes: 3 additions & 11 deletions test/yosys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,9 @@ cd $(dirname "$0")

./env.sh

printf '\n::group::Install ghdl through pacman\n'
case "$MSYSTEM" in
MINGW64|mingw64) _arch='x86_64' ;;
MINGW32|mingw32) _arch='i686' ;;
*)
echo 'Unknown MSYSTEM: $MSYSTEM'
exit 1
;;
esac

pacman -S --noconfirm make mingw-w64-${_arch}-yosys
printf '\n::group::Install yosys and dependencies through pacman and pacboy\n'
pacman -S --noconfirm make
pacboy -S --noconfirm yosys:p
echo '::endgroup::'

printf '\nSmoke tests\n'
Expand Down

0 comments on commit 2e4f548

Please sign in to comment.