⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test_any.sh

📁 发布/订阅系统中间件
💻 SH
字号:
#!/bin/sh##  This file is part of Siena, a wide-area event notification system.#  See http://www.cs.colorado.edu/serl/dot/siena.html##  Author: Antonio Carzaniga <carzanig@cs.colorado.edu>#  See the file AUTHORS for full details. ##  Copyright (C) 1998-1999 University of Colorado##  This program is free software; you can redistribute it and/or#  modify it under the terms of the GNU General Public License#  as published by the Free Software Foundation; either version 2#  of the License, or (at your option) any later version.##  This program is distributed in the hope that it will be useful,#  but WITHOUT ANY WARRANTY; without even the implied warranty of#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the#  GNU General Public License for more details.##  You should have received a copy of the GNU General Public License#  along with this program; if not, write to the Free Software#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307,#  USA, or send email to serl@cs.colorado.edu.### $Id: test_any.sh,v 1.1 2002/06/10 20:19:15 carzanig Exp $#. ./config. $srcdir/base.sh#cat<<EOFTested Feature:		operator anyTopology:		4 servers, 1 object, 1 partyInterface functions:	subscribe, unsubscribe, publishNotification classes:	single attribute             types:	string, integer, boolean, floatFilter classes:		single attribute, single constraint       types:		-       operators:	anyEOF## opentest <topology> [notopology | restart]#opentest 1 $*## --------------- TEST BEGINS HERE -----------------### @0 1 <-- {x any}#increfsend<<EOFsenp{to="$siena0" method="SUB" ref=$ref subscriber="$client/1"}filter{x any}EOF##increfsend<<EOFsenp{to="$siena1" method="PUB" ref=$ref}event{x="ABCDEFuvxyz"}EOFexpect<<EOFsenp{from="$siena0" method="PUB" ref=$ref to="$client/1" }event{x="ABCDEFuvxyz"}EOF##increfsend<<EOFsenp{to="$siena2" method="PUB" ref=$ref}event{x=1234}EOFexpect<<EOFsenp{from="$siena0" method="PUB" ref=$ref to="$client/1" }event{x=1234}EOF##increfsend<<EOFsenp{to="$siena3" method="PUB" ref=$ref}event{x=false}EOFexpect<<EOFsenp{from="$siena0" method="PUB" ref=$ref to="$client/1" }event{x=false}EOF##increfsend<<EOFsenp{to="$siena0" method="PUB" ref=$ref}event{x=true}EOFexpect<<EOFsenp{from="$siena0" method="PUB" ref=$ref to="$client/1" }event{x=true}EOF##increfsend<<EOFsenp{to="$siena1" method="PUB" ref=$ref}event{x=1.234}EOFexpect<<EOFsenp{from="$siena0" method="PUB" ref=$ref to="$client/1" }event{x=1.234}EOF## @0 1 -X- {x any}#increfsend<<EOFsenp{to="$siena0" method="UNS" ref=$ref subscriber="$client/1"}filter{x any}EOF#increfsend<<EOFsenp{to="$siena0" method="PUB" ref=$ref}event{x="ABCDEFuvxyz"}EOF##increfsend<<EOFsenp{to="$siena1" method="PUB" ref=$ref}event{x=1234}EOF##increfsend<<EOFsenp{to="$siena2" method="PUB" ref=$ref}event{x=false}EOF##increfsend<<EOFsenp{to="$siena3" method="PUB" ref=$ref}event{x=true}EOF##increfsend<<EOFsenp{to="$siena0" method="PUB" ref=$ref}event{x=1.234}EOF### --------------- TEST ENDS HERE -----------------#closetest $*

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -