[Libguestfs] [PATCH] tests: Fix shebang tests on FreeBSD.

Richard W.M. Jones rjones at redhat.com
Tue Nov 13 16:14:37 UTC 2018


On FreeBSD we cannot go through the shell script (./nbdkit).  Instead
replace the path with a direct link to both the nbdkit binary and
locally compiled plugin.

Note this does not go through valgrinding when you run
‘make check-valgrind’ so that needs to be fixed at some point in the
future.

Thanks: François Revol and Eric Blake.

See also:
https://www.redhat.com/archives/libguestfs/2018-November/msg00126.html
---
 tests/shebang.pl | 2 +-
 tests/shebang.py | 2 +-
 tests/shebang.rb | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/shebang.pl b/tests/shebang.pl
index 17c7821..e6f1630 100755
--- a/tests/shebang.pl
+++ b/tests/shebang.pl
@@ -1,4 +1,4 @@
-#!../nbdkit perl
+#!../src/nbdkit ../plugins/perl/.libs/nbdkit-perl-plugin.so
 
 use strict;
 
diff --git a/tests/shebang.py b/tests/shebang.py
index 6f33623..e836255 100755
--- a/tests/shebang.py
+++ b/tests/shebang.py
@@ -1,4 +1,4 @@
-#!../nbdkit python
+#!../src/nbdkit ../plugins/python/.libs/nbdkit-python-plugin.so
 
 disk = bytearray(1024 * 1024)
 
diff --git a/tests/shebang.rb b/tests/shebang.rb
index 34588d1..ccf4519 100755
--- a/tests/shebang.rb
+++ b/tests/shebang.rb
@@ -1,4 +1,4 @@
-#!../nbdkit ruby
+#!../src/nbdkit ../plugins/ruby/.libs/nbdkit-ruby-plugin.so
 
 include Nbdkit
 
-- 
2.19.0.rc0




More information about the Libguestfs mailing list