#!/bin/bash

TINC_TARGET="$@"
TINC_DIR=/home/gpadmin/gpdb_src/src/test/tinc

cat > ~/gpdb-env.sh << EOF
  source /usr/local/greenplum-db-devel/greenplum_path.sh
  export PGPORT=5432
  export MASTER_DATA_DIRECTORY=/data/gpdata/master/gpseg-1
  export PGDATABASE=gptest

  alias mdd='cd \$MASTER_DATA_DIRECTORY'
  alias tinc='cd ${TINC_DIR}'
EOF
source ~/gpdb-env.sh

createdb gptest
createdb gpadmin
cd ${TINC_DIR}
source tinc_env.sh
make ${TINC_TARGET}

#!/bin/bash

TINC_TARGET="$@"
TINC_DIR=/home/gpadmin/gpdb_src/src/test/tinc

cat > ~/gpdb-env.sh << EOF
  source /usr/local/greenplum-db-devel/greenplum_path.sh
  export PGPORT=5432
  export MASTER_DATA_DIRECTORY=/data/gpdata/master/gpseg-1
  export PGDATABASE=gptest

  alias mdd='cd \$MASTER_DATA_DIRECTORY'
  alias tinc='cd ${TINC_DIR}'
EOF
source ~/gpdb-env.sh

# make fsync by default off to improve test stability
gpconfig --skipvalidation -c fsync -v off
gpstop -u

createdb gptest
createdb gpadmin
cd ${TINC_DIR}
source tinc_env.sh
make ${TINC_TARGET}

Make fsync default off to improve test stability.
Make fsync default off to improve test stability.

Signed-off-by: Taylor Vesely <2e71e1faa215a6c19636ce18fd58ddc16fff98ae@pivotal.io>
