Artifact 7217b9abad5d9406e14443f69eef608b37b4a4aa:
- Executable file rpctest/run-client.sh — part of check-in [cf97950521] at 2015-12-07 22:26:52 on branch v1.60 — Switched rcp test to use sql-de-lite (user: matt size: 397) [more...]
0000: 23 21 2f 62 69 6e 2f 62 61 73 68 0a 0a 0a 77 68 #!/bin/bash...wh 0010: 69 6c 65 20 2e 2f 72 70 63 74 65 73 74 20 63 6c ile ./rpctest cl 0020: 69 65 6e 74 20 22 69 6e 73 65 72 74 20 69 6e 74 ient "insert int 0030: 6f 20 66 6f 6f 20 28 76 61 72 2c 76 61 6c 29 20 o foo (var,val) 0040: 76 61 6c 75 65 73 20 28 24 52 41 4e 44 4f 4d 2c values ($RANDOM, 0050: 24 52 41 4e 44 4f 4d 29 3b 22 3b 64 6f 0a 20 20 $RANDOM);";do. 0060: 20 20 6e 75 6d 72 6f 77 73 3d 24 28 2e 2f 72 70 numrows=$(./rp 0070: 63 74 65 73 74 20 63 6c 69 65 6e 74 20 22 73 65 ctest client "se 0080: 6c 65 63 74 20 63 6f 75 6e 74 28 69 64 29 20 66 lect count(id) f 0090: 72 6f 6d 20 66 6f 6f 3b 22 29 20 23 20 7c 77 63 rom foo;") # |wc 00a0: 20 2d 6c 29 0a 20 20 20 20 64 65 6c 65 74 65 66 -l). deletef 00b0: 72 6f 6d 3d 24 52 41 4e 44 4f 4d 0a 20 20 20 20 rom=$RANDOM. 00c0: 65 63 68 6f 20 22 6e 75 6d 72 6f 77 73 3d 24 6e echo "numrows=$n 00d0: 75 6d 72 6f 77 73 2c 20 64 65 6c 65 74 65 66 72 umrows, deletefr 00e0: 6f 6d 3d 24 64 65 6c 65 74 65 66 72 6f 6d 22 0a om=$deletefrom". 00f0: 20 20 20 20 69 66 20 5b 5b 20 24 6e 75 6d 72 6f if [[ $numro 0100: 77 73 20 2d 67 74 20 33 30 30 20 5d 5d 3b 74 68 ws -gt 300 ]];th 0110: 65 6e 0a 09 65 63 68 6f 20 22 6e 75 6d 72 6f 77 en..echo "numrow 0120: 73 3d 24 6e 75 6d 72 6f 77 73 2c 20 64 65 6c 65 s=$numrows, dele 0130: 74 65 66 72 6f 6d 3d 24 64 65 6c 65 74 65 66 72 tefrom=$deletefr 0140: 6f 6d 22 0a 09 2e 2f 72 70 63 74 65 73 74 20 63 om".../rpctest c 0150: 6c 69 65 6e 74 20 22 64 65 6c 65 74 65 20 66 72 lient "delete fr 0160: 6f 6d 20 66 6f 6f 20 77 68 65 72 65 20 76 61 72 om foo where var 0170: 20 3e 20 24 64 65 6c 65 74 65 66 72 6f 6d 3b 22 > $deletefrom;" 0180: 0a 20 20 20 20 66 69 0a 64 6f 6e 65 0a . fi.done.