summaryrefslogtreecommitdiffstats
path: root/postgresql-tests/gen-data/remote_generate
blob: eee11f6f5ee3f490bda93a0a084297a10e7ed1e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash -x

where="root@$1"

./dist/dist
tar tf dist/dist.tar.gz

ssh_opts="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
ssh="ssh $ssh_opts"
scp="scp $ssh_opts"

$scp dist/dist.tar.gz "$where:/root"

$ssh "$where" "cd /root ; tar -xf dist.tar.gz ; ./prep && ./generate"

rm -rf remote_results
mkdir remote_results
$scp -r "$where:/root/results" ./remote_results