mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
+10
-7
@@ -301,6 +301,7 @@
|
||||
}
|
||||
|
||||
# "ldd" prints library dependencies and the used interpreter for a given program
|
||||
#
|
||||
# Dependencies on shared libraries are displayed like
|
||||
# libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fa7d28be000)
|
||||
#
|
||||
@@ -315,14 +316,16 @@
|
||||
}
|
||||
|
||||
# "file" determines the file type of our generated binary
|
||||
# More specifically, we use its ability to test whether a specific interpreter
|
||||
# is needed required by the given executable. What the interpreter is is not
|
||||
# really well documented in "man elf(5)", however, one can say that the
|
||||
# interpreter is a program that finds and loads the shared libraries
|
||||
# needed by a program, prepares the program to run, and then runs it.
|
||||
#
|
||||
# In this test, we use file to confirm the absence of the dependence on an
|
||||
# interpreter for the static binary.
|
||||
# We use its ability to test whether a specific interpreter is
|
||||
# required by the given executable. What the interpreter is, is not
|
||||
# really well documented in "man elf(5)", however, one can say that
|
||||
# the interpreter is a program that finds and loads the shared
|
||||
# libraries needed by a program, prepares the program to run, and then
|
||||
# runs it.
|
||||
#
|
||||
# In this test, we use "file" to confirm the absence of the dependence
|
||||
# on an interpreter for the static binary.
|
||||
|
||||
@test "Dependence on specific interpreter" {
|
||||
run bash -c 'file ./pihole-FTL'
|
||||
|
||||
Reference in New Issue
Block a user