diff options
author | Matthew Newhook <matthew@zeroc.com> | 2012-11-20 14:38:30 -0330 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2012-11-20 14:38:30 -0330 |
commit | 4c69aa841a5e3ecba11c1383892b6b85f0f9408d (patch) | |
tree | dd0d795027edc70c867332c938212ac26edefec9 /demoscript/Ice/optional.py | |
parent | Updated expect script for value demo (diff) | |
download | ice-4c69aa841a5e3ecba11c1383892b6b85f0f9408d.tar.bz2 ice-4c69aa841a5e3ecba11c1383892b6b85f0f9408d.tar.xz ice-4c69aa841a5e3ecba11c1383892b6b85f0f9408d.zip |
ICE-4962
Added new optional demo for C++.
Diffstat (limited to 'demoscript/Ice/optional.py')
-rw-r--r-- | demoscript/Ice/optional.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/demoscript/Ice/optional.py b/demoscript/Ice/optional.py new file mode 100644 index 00000000000..bc348f36b6d --- /dev/null +++ b/demoscript/Ice/optional.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python +# ********************************************************************** +# +# Copyright (c) 2003-2012 ZeroC, Inc. All rights reserved. +# +# This copy of Ice is licensed to you under the terms described in the +# ICE_LICENSE file included in this distribution. +# +# ********************************************************************** + +import sys + +def run(client, server): + sys.stdout.write("testing... ") + sys.stdout.flush() + + client.expect('Checking john... ok') + client.expect('Checking steve... ok') + client.expect('Checking frank... ok') + client.expect('Checking anne... ok') + + server.waitTestSuccess() + client.waitTestSuccess() + print("ok") |