1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-17 09:41:06 +03:00
Files
mariadb-columnstore-engine/mysql/queries/nightly/qaftest2/.svn/tmp/test703.sh.tmp
2016-01-06 14:08:59 -06:00

42 lines
1.1 KiB
Bash

#!/bin/bash
#
# Test 703. TPCH 100 data validation.
#
TEST=test703
STATUSTEXT="703 Data validation tpch100 : "
SCHEMA=tpch100
source ../scripts/extentMapValidation.sh
# Clear the min and max for the ssb100 schema extent map entries.
clearExtentMapMinMax $SCHEMA
cd ../..
time ./queryTester -q 100GB -u $SCHEMA -r Tr >> nightly/qaftest2/$TEST.log 2>&1
cd nightly/qaftest2
#
# Populate the .status file.
#
errorCount=`grep -i error $TEST.log | wc -l`
grep failed $TEST.log > failed.txt
failedCount=`cat failed.txt | wc -l`
if [ $errorCount -gt 0 ]; then
echo "$STATUSTEXT Failed (Check $TEST.log for errors)" > $TEST.status
elif [ $failedCount -gt 0 ]; then
echo "$STATUSTEXT Failed (Data validation failed. See details below.)" > $TEST.status
else
echo "$STATUSTEXT Passed" > $TEST.status
fi
#
# List the individual sql validation scripts that failed in the .details file.
#
if [ $failedCount -gt 0 ]; then
echo "$TEST validation scripts that failed:" > $TEST.details
cat failed.txt >> $TEST.details
fi
cat $TEST.status