mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
simple rpath, interpreter tests for existing fixtures.
This commit is contained in:
parent
f92c7d30c1
commit
06a4a78b99
22
Library/Homebrew/test/os/linux/pathname_spec.rb
Normal file
22
Library/Homebrew/test/os/linux/pathname_spec.rb
Normal file
@ -0,0 +1,22 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "extend/pathname"
|
||||
|
||||
describe Pathname do
|
||||
let(:elf_dir) { described_class.new "#{TEST_FIXTURE_DIR}/elf" }
|
||||
let(:sho) { elf_dir/"libhello.so.0" }
|
||||
let(:exec) { elf_dir/"hello" }
|
||||
|
||||
describe "#interpreter" do
|
||||
it "returns interpreter" do
|
||||
expect(exec.interpreter).to eq "/lib64/ld-linux-x86-64.so.2"
|
||||
end
|
||||
end
|
||||
|
||||
describe "#rpath" do
|
||||
it "returns nil when absent" do
|
||||
expect(exec.rpath).to be_nil
|
||||
expect(sho.rpath).to be_nil
|
||||
end
|
||||
end
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user