Navigation Menu

Skip to content

Commit

Permalink
don't include generated files.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Nov 7, 2011
1 parent 5db08d6 commit ea7d019
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/sql/groonga_storage/r/files.am
Expand Up @@ -34,7 +34,7 @@ result_files = \
hash_index_id_primary.result \
hash_index_id_unique.result \
hash_index_normal_column_insert.result \
information_schema.result \
information_schema.result.in \
insert.result \
last_insert_grn_id.result \
log_level.result \
Expand Down
11 changes: 10 additions & 1 deletion test/sql/update-result-files.sh
@@ -1,5 +1,14 @@
#!/bin/sh

remove_generated_path()
{
while read path; do
if [ ! -f "$path.in" ]; then
echo "$path"
fi
done
}

list_paths()
{
variable_name=$1
Expand All @@ -12,7 +21,7 @@ list_paths()
echo
}

(find . -type f -name '*.result'; \
(find . -type f -name '*.result' | remove_generated_path; \
find . -type f -name '*.result.in') | \
sed -e 's,\./,,' | \
list_paths "result_files"

0 comments on commit ea7d019

Please sign in to comment.