Skip to content

Commit

Permalink
test: add a fixture to run regression tests
Browse files Browse the repository at this point in the history
TODO:

  * Add a unit test for run-regression-test.
  • Loading branch information
kou committed Apr 24, 2017
1 parent 995f86c commit 9fe8da9
Show file tree
Hide file tree
Showing 5 changed files with 739 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -4,4 +4,7 @@
/doc/po/*/
/.yardoc/
/test/.test-result/
/test/fixtures/run-regression-test/db.old/
/test/fixtures/run-regression-test/db.new/
/test/fixtures/run-regression-test/results/
/Gemfile.lock
6 changes: 6 additions & 0 deletions test/fixtures/run-regression-test/data/data.grn
@@ -0,0 +1,6 @@
load --table Entries
[
{"_key": "table_create", "description": "table_create creates a new table in the current database. You need to create one or more tables to store and search data."},
{"_key": "column_create", "description": "column_create creates a new column in a table."},
{"_key": "select", "description": "select searches records that are matched to specified conditions from a table and then outputs them."}
]
6 changes: 6 additions & 0 deletions test/fixtures/run-regression-test/indexes/indexes.grn
@@ -0,0 +1,6 @@
table_create Bigram \
TABLE_PAT_KEY ShortText \
--default_tokenizer TokenBigram \
--normalizer NormalizerAuto
column_create Bigram Entries_description \
COLUMN_INDEX|WITH_POSITION Entries description

0 comments on commit 9fe8da9

Please sign in to comment.