[DRE-commits] [ruby-systemu] 04/05: Add patch: fix-test-load-path.patch
Lucas Nussbaum
lucas at moszumanska.debian.org
Tue May 12 12:20:54 UTC 2015
This is an automated email from the git hooks/post-receive script.
lucas pushed a commit to branch master
in repository ruby-systemu.
commit 264e3c9bd5909487ec99dc0db7fd1bae31241433
Author: Lucas Nussbaum <lucas at debian.org>
Date: Tue May 12 14:10:50 2015 +0200
Add patch: fix-test-load-path.patch
---
debian/changelog | 1 +
debian/patches/fix-test-load-path.patch | 27 +++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 29 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 953f0db..9fd0222 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ ruby-systemu (2.6.5-1) UNRELEASED; urgency=medium
* New upstream release.
* Refreshed packaging using dh-make-ruby.
* Use "GPL-2" instead of "GPL2" in debian/copyright. Fix lintian warning.
+ * Add patch: fix-test-load-path.patch
-- Lucas Nussbaum <lucas at debian.org> Tue, 12 May 2015 13:45:35 +0200
diff --git a/debian/patches/fix-test-load-path.patch b/debian/patches/fix-test-load-path.patch
new file mode 100644
index 0000000..b334a7f
--- /dev/null
+++ b/debian/patches/fix-test-load-path.patch
@@ -0,0 +1,27 @@
+Description: Fix loading of systemu in tests
+ This is required in order to allow execution of tests in ci.d.n
+ The first fragment of this patch is required for execution with gem2deb-test-runner,
+ as lib/ is moved away by the runner.
+Origin: vendor
+Forwarded: not-needed
+--- a/test/systemu_test.rb
++++ b/test/systemu_test.rb
+@@ -6,7 +6,7 @@ Testing SystemU do
+ testing 'that simple usage works' do
+ status, stdout, stderr = assert{ systemu :bin/:ls }
+ assert{ status == 0 }
+- assert{ stdout['lib'] }
++ assert{ stdout['samples'] }
+ assert{ stderr.strip.empty? }
+ end
+
+@@ -70,7 +70,8 @@ BEGIN {
+ testdir = File.dirname(File.expand_path(__FILE__))
+ rootdir = File.dirname(testdir)
+ libdir = File.join(rootdir, 'lib')
+- require File.join(libdir, 'systemu')
++ $: << File.join(File.expand_path(File.dirname(__FILE__)), '../lib')
++ require 'systemu'
+ require File.join(testdir, 'testing')
+
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e9b6a27
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-test-load-path.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-systemu.git
More information about the Pkg-ruby-extras-commits
mailing list