Skip to content

Commit

Permalink
test: Run tests in embedded mode on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
tarruda committed Aug 28, 2014
1 parent e1eb9e2 commit 68e14d8
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .ci/api-python.sh
Expand Up @@ -10,10 +10,19 @@ git clone --depth=1 -b master git://github.com/neovim/python-client
cd python-client
sudo pip install .
sudo pip install nose
test_cmd="nosetests --verbosity=2"
# We run the tests twice:
# - First by connecting with an nvim instance spawned by "expect"
# - Second by starting nvim in embedded mode through the python client
# This is required until nvim is mature enough to always run in embedded mode
test_cmd="nosetests --verbosity=2 --nologcapture"
nvim_cmd="valgrind -q --track-origins=yes --leak-check=yes --suppressions=$suppressions --log-file=$tmpdir/valgrind-%p.log ../build/bin/nvim -u NONE"
if ! ../scripts/run-api-tests.exp "$test_cmd" "$nvim_cmd"; then
valgrind_check "$tmpdir"
exit 1
fi
valgrind_check "$tmpdir"

export NEOVIM_SPAWN_ARGV="[\"valgrind\", \"-q\", \"--track-origins=yes\", \"--leak-check=yes\", \"--suppressions=$suppressions\", \"--log-file=$tmpdir/valgrind-%p.log\", \"../build/bin/nvim\", \"-u\", \"NONE\", \"--embedded-mode\"]"
if ! nosetests --verbosity=2 --nologcapture; then
valgrind_check "$tmpdir"
exit 1
fi

0 comments on commit 68e14d8

Please sign in to comment.