diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-08-08 20:29:41 +0200 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-08-09 11:02:15 -0400 |
commit | 9854fc4657d7cd0791f8abd7c9128fdf20d14d15 (patch) | |
tree | 8e4bb20c465e7dba4ede7f0480281519c67a5af8 | |
parent | e13b4a21cac9d173885249034fe20fb209b157df (diff) | |
download | rneovim-9854fc4657d7cd0791f8abd7c9128fdf20d14d15.tar.gz rneovim-9854fc4657d7cd0791f8abd7c9128fdf20d14d15.tar.bz2 rneovim-9854fc4657d7cd0791f8abd7c9128fdf20d14d15.zip |
oldtest: use TMPDIR
-rw-r--r-- | src/nvim/testdir/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/testdir/Makefile b/src/nvim/testdir/Makefile index 944222dbb6..7f1e25900b 100644 --- a/src/nvim/testdir/Makefile +++ b/src/nvim/testdir/Makefile @@ -3,10 +3,12 @@ # NVIM_PRG ?= ../../../build/bin/nvim +TMPDIR ?= Xtest-tmpdir SCRIPTSOURCE := ../../../runtime export SHELL := sh export NVIM_PRG := $(NVIM_PRG) +export TMPDIR SCRIPTS ?= \ test13.out \ @@ -149,10 +151,12 @@ clean: .*.swp \ .*.swo \ .gdbinit \ + $(TMPDIR) \ del test1.out: .gdbinit test1.in -rm -rf $*.failed $(RM_ON_RUN) $(RM_ON_START) wrongtermsize + mkdir -p $(TMPDIR) $(RUN_VIM) $*.in @/bin/sh -c "if test -e wrongtermsize; then \ echo; \ @@ -170,6 +174,7 @@ test1.out: .gdbinit test1.in %.out: %.in .gdbinit -rm -rf $*.failed test.ok $(RM_ON_RUN) + mkdir -p $(TMPDIR) cp $*.ok test.ok # Sleep a moment to avoid that the xterm title is messed up. # 200 msec is sufficient, but only modern sleep supports a fraction of @@ -212,4 +217,5 @@ newtests: newtestssilent newtestssilent: $(NEW_TESTS) %.res: %.vim .gdbinit + mkdir -p $(TMPDIR) $(RUN_VIMTEST) -u NONE -S runtest.vim $*.vim |