Ticket #1370: test.sh

File test.sh, 765 bytes (added by Dimitar Misev, 8 years ago)
Line 
1#!/bin/bash
2
3r='rasql --user rasadmin --passwd rasadmin'
4
5if [ ! -f test.bin ]; then
6 # generate 1.4GB data
7 head -c 1408000000 /dev/urandom > test.bin
8fi
9
10$r -q 'create type ushort11 as (att0 ushort,att1 ushort,att2 ushort,att3 ushort,att4 ushort,att5 ushort,att6 ushort,att7 ushort,att8 ushort,att9 ushort,att10 ushort)' > /dev/null
11$r -q 'create type B_MDD_ushort11_3 as ushort11 mdarray [ d0,d1,d2 ]' > /dev/null
12$r -q 'create type B_SET_ushort11_3 as set (B_MDD_ushort11_3)' > /dev/null
13
14$r -q 'drop collection test' > /dev/null
15$r -q 'create collection test B_SET_ushort11_3' > /dev/null
16$r -q 'INSERT INTO test VALUES $1 TILING REGULAR [0:0,0:499,0:499] TILE SIZE 5500000' -f test.bin --mdddomain [0:0,0:7999,0:7999] --mddtype B_MDD_ushort11_3 > /dev/null