[neovim] 01/05: Run Neovim's tests during the build
James McCoy
jamessan at debian.org
Sat Oct 8 18:26:09 UTC 2016
This is an automated email from the git hooks/post-receive script.
jamessan pushed a commit to branch debian/sid
in repository neovim.
commit 7886c3df1d7ed10c5558e4ee7ccc0288f8470ed3
Author: James McCoy <jamessan at debian.org>
Date: Sat Oct 8 13:27:20 2016 -0400
Run Neovim's tests during the build
Signed-off-by: James McCoy <jamessan at debian.org>
---
debian/changelog | 7 +++++++
debian/clean | 3 +++
debian/control | 3 +++
debian/rules | 23 ++++++++++++++++++++---
4 files changed, 33 insertions(+), 3 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index a68bd7b..4477d9b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+neovim (0.1.5-5) UNRELEASED; urgency=medium
+
+ * Run Neovim's tests during the build
+ + Add lua-nvim, lua-busted, and libnss-wrapper to Build-Depends
+
+ -- James McCoy <jamessan at debian.org> Sat, 08 Oct 2016 13:25:41 -0400
+
neovim (0.1.5-4) unstable; urgency=medium
* Arch-qualify (lib)luajit Build-Depends to really fix #812741.
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..cbe1c90
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,3 @@
+debian/fakehome/
+debian/group
+debian/passwd
diff --git a/debian/control b/debian/control
index 0ebc512..6780834 100644
--- a/debian/control
+++ b/debian/control
@@ -12,13 +12,16 @@ Build-Depends: autoconf,
libkvm-dev [kfreebsd-any],
libluajit-5.1-dev [amd64 armel armhf hurd-i386 i386 kfreebsd-i386 mips mipsel powerpc],
libmsgpack-dev (>= 1.0.0),
+ libnss-wrapper,
libtermkey-dev,
libunibilium-dev,
libuv1-dev,
libvterm-dev,
lua-bitop,
+ lua-busted,
lua-lpeg,
lua-mpack,
+ lua-nvim [amd64 armel armhf i386 mips mips64el mipsel powerpc ppc64el],
luajit [amd64 armel armhf hurd-i386 i386 kfreebsd-i386 mips mipsel powerpc] | lua5.1,
ninja-build,
pkg-config
diff --git a/debian/rules b/debian/rules
index 7c3a5d9..01ec761 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,11 +9,21 @@ CXXFLAGS += $(CPPFLAGS)
export CFLAGS CXXFLAGS LDFLAGS
+FUNCTIONALTEST =
+UNITTEST =
+ifneq (,$(findstring ok installed,$(shell dpkg-query -W -f '$${Status}' lua-nvim)))
+ FUNCTIONALTEST = functionaltest
+endif
+
+ifneq (,$(findstring ok installed,$(shell dpkg-query -W -f '$${Status}' luajit)))
+ UNITTEST = unittest
+endif
+
%:
dh $@ --parallel
override_dh_auto_build:
- dh_auto_build --parallel -- VERBOSE=1 USE_BUNDLED_DEPS=OFF CMAKE_BUILD_TYPE=None CMAKE_EXTRA_FLAGS=-DCMAKE_INSTALL_PREFIX=/usr
+ dh_auto_build --parallel -- VERBOSE=1 USE_BUNDLED_DEPS=OFF CMAKE_BUILD_TYPE=None "CMAKE_EXTRA_FLAGS=-DCMAKE_INSTALL_PREFIX=/usr -DBUSTED_OUTPUT_TYPE=TAP"
override_dh_auto_install:
dh_auto_install --parallel -- VERBOSE=1 USE_BUNDLED_DEPS=OFF
@@ -21,5 +31,12 @@ override_dh_auto_install:
override_dh_install:
dh_install --fail-missing
-# Need busted packaged first
-override_dh_auto_test:
+debian/passwd:
+ printf -- "$(USER):x:1000:1000:nvim test:$(CURDIR)/debian/fakehome:/bin/false\n" > debian/passwd
+ printf -- "users:x:1000\n" > debian/group
+
+debian/fakehome:
+ mkdir -p debian/fakehome
+
+override_dh_auto_test: debian/passwd debian/fakehome
+ env "HOME=$(CURDIR)/debian/fakehome" LD_PRELOAD=libnss_wrapper.so "NSS_WRAPPER_PASSWD=$(CURDIR)/debian/passwd" "NSS_WRAPPER_GROUP=$(CURDIR)/debian/group" make $(UNITTEST) $(FUNCTIONALTEST) oldtest VERBOSE=1 USE_BUNDLED_DEPS=OFF
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-vim/neovim.git
More information about the pkg-vim-maintainers
mailing list