Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=kde5.git;a=commitdiff;h=c3950952bed90a9d1f9c8c40d70b11d48dcb99f6

commit c3950952bed90a9d1f9c8c40d70b11d48dcb99f6
Author: crazy <[email protected]>
Date:   Sat Aug 19 07:14:54 2017 +0200

testsuite: added kde applications test
this one will make some noise

diff --git a/t/kde-apps b/t/kde-apps
new file mode 100755
index 0000000..fdcb88c
--- /dev/null
+++ b/t/kde-apps
@@ -0,0 +1,55 @@
+#!/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 kde applications packages"
+       exit 1
+fi
+
+
+if [ ! -d ../.git -o ! -d ../source ]; then
+       echo "hey, where are you?"
+       exit 1
+fi
+
+cd ..
+
+skip=(
+'kdelibs is kde4'
+'kde-runtime is kde4'
+'juk is kde4'
+'kopete is kde4'
+)
+
+run_kde_apps() {
+
+       local upstream i j
+       source source/include/kf5-version.sh
+
+       upstream=$(for i in applications
+       do
+               lynx -dump 
https://download.kde.org/stable/$i/$_F_kdever_apps/src|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_kde_apps
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to