Skip to content

Commit

Permalink
[tests] properly check symbols on PPC64
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
  • Loading branch information
fabbione committed Aug 28, 2018
1 parent 2cba14c commit bdbe660
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libnozzle/tests/api-test-coverage
Expand Up @@ -12,7 +12,10 @@ builddir="$2"/libnozzle

headerapicalls="$(grep nozzle_ "$srcdir"/libnozzle.h | grep -v "^ \*" | grep -v ^struct | grep -v "^[[:space:]]" | grep -v typedef | sed -e 's/(.*//g' -e 's/^const //g' -e 's/\*//g' | awk '{print $2}')"

exportedapicalls="$(nm -B -D "$builddir"/.libs/libnozzle.so | grep ' T ' | awk '{print $3}')"
# The PowerPC64 ELFv1 ABI defines the address of a function as that of a
# function descriptor defined in .opd, a data (D) section. Other ABIs
# use the entry address of the function itself in the text (T) section.
exportedapicalls="$(nm -B -D "$builddir"/.libs/libnozzle.so | grep ' [DT] ' | awk '{print $3}')"

echo "Checking for exported symbols NOT available in header file"

Expand Down

0 comments on commit bdbe660

Please sign in to comment.