Moved dbshard tests to a separate cmake file

This commit is contained in:
Markus Makela
2014-12-19 17:23:26 +02:00
parent a7d1a865de
commit ce53159e7d
3 changed files with 21 additions and 7 deletions

View File

@ -1,13 +1,19 @@
#!/bin/bash
if [ $# -lt 3 ]
if [ $# -lt 5 ]
then
echo "usage $0 <host> <port> <username> <password>"
printf "Not enough arguments: '"
for i in $@
do
printf "$i "
done
echo "'given, 5 needed."
echo "usage $0 <host> <port> <username> <password> <database name>"
exit 1
fi
HOST=$1
PORT=$2
USER=$3
PW=$4
SHD="shard$RANDOM"
SHD=$5
mysql -u $USER -p$PW -P $PORT -h $HOST -e "create database $SHD;"
echo "Created database \"$SHD\" at $HOST:$PORT"