[lua-torch-cwrap] 01/02: tests: add autopkgtest

Zhou Mo cdluminate-guest at moszumanska.debian.org
Fri Oct 7 11:54:33 UTC 2016


This is an automated email from the git hooks/post-receive script.

cdluminate-guest pushed a commit to branch master
in repository lua-torch-cwrap.

commit 61fd4e69d897be0ff873244b2944f84e9cd1350f
Author: Zhou Mo <cdluminate at gmail.com>
Date:   Fri Oct 7 11:47:34 2016 +0000

    tests: add autopkgtest
---
 debian/changelog         | 6 ++++++
 debian/tests/control     | 1 +
 debian/tests/lua_require | 7 +++++++
 3 files changed, 14 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index e296e2b..f574f9e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+lua-torch-cwrap (0~20160222-gdbd0a62-2) UNRELEASED; urgency=medium
+
+  * Add autopkgtest support -- require 'cwrap' to see if the package works.
+
+ -- Zhou Mo <cdluminate at gmail.com>  Fri, 07 Oct 2016 11:44:18 +0000
+
 lua-torch-cwrap (0~20160222-gdbd0a62-1) unstable; urgency=low
 
   * Initial release. Closes: #826528
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..81ee0ea
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1 @@
+Tests: lua_require
diff --git a/debian/tests/lua_require b/debian/tests/lua_require
new file mode 100755
index 0000000..4f67d15
--- /dev/null
+++ b/debian/tests/lua_require
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+
+# This package should be ok if it can be required ("imported") by lua5.1 or luajit
+lua5.1 -lcwrap -e "print(\"$0: test ok\");"
+
+exit 0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/lua-torch-cwrap.git



More information about the debian-science-commits mailing list