mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
Added an option for clickhouse-test to generate reference for just one test. Added reference for one test query. [#METR-10566]
This commit is contained in:
parent
755fa64369
commit
42be4d6ec5
@ -68,11 +68,11 @@ do
|
||||
cat $result_file
|
||||
elif [ ! -e "$reference_file" ]; then
|
||||
# надо сгенерировать эталонный результат
|
||||
if [ "$1" == "--generate" ]; then
|
||||
if [ "$1" == "--generate" ] && ( [ "$2" == "" ] || [ "$2" == "$test_name" ] ); then
|
||||
cp $result_file $reference_file
|
||||
echo -e "$MSG_GENERATED - no reference file"
|
||||
else
|
||||
echo -e "$MSG_UNKNOWN - no reference file (use --generate to create)"
|
||||
echo -e "$MSG_UNKNOWN - no reference file (use --generate [test_name] to create)"
|
||||
fi
|
||||
else
|
||||
diff $reference_file $result_file > $diff_file
|
||||
|
@ -0,0 +1,3 @@
|
||||
[0,0,0]
|
||||
|
||||
[0,0,0]
|
Loading…
Reference in New Issue
Block a user