Commit eab072fb authored by Luis Araujo's avatar Luis Araujo

Remove telepathy folks tests

All telepathy folks tests currently fail to execute because the
telepathy-gabble package is not available in the images.

Support for folks and telepathy libs also needs to be revised, so
this commit disables all the folks telepathy tests in the meantime.
Signed-off-by: Luis Araujo's avatarLuis Araujo <luis.araujo@collabora.co.uk>
parent 52e2c64a
#!/bin/sh
# Debuggability
set -x
cur_dir=$(cd $(dirname $0); pwd; cd - >/dev/null 2>&1)
if test "$1" = "1"; then
mc-tool add gabble/jabber Test111 string:account=test111@test.collabora.co.uk \
string:password='-111test-' bool:ignore-ssl-errors=true > /dev/null 2>&1
id=`mc-tool list | grep test111`
mc-tool enable $id
mc-tool auto-connect $id on
elif test "$1" = "2"; then
mc-tool add gabble/jabber Test222 string:account=test222@test.collabora.co.uk \
string:password='-222test-' bool:ignore-ssl-errors=true > /dev/null 2>&1
id=`mc-tool list | grep test222`
mc-tool enable $id
mc-tool auto-connect $id on
elif test "$1" = "3"; then
mc-tool add gabble/jabber Test333 string:account=test333@test.collabora.co.uk \
string:password='-333test-' bool:ignore-ssl-errors=true > /dev/null 2>&1
id=`mc-tool list | grep test333`
mc-tool enable $id
mc-tool auto-connect $id on
elif test "$1" = "4"; then
mc-tool add gabble/jabber Test444 string:account=test444@test.collabora.co.uk \
string:password='-444test-' bool:ignore-ssl-errors=true > /dev/null 2>&1
id=`mc-tool list | grep test444`
mc-tool enable $id
mc-tool auto-connect $id on
fi
#!/bin/sh
# Debuggability
set -x
cur_dir=$(cd $(dirname $0); pwd; cd - >/dev/null 2>&1)
if test "$1" = "1"; then
id=`mc-tool list | grep test111`
mc-tool disable $id
mc-tool auto-connect $id off
elif test "$1" = "2"; then
id=`mc-tool list | grep test222`
mc-tool disable $id
mc-tool auto-connect $id off
elif test "$1" = "3"; then
id=`mc-tool list | grep test333`
mc-tool disable $id
mc-tool auto-connect $id off
elif test "$1" = "4"; then
id=`mc-tool list | grep test444`
mc-tool disable $id
mc-tool auto-connect $id off
fi
#!/bin/sh
# Debuggability
set -x
cur_dir=$(cd $(dirname $0); pwd; cd - >/dev/null 2>&1)
if test "$1" = "1"; then
id=`mc-tool list | grep test111`
mc-tool enable $id
mc-tool auto-connect $id on
elif test "$1" = "2"; then
id=`mc-tool list | grep test222`
mc-tool enable $id
mc-tool auto-connect $id on
elif test "$1" = "3"; then
id=`mc-tool list | grep test333`
mc-tool enable $id
mc-tool auto-connect $id on
elif test "$1" = "4"; then
id=`mc-tool list | grep test444`
mc-tool enable $id
mc-tool auto-connect $id on
fi
#!/bin/sh
echo "# running test: $0"
# Debuggability
set -x
cur_dir=$(cd $(dirname $0); pwd; cd - >/dev/null 2>&1)
mkdir -p ~/.local/share/folks
# Clean up to make sure we have a good test.
$cur_dir/remove-tp-accounts.sh
# Start test.
# Create test111 account.
$cur_dir/create-account.sh 1
TMPFILE=`tempfile`
folks-inspect individuals > ${TMPFILE} 2>&1
test333_id=`grep -B 30 "test333" ${TMPFILE} | grep "Individual" | awk -F"'" '{ print $2 }'`
rm ${TMPFILE}
if [ -z "$test333_id" ]
then
echo "folks-alias-persistence: FAILED"
exit 1
fi
if ! folks-inspect set alias $test333_id crazyaliasnobodywouldeverset; then
echo "folks-alias-persistence: FAILED"
exit 1
fi
output=`folks-inspect individuals 2>&1 | grep crazyaliasnobodywouldeverset`
# Clean up after the test.
$cur_dir/remove-tp-accounts.sh
if test "z$output" != "z"; then
echo "folks-alias-persistence: PASSED"
exit 0
else
echo "folks-alias-persistence: FAILED"
exit 1
fi
#!/bin/sh
echo "# $0: running as: $(id)"
echo "# $0: running in: $(pwd)"
echo "# $0: initial environment:"
env | LC_ALL=C sort | sed -e 's/^/# /'
# Debuggability
set -x
cur_dir=$(cd $(dirname $0); pwd; cd - >/dev/null 2>&1)
# Remove all contacts from eds.
syncevolution --delete-items backend=evolution-contacts @foo bar '*'
# Add one Local 1 contact into eds.
syncevolution --import $cur_dir/local1.vcf backend=evolution-contacts @foo bar
# Ensure "Local 1" is found in folks.
output=`folks-inspect individuals | grep "Local 1"`
# Clean up the eds addressbook.
syncevolution --delete-items backend=evolution-contacts @foo bar '*'
if test "z$output" != "z"; then
echo "EDS Compatibility: PASSED"
exit 0
else
echo "EDS Compatibility: FAILED"
exit 1
fi
#!/bin/sh
echo "# $0: running as: $(id)"
echo "# $0: running in: $(pwd)"
echo "# $0: initial environment:"
env | LC_ALL=C sort | sed -e 's/^/# /'
set -x
export FOLKS_DEBUG_NO_COLOUR=1
export G_MESSAGES_DEBUG=all
exec /usr/lib/chaiwala-tests/contacts/folks-extended-info
#!/bin/sh
echo "# $0: running as: $(id)"
echo "# $0: running in: $(pwd)"
echo "# $0: initial environment:"
env | LC_ALL=C sort | sed -e 's/^/# /'
# Debuggability
set -x
cur_dir=$(cd $(dirname $0); pwd; cd - >/dev/null 2>&1)
# Clean up to make sure we have a good test.
$cur_dir/remove-tp-accounts.sh
# Remove all contacts from eds.
syncevolution --delete-items backend=evolution-contacts @foo bar '*'
# Start test.
# Create test111 and test222 account.
$cur_dir/create-account.sh 1
$cur_dir/create-account.sh 2
# Get the gabble.echo individual, so we can unlink it.
# FIXME: This depends on folks-inspect individuals output for an individual being 35 lines long
# Possibly look into using some perl script to make this test more robust
individual_id=`folks-inspect individuals 2>&1 | grep -B 35 "gabble.echo" | grep "Individual" | awk -F"'" '{ print $2 }'`
# Unlink gabble.echo so antilink will be created.
folks-inspect linking unlink-individual $individual_id
# Disable then enable both tp accounts.
$cur_dir/disable-account.sh 1
$cur_dir/disable-account.sh 2
$cur_dir/enable-account.sh 1
$cur_dir/enable-account.sh 2
# Verify antilink prevented gabble.echo personas from linking
output=`folks-inspect individuals 2>&1 | grep "jabber.*gabble.echo"`
outputlines=`echo "$output" | wc -l`
# Clean up after the test.
$cur_dir/remove-tp-accounts.sh
# Check test result
if test "$outputlines" = "2"; then
echo "folks-metacontacts-antilinking: PASSED"
exit 0
else
echo "folks-metacontacts-antilinking: FAILED"
echo "output was $output"
exit 1
fi
#!/bin/sh
echo "# $0: running as: $(id)"
echo "# $0: running in: $(pwd)"
echo "# $0: initial environment:"
env | LC_ALL=C sort | sed -e 's/^/# /'
# Debuggability
set -x
cur_dir=$(cd $(dirname $0); pwd; cd - >/dev/null 2>&1)
# Clean up to make sure we have a good test.
$cur_dir/remove-tp-accounts.sh
# Remove all contacts from eds.
syncevolution --delete-items backend=evolution-contacts @foo bar '*'
# Start test.
# Create test111 account.
$cur_dir/create-account.sh 1
# Add one Local 1 contact into eds.
syncevolution --import $cur_dir/local1.vcf backend=evolution-contacts @foo bar
TMPFILE=`tempfile`
folks-inspect personas > ${TMPFILE} 2>&1
eds_uid=`cat ${TMPFILE} | grep "uid.*eds" | awk '{ print $2 }'`
test333_uid=`cat ${TMPFILE} | grep "uid.*test333" | awk '{ print $2 }'`
test444_uid=`cat ${TMPFILE} | grep "uid.*test444" | awk '{ print $2 }'`
rm ${TMPFILE}
# Link Local 1 to test333 and test444
# sleep here because on "fast" platforms there is a race and these
# calls fail with: Failed to add contact for persona store ID
# 'eds:system-address-book': Unknown error adding contact: Conflicting
# UIDs found in added contacts
sleep 1
folks-inspect linking link-personas $eds_uid $test333_uid
sleep 1
folks-inspect linking link-personas $eds_uid $test444_uid
# Ensure "Local 1" is found in folks.
output=`folks-inspect individuals 2>&1 | grep "jabber.*test333.*test444"`
# Clean up after the test.
$cur_dir/remove-tp-accounts.sh
# Clean up the eds addressbook.
syncevolution --delete-items backend=evolution-contacts @foo bar '*'
if test "z$output" != "z"; then
echo "folks-metacontacts-linking: PASSED"
exit 0
else
echo "folks-metacontacts-linking: FAILED"
exit 1
fi
#!/bin/sh
echo "# $0: running as: $(id)"
echo "# $0: running in: $(pwd)"
echo "# $0: initial environment:"
env | LC_ALL=C sort | sed -e 's/^/# /'
# Debuggability
set -x
cur_dir=$(cd $(dirname $0); pwd; cd - >/dev/null 2>&1)
# Clean up to make sure we have a good test.
$cur_dir/remove-tp-accounts.sh
# Remove all contacts from eds.
syncevolution --delete-items backend=evolution-contacts @foo bar '*'
# Start test.
# Create test111 account.
$cur_dir/create-account.sh 1
# Add one Local 1 contact into eds.
syncevolution --import $cur_dir/local1.vcf backend=evolution-contacts @foo bar
TMPFILE=`tempfile`
folks-inspect personas > ${TMPFILE} 2>&1
eds_uid=`cat ${TMPFILE} | grep "uid.*eds" | awk '{ print $2 }'`
test333_uid=`cat ${TMPFILE} | grep "uid.*test333" | awk '{ print $2 }'`
test444_uid=`cat ${TMPFILE} | grep "uid.*test444" | awk '{ print $2 }'`
rm ${TMPFILE}
# Link Local 1 to test333 and test444
# sleep here because on "fast" platforms there is a race and these
# calls fail with: Failed to add contact for persona store ID
# 'eds:system-address-book': Unknown error adding contact: Conflicting
# UIDs found in added contacts
sleep 1
folks-inspect linking link-personas $eds_uid $test333_uid
sleep 1
folks-inspect linking link-personas $eds_uid $test444_uid
# Ensure "Local 1" is found in folks.
output=`folks-inspect individuals 2>&1 | grep "jabber.*test333.*test444"`
if test "z$output" = "z"; then
echo "folks-metacontacts-unlinking: FAILED"
echo "unable to link contacts to test unlinking"
# Clean up after the test.
$cur_dir/remove-tp-accounts.sh
# Clean up the eds addressbook.
syncevolution --delete-items backend=evolution-contacts @foo bar '*'
exit 1
else
individual_id=`folks-inspect search "Local 1" | cut -d " " -f 1`
if test "z$individual_id" = "z"; then
echo "folks-metacontacts-unlinking: FAILED"
echo "Could not look up the test individual"
exit 1
fi
folks-inspect linking unlink-individual $individual_id
# Ensure "Local 1" is found in folks.
output=`folks-inspect individuals 2>&1 | grep "jabber.*test333.*test444"`
# Clean up after the test.
$cur_dir/remove-tp-accounts.sh
# Clean up the eds addressbook.
syncevolution --delete-items backend=evolution-contacts @foo bar '*'
# output should be empty, there shouldn't be any lines with both test333 and test444 anymore.
if test "z$output" = "z"; then
echo "folks-metacontacts-unlinking: PASSED"
exit 0
else
echo "folks-metacontacts-unlinking: FAILED"
exit 1
fi
fi
#!/bin/sh
echo "# $0: running as: $(id)"
echo "# $0: running in: $(pwd)"
echo "# $0: initial environment:"
env | LC_ALL=C sort | sed -e 's/^/# /'
# Debuggability
set -x
cur_dir=$(cd $(dirname $0); pwd; cd - >/dev/null 2>&1)
mkdir -p ~/.local/share/folks
# Make sure there are no existing telepathy accounts.
$cur_dir/remove-tp-accounts.sh
# Create test111 account
$cur_dir/create-account.sh 1
sleep 2
output=`folks-inspect individuals 2>&1 | grep gabble.echo`
alloutput=`folks-inspect search test11`
$cur_dir/remove-tp-accounts.sh
if test "z$output" = "z"; then
echo "folks-search-contacts: FAILED"
echo "folks-inspect search output is $alloutput"
exit 1
else
echo "folks-search-contacts: PASSED"
exit 0
fi
#!/bin/sh
# Debuggability
set -x
cur_dir=$(cd $(dirname $0); pwd; cd - >/dev/null 2>&1)
for a in `mc-tool list`; do
mc-tool remove $a
done
#!/bin/sh
cur_dir=`dirname $0`
$cur_dir/create-account.sh 1
$cur_dir/create-account.sh 2
$cur_dir/create-account.sh 3
$cur_dir/create-account.sh 4
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment