Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/homebrew/Formula/moq-gst.rb.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ class MoqGst < Formula
EOS
end

# gst-inspect-1.0 hangs at startup inside the test sandbox on a headless Mac, even for
# --version, so check the plugin links GStreamer rather than loading it. The release
# build loads it into GStreamer outside the sandbox.
test do
plugin = OS.mac? ? "libgstmoq.dylib" : "libgstmoq.so"
assert_predicate lib/"gstreamer-1.0"/plugin, :exist?
ENV["GST_REGISTRY"] = (testpath/"registry.bin").to_s
ENV["GST_PLUGIN_PATH_1_0"] = (lib/"gstreamer-1.0").to_s
ENV["GST_PLUGIN_SYSTEM_PATH_1_0"] = ""
output = shell_output("#{Formula["gstreamer"].opt_bin}/gst-inspect-1.0 moq")
assert_match (lib/"gstreamer-1.0"/plugin).to_s, output
plugin = lib/"gstreamer-1.0"/(OS.mac? ? "libgstmoq.dylib" : "libgstmoq.so")
assert_predicate plugin, :exist?
linked = plugin.dynamically_linked_libraries.map { |library| File.basename(library) }
assert linked.any? { |library| library.start_with?("libgstreamer-1.0.") }, linked.join(", ")
end
end
Loading