[DRE-commits] [ruby-ffi] 04/09: add a simple smoke test to debian/tests
Antonio Terceiro
terceiro at moszumanska.debian.org
Wed Jan 8 12:48:14 UTC 2014
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository ruby-ffi.
commit 8f7e81ccde2ea7382b1a528f09d7e5b2fb1bded8
Author: Antonio Terceiro <terceiro at debian.org>
Date: Wed Jan 8 09:36:12 2014 -0300
add a simple smoke test to debian/tests
---
debian/tests/control | 1 +
debian/tests/smoke | 13 +++++++++++++
2 files changed, 14 insertions(+)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..53d6267
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1 @@
+Tests: smoke
diff --git a/debian/tests/smoke b/debian/tests/smoke
new file mode 100755
index 0000000..cab370f
--- /dev/null
+++ b/debian/tests/smoke
@@ -0,0 +1,13 @@
+#!/usr/bin/ruby
+
+# This is the most basic example of usage shown in upstream's README file.
+
+require 'ffi'
+
+module MyLib
+ extend FFI::Library
+ ffi_lib 'c'
+ attach_function :puts, [ :string ], :int
+end
+
+MyLib.puts 'Hello, World using libc!'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-ffi.git
More information about the Pkg-ruby-extras-commits
mailing list