📄 test_cover.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_cover.sh,v 1.1 2002/06/10 20:19:15 carzanig Exp $#. $SIENAHOME/tests/base.sh#cat<<EOFTested Feature: simple filter coveringTopology: 1 server, 1 object, 1 partyInterface functions: subscribe, unsubscribe, publishNotification classes: single attribute types: string, integer, boolean, floatFilter classes: single attribute, single constraint types: string, integer, boolean, float operators: any > < *EOF#opentest 1 $*## --------------- TEST BEGINS HERE -----------------## ---- {x any} C {x=10}#increfsend<<EOFsenp{ to="$siena0" method="SUB" ref=$ref subscriber="$client/1"}filter{x=10}EOF#increfsend<<EOFsenp{ to="$siena0" method="PUB" ref=$ref}event{x=10}EOFexpect<<EOFsenp{ from="$siena0" method="PUB" ref=$ref to="$client/1" }event{x=10}EOF#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=10}EOF## ---- {x > 2} C {x=10}#increfsend<<EOFsenp{ to="$siena0" method="SUB" ref=$ref subscriber="$client/1"}filter{x=10}EOF#increfsend<<EOFsenp{ to="$siena0" method="PUB" ref=$ref}event{x=10}EOFexpect<<EOFsenp{ from="$siena0" method="PUB" ref=$ref to="$client/1" }event{x=10}EOF#increfsend<<EOFsenp{to="$siena0" method="UNS" ref=$ref subscriber="$client/1"}filter{x > 2}EOF#increfsend<<EOFsenp{to="$siena0" method="PUB" ref=$ref}event{x=10}EOF### ---- {x != 2} C {x=10}#increfsend<<EOFsenp{ to="$siena0" method="SUB" ref=$ref subscriber="$client/1"}filter{x=10}EOF#increfsend<<EOFsenp{ to="$siena0" method="PUB" ref=$ref}event{x=10}EOFexpect<<EOFsenp{ from="$siena0" method="PUB" ref=$ref to="$client/1" }event{x=10}EOF#increfsend<<EOFsenp{to="$siena0" method="UNS" ref=$ref subscriber="$client/1"}filter{x != 2}EOF#increfsend<<EOFsenp{to="$siena0" method="PUB" ref=$ref}event{x=10}EOF## ---- {x < 20} C {x=10}#increfsend<<EOFsenp{ to="$siena0" method="SUB" ref=$ref subscriber="$client/1"}filter{x=10}EOF#increfsend<<EOFsenp{ to="$siena0" method="PUB" ref=$ref}event{x=10}EOFexpect<<EOFsenp{ from="$siena0" method="PUB" ref=$ref to="$client/1" }event{x=10}EOF#increfsend<<EOFsenp{to="$siena0" method="UNS" ref=$ref subscriber="$client/1"}filter{x < 20}EOF#increfsend<<EOFsenp{to="$siena0" method="PUB" ref=$ref}event{x=10}EOF## ---- {x <= 20} C {x=10}#increfsend<<EOFsenp{ to="$siena0" method="SUB" ref=$ref subscriber="$client/1"}filter{x=10}EOF#increfsend<<EOFsenp{ to="$siena0" method="PUB" ref=$ref}event{x=10}EOFexpect<<EOFsenp{ from="$siena0" method="PUB" ref=$ref to="$client/1" }event{x=10}EOF#increfsend<<EOFsenp{to="$siena0" method="UNS" ref=$ref subscriber="$client/1"}filter{x <= 20}EOF#increfsend<<EOFsenp{to="$siena0" method="PUB" ref=$ref}event{x=10}EOF##closetest $*
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -