#!/bin/sh
set -efu

export LANG=C.UTF-8
export LC_ALL=C.UTF-8

export HOME="$AUTOPKGTEST_TMP"
export PYTHONPATH=/usr/share/yotta

cp -rv yotta/test $AUTOPKGTEST_TMP
cd "$AUTOPKGTEST_TMP"

nosetests3 -s -v \
    --where=test \
    --exclude=test_git_access.py \
    --exclude=test_github_access.py \
    --exclude=test_hg_access.py \
    --exclude=test_vcs.py \
    --exclude=test_account.py \
    --exclude=test_build.py \
    --exclude=test_debug.py \
    --exclude=test_install.py \
    --exclude=test_link.py \
    --exclude=test_minversion.py \
    --exclude=test_outdated.py \
    --exclude=test_owners.py \
    --exclude=test_publish.py \
    --exclude=test_search.py \
    --exclude=test_shrinkwrap.py \
    --exclude=test_start.py \
    --exclude=test_target.py \
    --exclude=test_test.py \
    --exclude=test_update.py \
    --exclude=test_version.py \
    --exclude=test_versions.py
