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/srvswdev11/.svn/text-base/test202.sh.svn-base
2016-01-06 14:08:59 -06:00

50 lines
964 B
Bash

#!/bin/bash
#
# Test 202. Uses queryTester to run the wide folder tests testing against tables with many columns and tables with wide string
# columns.
#
. ../scripts/common.sh $1
TEST=test202
STATUSTEXT="202 Wide Table Tests: "
echo "$STATUSTEXT In Progress" > $TEST.status
$MYSQLCMD -e "set global infinidb_compression_type=1;"
cd $TEST
./go202.sh > ../$TEST.log
cd ..
#
# Populate the .status file.
#
grep failed $TEST.log > failed.txt
lines=`cat failed.txt | wc -l`
if [ $lines -eq 0 ]
then
echo "$STATUSTEXT Passed" > $TEST.status
ret=0
else
echo "$STATUSTEXT Failed" > $TEST.status
ret=1
fi
#
# Populate the .details file.
#
# List individual scripts that failed.
grep failed $TEST.log > failed.txt
lines=`cat failed.txt | wc -l`
if [ $lines -gt 0 ]
then
echo "Failed Wide Table Tests:" > $TEST.details
cat failed.txt >> $TEST.details
fi
rm -f failed.txt
cat $TEST.status
exit $ret