]> git.koha-community.org Git - koha.git/commit
Bug 11137: regression tests for QP search field alias bug
authorGalen Charlton <gmc@esilibrary.com>
Thu, 24 Oct 2013 20:25:55 +0000 (20:25 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 14 Nov 2013 15:50:16 +0000 (15:50 +0000)
commit5ca295738a2928afeadfe3bea3749c1c742528cc
tree460eee13c4a50ce59b31b9b5d3aec8fc13db1993
parenta1d4af3d73bacd552fa7411e29b4963c9350ea20
Bug 11137: regression tests for QP search field alias bug

This patch adds regression tests to verify that
Boolean searches using QueryParser function correctly.

This patch also ensures that QP is correctly initalized
when Search.t is run.

To test:

[1] Apply this patch and the following patch.
[2] Verify that prove -v t/QueryParser.t works
[3] Verify that prove -v t/db_dependent/Search.t works
[4] (optional) instead of applying both patches at the same
    time, apply only the regression test patch and run the
    tests listed in steps 2 and 3.  The following tests
    should fail:

t/db_dependent/Search.t (Wstat: 512 Tests: 198 Failed: 2)
  Failed tests:  42, 71
  Non-zero exit status: 2
t/QueryParser.t (Wstat: 256 Tests: 28 Failed: 1)
  Failed test:  12
  Non-zero exit status: 1

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
t/QueryParser.t
t/db_dependent/Search.t
t/db_dependent/zebra_config.pl