From 3e6ea8eeb0fb6cc72c2d4aaaf20e5633847e3737 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 12 Nov 2018 00:48:25 +0300 Subject: Test dyecmd in some ci jobs. --- tools/ci/scripts/rundyecmd.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 tools/ci/scripts/rundyecmd.sh (limited to 'tools/ci/scripts') diff --git a/tools/ci/scripts/rundyecmd.sh b/tools/ci/scripts/rundyecmd.sh new file mode 100755 index 000000000..57a229768 --- /dev/null +++ b/tools/ci/scripts/rundyecmd.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +function testdye { + rm test1.png || true + echo ./src/dyecmd "data/icons/manaplus.png|$1" test1.png + ./src/dyecmd "data/icons/manaplus.png|$1" test1.png || exit 1 + ls test1.png || exit 1 + rm test1.png || true +} + +export SDL_VIDEODRIVER="dummy" +testdye "S:#3c3c3c,40332d,4d4d4d,5e4a3d,686868,705740,919191,a1825d,b6b6b6,b59767,dfdfdf,dbbf88" +testdye "A:#3c3c3c00,40332d50" +testdye "W:#743e66,955372,bd6f8c,e68e9a,f0b49c,efe1c7" -- cgit v1.2.3-60-g2f50