From 38f0de444dbcedaa71bceae830fb1ae8e094e14a Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Fri, 26 Jan 2024 23:01:37 -0500 Subject: [PATCH] test dir mode and add more images that could be tested --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a9fa22..454b937 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,4 +25,7 @@ jobs: - name: Build run: make -C src - name: Test - run: ./src/tiv -w 80 -h 24 /usr/share/pixmaps/debian-logo.png + run: | + images=('/usr/local/share/icons/hicolor/128x128/apps/microsoft-edge.png' '/usr/local/share/icons/hicolor/128x128/apps/CMakeSetup.png' '/usr/local/doc/cmake/html/_static/file.png' '/usr/local/lib/android/sdk/extras/google/google_play_services/samples/tagmanager/cuteanimals/res/drawable/cat_1.jpg' '/usr/local/lib/android/sdk/extras/google/google_play_services/samples/wallet/res/drawable-ldpi/icon.png' '/usr/local/lib/android/sdk/extras/google/google_play_services/samples/wallet/res/drawable-hdpi/icon.png' '/usr/share/plymouth/themes/spinner/watermark.png' '/usr/share/apache2/icons/apache_pb.png' '/usr/share/doc/libpng-dev/examples/pngtest.png') + ./src/tiv -w 160 -h 48 ${images[ $RANDOM % ${#images[@]} ]} # Get random image + ./src/tiv -w 160 -h 48 /usr/share/pixmaps # Dir mode