Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Commit

Permalink
Add GUI tests under MSW to the GitHub CI workflow
Browse files Browse the repository at this point in the history
Currently native Linux GUI tests doesn't work.
  • Loading branch information
thesiv authored and Gregory W. Chicares committed Nov 2, 2020
1 parent 8c110e7 commit 2f4c824
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
automake bc bsdmainutils bzip2 curl cvs default-jre \
g++-multilib git jing libarchive-tools \
libtool libxml2-utils libxslt1-dev make patch pkg-config rsync \
shellcheck sudo trang unzip wget xsltproc
shellcheck sudo trang unzip wget xsltproc xvfb zsh
if ${{ matrix.mingw }}
then
Expand Down Expand Up @@ -84,6 +84,7 @@ jobs:
sudo --preserve-env chown $NORMAL_UID $d
done
mkdir /srv/cache_for_lmi/downloads
mkdir /opt/lmi/gui_test
mkdir /opt/lmi/src
- name: Cache downloaded archives
Expand Down Expand Up @@ -157,6 +158,14 @@ jobs:
# Tests rely on the symlinks set up by this script, so run it.
./check_git_setup.sh
# Copy a placeholder logo image.
cp ./gwc/company_logo.png /opt/lmi/data/
# Create authentication files.
printf '2450449 2472011' >/opt/lmi/data/expiry
printf '5fc68a795c9c60da1b32be989efc299a expiry\n' >/opt/lmi/data/validated.md5
printf '391daa5cbc54e118c4737446bcb84eea' >/opt/lmi/data/passkey
- name: Install
run: make install

Expand All @@ -177,3 +186,7 @@ jobs:
exclude_args="excluded_unit_test_targets=path_utility_test"
fi
make $coefficiency unit_tests $exclude_args
- name: Run GUI tests
if: matrix.mingw
run: xvfb-run ./gui_test.sh

0 comments on commit 2f4c824

Please sign in to comment.