tests.pl coordinates the other tests. It takes one argument - the name
of the test bdii server. It includes running consistency.pl which has
the follwoing tests:

**********************************************************************
* No filter:
**********************************************************************

Get all services

**********************************************************************
* Service filter:
**********************************************************************

* Simple Searches *
Type = ResourceBroker
Type = SRM
Name = IN2P3-LAPP-rb
URL = https://torik1.ulakbim.gov.tr:8443/R-GMA/PrimaryProducerServlet
Uid = httpg://se.grid.vgtu.lt:8443/srm/managerv1

In each case the results are checked to make sure that only the requested item is returned.
The number of returned services for each test are stored for later use.

* OR *
Type = 'ResourceBroker' OR Type = 'SRM'
Type = 'ResourceBroker' OR Type = 'ResourceBroker'

* AND *
Type = 'ResourceBroker' AND Type = 'ResourceBroker'
Type = 'ResourceBroker' AND Name = 'IN2P3-LAPP-rb'

* Simple NOT *
Type <> 'ResourceBroker'

The result is checked to make sure that the requested item is not returned.

* NOT OR AND *
Type <> 'ResourceBroker' OR Type = 'ResourceBroker'
Type = 'ResourceBroker' OR Type <> 'ResourceBroker'
Type <> 'ResourceBroker' AND Type = 'ResourceBroker'
Type <> 'ResourceBroker' AND Type <> 'ResourceBroker'
Type <> 'ResourceBroker' AND Name = 'IN2P3-LAPP-rb'
Type = 'ResourceBroker' AND Name <> 'IN2P3-LAPP-rb'

* LIKE *
Type Like 'Res%ker'

**********************************************************************
* VO Filter *
**********************************************************************

* Simple searches *
VO = 'Atlas'
VO = 'dteam'

* OR IN *
VO = 'atlas' OR VO = 'dteam'
VO in ('atlas', 'dteam')

* Duplication *
VO = 'atlas' OR VO = 'atlas'
VO = 'atlas' AND VO = 'atlas'

* AND NOT *
VO = 'atlas' AND VO = 'dteam'
VO = 'atlas' OR VO = 'dteam'
VO = 'atlas' AND VO <> 'dteam'
VO = 'dteam' AND VO <> 'atlas'

We check the first result is the same as the second minus the third and fourth.
For queries containing a <> we check that the requested item does not occur in the results.

* Parenthesis *
#Check parenthesis
(VO = 'atlas' AND VO <> 'dteam') OR (VO = 'dteam' AND VO <> 'atlas')
VO = 'aaaa' AND (VO = 'atlas' OR VO = 'dteam')
(VO = 'aaaa' AND VO = 'atlas') OR VO = 'dteam'
(VO = 'aaaa' AND VO = 'atlas' OR VO = 'dteam')

First test used to re-check the previous tests.
For second, third and fourth tests 'aaaa' should never match.

* Data Filter *
Currently no tests as no vector attributes are available in the test data.

