gopkg.in/rethinkdb/rethinkdb-go.v6@v6.2.2/internal/gen_tests/gen_tests.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  set -e
     4  
     5  if [[ ! -d $REQL_TEST_DIR ]]
     6  then
     7      echo "REQL_TEST_DIR must be set to the local copy of the https://github.com/rethinkdb/rethinkdb/tree/next/test/rql_test/src/ directory."
     8      exit 1
     9  fi
    10  
    11  SCRIPT_DIR=$(dirname "$0")
    12  
    13  $SCRIPT_DIR/gen_tests.py --test-dir=$REQL_TEST_DIR
    14  
    15  goimports -w . > /dev/null
    16  
    17  exit 0