~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to TAO/orbsvcs/tests/Notify/Discarding/README

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Notification Discard Policy Test
2
 
================================
3
 
 
4
 
Description
5
 
-----------
6
 
 
7
 
This test exercises the event discarding policies of the Notification
8
 
Service.  Each of the implemented polices are tested (fifo, lifo and
9
 
priority) for both structured push consumers and sequence push consumers.
10
 
 
11
 
A number of events are sent by the supplier and the consumer should receive
12
 
a lesser number of events due queue size overflow.  Note that with the
13
 
sequence push consumer, it will actually receive more "events" than are sent
14
 
by the supplier.  This is due to the fact that the supplier is sending a
15
 
sequence of events that is much larger than the maximum batch size (set by
16
 
the consumer) and therefore the notification service breaks the sequence
17
 
into smaller sets to honor the maximum batch size setting.
18
 
 
19
 
 
20
 
Usage
21
 
-----
22
 
 
23
 
The test consists of a Structured_Supplier and Structured_Consumer as well
24
 
as a Sequence_Supplier and Sequence_Consumer.  The usage for each as is
25
 
follows:
26
 
 
27
 
$ Structured_Supplier -\?
28
 
usage:  Structured_Supplier -o <iorfile> -e <# of events>
29
 
 
30
 
$ Structured_Consumer -\?
31
 
usage:  Structured_Consumer -k <ior> -e <expected events>
32
 
                            -d <fifo|priority|lifo>
33
 
 
34
 
$ Sequence_Supplier -\?
35
 
usage:  Sequence_Supplier -o <iorfile> -e <# of events>
36
 
 
37
 
$ Sequence_Consumer -\?
38
 
usage:  Sequence_Consumer -k <ior> -l <low expected events>
39
 
                          -h <high expected events> -d <fifo|priority|lifo>
40
 
 
41
 
 
42
 
To run this test, just run the run_test.pl perl script.  It will run both
43
 
structured and sequence tests with each of the implemented discard policies.
44
 
 
45
 
 
46
 
Expected Results
47
 
----------------
48
 
The consumers of each type expect to only receive a certain number of
49
 
events.  If you see:
50
 
 
51
 
ERROR: too many events received.
52
 
 
53
 
then the test has failed.  Otherwise, the test was ok.