From 96f55cddf3412a76680f4ce8b08c15bec398bd7c Mon Sep 17 00:00:00 2001 From: rjawor Date: Fri, 9 May 2014 10:10:35 +0200 Subject: [PATCH] correct jrc tests Former-commit-id: 5ed98d576a476cd86143120b6be5316944d0c052 --- concordia-clear-jrc.sh | 4 ++++ concordia-index-jrc.sh | 14 ++++++++++++++ concordia-search-jrc.sh | 7 +++++++ 3 files changed, 25 insertions(+) create mode 100755 concordia-clear-jrc.sh create mode 100755 concordia-index-jrc.sh create mode 100755 concordia-search-jrc.sh diff --git a/concordia-clear-jrc.sh b/concordia-clear-jrc.sh new file mode 100755 index 0000000..55427ae --- /dev/null +++ b/concordia-clear-jrc.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +rm prod/resources/temp/* +rm prod/resources/text-files/jrc_smaller.txt diff --git a/concordia-index-jrc.sh b/concordia-index-jrc.sh new file mode 100755 index 0000000..197026f --- /dev/null +++ b/concordia-index-jrc.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +echo "CONCORDIA INDEXER: Decompressing test file" + +xz -dk prod/resources/text-files/jrc_smaller.txt.xz + +echo "CONCORDIA INDEXER: Running Concordia" + +rm prod/resources/temp/* + +echo "CONCORDIA INDEXER: reading from file" +./build/concordia-console/concordia-console -c prod/resources/concordia-config/concordia.cfg -r prod/resources/text-files/jrc_smaller.txt + + diff --git a/concordia-search-jrc.sh b/concordia-search-jrc.sh new file mode 100755 index 0000000..f8fd90c --- /dev/null +++ b/concordia-search-jrc.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +echo "CONCORDIA SEARCHER: searching for pattern: \"Parlamentu Europejskiego\"" +./build/concordia-console/concordia-console -c prod/resources/concordia-config/concordia.cfg -s "Parlamentu Europejskiego" -n +echo "CONCORDIA SEARCHER: searching for pattern: \"Dostęp do zatrudnienia\"" +./build/concordia-console/concordia-console -c prod/resources/concordia-config/concordia.cfg -s "Dostęp do zatrudnienia" -n +