Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=kde5.git;a=commitdiff;h=2883ee6fb8e6d745c99f5038bf363c2467a15faa
commit 2883ee6fb8e6d745c99f5038bf363c2467a15faa Author: crazy <[email protected]> Date: Sat Aug 19 06:59:02 2017 +0200 testsuite: added plasma5 test checks like xorg for missing package just we use the info from $_F_kdever_plasma eg: the in-use-version diff --git a/t/plasma5 b/t/plasma5 new file mode 100755 index 0000000..efaa0aa --- /dev/null +++ b/t/plasma5 @@ -0,0 +1,50 @@ +#!/bin/bash + +in_array() +{ + local i needle + needle=$1 + shift 1 + # array() undefined + [ -z "$1" ] && return 1 + for i in $* + do + echo $i |grep -q "^$needle" && return 0 + done + return 1 +} + +if [ "$1" == "--help" ]; then + echo "Missing plasma packages" + exit 1 +fi + + +if [ ! -d ../.git -o ! -d ../source ]; then + echo "hey, where are you?" + exit 1 +fi + +cd .. + +skip=() + +run_plasma() { + + local upstream i j + source source/include/kf5-version.sh + + upstream=$(for i in plasma + do + lynx -dump https://download.kde.org/stable/$i/$_F_kdever_plasma|grep xz$|sed 's|.*/\(.*\)-[0-9].*|\1|' + done |sort -u |tr '[A-Z]' '[a-z]') + + for j in $upstream + do + if ! stat source/*/$j &>/dev/null && ! stat source/*/${j}5 &>/dev/null && ! in_array $j ${skip[@]}; then + echo $j + fi + done +} + +run_plasma _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
