#!/bin/zsh
#function t_setup_real {
  0=${(%):-%x}

  # Setup for regular tests
  t_setup

  # Now undo some of the testing bits to run for real
  typeset -g T_PRJDIR="${0:A:h:h:h}"
  typeset -g T_TESTDATA=$T_PRJDIR/tests/testdata/real
  local testdir="$T_PRJDIR/tests"

  # undo setup so we clone for real
  zstyle ':antidote:tests' cloning 'on'
  (( $+functions[git] )) && unfunction git

  # unset other testing zstyles
  zstyle -d ':antidote:defer' bundle

  # unset rupa/z
  (( $+aliases[z] )) && unalias z

  # replace test versions of bundle files with real versions
  for file in .zsh_plugins.txt .zsh_plugins.zsh; do
    [[ -f $T_TESTDATA/$file ]] && command cp -f -- "$T_TESTDATA/$file" "$ZDOTDIR/$file"
  done

  # clean out antidote home
  [[ -d $ANTIDOTE_HOME ]] && command rm -rf -- "$ANTIDOTE_HOME"
  mkdir -p "$ANTIDOTE_HOME"

  # source antidote
  # source $T_PRJDIR/antidote.zsh
#}
