diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-10 01:02:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-10 01:02:50 +0000 |
commit | c66249b79aa9bfa0924494adcd5345b5b1244b0c (patch) | |
tree | 19a77c57cc41d8b522554fbde0c36d6f20d7dc7b /src/updates/gwenview_1.4_osdformat_test.sh | |
download | gwenview-c66249b79aa9bfa0924494adcd5345b5b1244b0c.tar.gz gwenview-c66249b79aa9bfa0924494adcd5345b5b1244b0c.zip |
Added old abandoned KDE3 version of gwenview
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gwenview@1088034 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/updates/gwenview_1.4_osdformat_test.sh')
-rwxr-xr-x | src/updates/gwenview_1.4_osdformat_test.sh | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/updates/gwenview_1.4_osdformat_test.sh b/src/updates/gwenview_1.4_osdformat_test.sh new file mode 100755 index 0000000..ed555d7 --- /dev/null +++ b/src/updates/gwenview_1.4_osdformat_test.sh @@ -0,0 +1,39 @@ +#!/bin/sh +check() { + cat > src.txt <<EOF +$1 +EOF + cat > tmp.txt <<EOF +$2 +EOF + sort tmp.txt > wanted.txt + ./gwenview_1.4_osdformat.sh < src.txt | sort > dst.txt + if diff -uwB --brief wanted.txt dst.txt ; then + echo ok + else + echo " +-------------- +# From: +$1 +# To: +$2 +# Got: +" + cat dst.txt + echo "# Wanted:" + cat wanted.txt + echo " +-------------- +" + fi +} + +check "osd mode=0" "osdFormat=" +check "osd mode=1" "osdFormat=%p" +check "osd mode=2" "osdFormat=%c" +check "osd mode=3" "osdFormat=%p\\n%c" +check "osd mode=3 +something else" "osdFormat=%p\\n%c +something else" +check "osd mode=4 +free output format=zog\\nzog" "osdFormat=zog\\nzog" |