mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
oldtest: use TMPDIR
This commit is contained in:
parent
e13b4a21ca
commit
9854fc4657
@ -3,10 +3,12 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
NVIM_PRG ?= ../../../build/bin/nvim
|
NVIM_PRG ?= ../../../build/bin/nvim
|
||||||
|
TMPDIR ?= Xtest-tmpdir
|
||||||
SCRIPTSOURCE := ../../../runtime
|
SCRIPTSOURCE := ../../../runtime
|
||||||
|
|
||||||
export SHELL := sh
|
export SHELL := sh
|
||||||
export NVIM_PRG := $(NVIM_PRG)
|
export NVIM_PRG := $(NVIM_PRG)
|
||||||
|
export TMPDIR
|
||||||
|
|
||||||
SCRIPTS ?= \
|
SCRIPTS ?= \
|
||||||
test13.out \
|
test13.out \
|
||||||
@ -149,10 +151,12 @@ clean:
|
|||||||
.*.swp \
|
.*.swp \
|
||||||
.*.swo \
|
.*.swo \
|
||||||
.gdbinit \
|
.gdbinit \
|
||||||
|
$(TMPDIR) \
|
||||||
del
|
del
|
||||||
|
|
||||||
test1.out: .gdbinit test1.in
|
test1.out: .gdbinit test1.in
|
||||||
-rm -rf $*.failed $(RM_ON_RUN) $(RM_ON_START) wrongtermsize
|
-rm -rf $*.failed $(RM_ON_RUN) $(RM_ON_START) wrongtermsize
|
||||||
|
mkdir -p $(TMPDIR)
|
||||||
$(RUN_VIM) $*.in
|
$(RUN_VIM) $*.in
|
||||||
@/bin/sh -c "if test -e wrongtermsize; then \
|
@/bin/sh -c "if test -e wrongtermsize; then \
|
||||||
echo; \
|
echo; \
|
||||||
@ -170,6 +174,7 @@ test1.out: .gdbinit test1.in
|
|||||||
|
|
||||||
%.out: %.in .gdbinit
|
%.out: %.in .gdbinit
|
||||||
-rm -rf $*.failed test.ok $(RM_ON_RUN)
|
-rm -rf $*.failed test.ok $(RM_ON_RUN)
|
||||||
|
mkdir -p $(TMPDIR)
|
||||||
cp $*.ok test.ok
|
cp $*.ok test.ok
|
||||||
# Sleep a moment to avoid that the xterm title is messed up.
|
# Sleep a moment to avoid that the xterm title is messed up.
|
||||||
# 200 msec is sufficient, but only modern sleep supports a fraction of
|
# 200 msec is sufficient, but only modern sleep supports a fraction of
|
||||||
@ -212,4 +217,5 @@ newtests: newtestssilent
|
|||||||
newtestssilent: $(NEW_TESTS)
|
newtestssilent: $(NEW_TESTS)
|
||||||
|
|
||||||
%.res: %.vim .gdbinit
|
%.res: %.vim .gdbinit
|
||||||
|
mkdir -p $(TMPDIR)
|
||||||
$(RUN_VIMTEST) -u NONE -S runtest.vim $*.vim
|
$(RUN_VIMTEST) -u NONE -S runtest.vim $*.vim
|
||||||
|
Loading…
Reference in New Issue
Block a user