From 58b77a4ae8102e2d04450b68a665e3ad41ff7e31 Mon Sep 17 00:00:00 2001 From: Jean-Luc Lamadon Date: Fri, 18 Sep 2009 10:25:50 +0300 Subject: Fixed plugingchanging test Signed-off-by: Marja Hassinen --- .../customer-tests/pluginchanging/pluginchanging.py | 4 ++-- libcontextsubscriber/customer-tests/runTests.sh | 8 ++++---- libcontextsubscriber/customer-tests/tests.xml | 6 ++---- 3 files changed, 8 insertions(+), 10 deletions(-) (limited to 'libcontextsubscriber') diff --git a/libcontextsubscriber/customer-tests/pluginchanging/pluginchanging.py b/libcontextsubscriber/customer-tests/pluginchanging/pluginchanging.py index 9a5866c1..3645d847 100755 --- a/libcontextsubscriber/customer-tests/pluginchanging/pluginchanging.py +++ b/libcontextsubscriber/customer-tests/pluginchanging/pluginchanging.py @@ -47,8 +47,8 @@ class Subscription(unittest.TestCase): os.environ["CONTEXT_PROVIDERS"] = "." # We need 2 plugins which are in separate directories. os.environ["CONTEXT_SUBSCRIBER_PLUGINS"] = "." - os.system('cp ../testplugins/libcontextsubscribertime1.so* .') - os.system('cp ../testplugins/libcontextsubscribertime2.so* .') + os.system('cp ../testplugins/libcontextsubscribertime1.so.0.0.0 ./libcontextsubscribertime1.so') + os.system('cp ../testplugins/libcontextsubscribertime2.so.0.0.0 ./libcontextsubscribertime2.so') self.context_client = CLTool("context-listen", "Test.Time") diff --git a/libcontextsubscriber/customer-tests/runTests.sh b/libcontextsubscriber/customer-tests/runTests.sh index eec28a2d..885311fb 100755 --- a/libcontextsubscriber/customer-tests/runTests.sh +++ b/libcontextsubscriber/customer-tests/runTests.sh @@ -8,8 +8,8 @@ DIRS="commander subscription asynchronicity registry pluginchanging" if pkg-config contextprovider-1.0 || [ -e ../../libcontextprovider/src/.libs/libcontextprovider.so ] then # Copy built test plugin .so's closer to the test program - cp testplugins/timeplugin1/.libs/libcontextsubscribertime1.so.0.0.0 testplugins/libcontextsubscribertime1.so - cp testplugins/timeplugin2/.libs/libcontextsubscribertime2.so.0.0.0 testplugins/libcontextsubscribertime2.so + cp testplugins/timeplugin1/.libs/libcontextsubscribertime1.so.0.0.0 testplugins/ + cp testplugins/timeplugin2/.libs/libcontextsubscribertime2.so.0.0.0 testplugins/ for dir in $DIRS; do echo "Running tests in $dir" @@ -19,8 +19,8 @@ then done cd .. done - rm testplugins/libcontextsubscribertime1.so - rm testplugins/libcontextsubscribertime2.so + rm testplugins/libcontextsubscribertime1.so.0.0.0 + rm testplugins/libcontextsubscribertime2.so.0.0.0 else echo "libcontextprovider is not installed nor built" diff --git a/libcontextsubscriber/customer-tests/tests.xml b/libcontextsubscriber/customer-tests/tests.xml index e312fb9f..bbfd5354 100644 --- a/libcontextsubscriber/customer-tests/tests.xml +++ b/libcontextsubscriber/customer-tests/tests.xml @@ -10,8 +10,7 @@ - . /tmp/session_bus_address.user;export PYTHONPATH=$PYTHONPATH:../common ; export CONTEXT_PROVIDERS=.;cd - /usr/share/libcontextsubscriber-tests/asynchronicity;python /usr/share/libcontextsubscriber-tests/asynchronicity/asynchronicity.py + . /tmp/session_bus_address.user;export PYTHONPATH=$PYTHONPATH:/usr/share/libcontextsubscriber-tests/common ; export CONTEXT_PROVIDERS=.;cd /usr/share/libcontextsubscriber-tests/asynchronicity;python /usr/share/libcontextsubscriber-tests/asynchronicity/asynchronicity.py @@ -75,8 +74,7 @@ . /tmp/session_bus_address.user;export CONTEXT_PROVIDERS=.;cd /usr/share/libcontextsubscriber-tests/subscription;python /usr/share/libcontextsubscriber-tests/subscription/subscription.py SubscriptionPause.testWaitForSubscribe - . /tmp/session_bus_address.user;export PYTHONPATH=$PYTHONPATH:../common ; cd - /usr/share/libcontextsubscriber-tests/pluginchanging ; python /usr/share/libcontextsubscriber-tests/pluginchanging/pluginchanging.py + . /tmp/session_bus_address.user;export CONTEXT_PROVIDERS=.;export PYTHONPATH=$PYTHONPATH:/usr/share/libcontextsubscriber-tests/common ;cd /usr/share/libcontextsubscriber-tests/pluginchanging;python /usr/share/libcontextsubscriber-tests/pluginchanging/pluginchanging.py -- cgit v1.2.3