diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | ce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch) | |
tree | 5ac38a06f3dde268dc7927dc155896926aaf7012 /dcop/tests/run-tests.sh | |
download | tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'dcop/tests/run-tests.sh')
-rw-r--r-- | dcop/tests/run-tests.sh | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dcop/tests/run-tests.sh b/dcop/tests/run-tests.sh new file mode 100644 index 000000000..216c29aef --- /dev/null +++ b/dcop/tests/run-tests.sh @@ -0,0 +1,44 @@ + +clean_up() { + rm -f batch.stdout shell.stdout shell.returns batch.returns +} + +clean_up + +echo '* Running batch mode' +./dcop_test --batch >batch.stdout + +echo -n '* Starting test app ' +./dcop_test >shell.stdout & + +while ! dcop | grep -q TestApp; do echo -n '.'; sleep 2; done + +echo ' started' + +echo '* Running driver mode' +./driver `dcop 'TestApp-*'` >driver.stdout + +echo '* Running shell mode' +source shell.generated >shell.returns + +echo -n '* Comparing ... ' + +compare() +{ +if ! diff -q --strip-trailing-cr $1 $2; then + echo "FAILED:" + diff -u $1 $2 + exit 1; +fi +} + +compare batch.stdout shell.stdout +compare batch.stdout driver.stdout +compare batch.returns shell.returns +compare batch.returns driver.returns + +clean_up + +echo "Passed" +exit 0; + |