use readelf in a way that it prints less output

pull/22/head
Daniel Martí 5 years ago
parent f4e356ab13
commit 8119fa0e62

@ -18,9 +18,9 @@ cmp stderr main.stderr
grep $WORK main grep $WORK main
# The default build includes DWARF and the symbol table. # The default build includes DWARF and the symbol table.
exec readelf --section-details --symbols main exec readelf --section-headers main
stdout 'debug_info$' stdout 'debug_info'
stdout 'globalVar' stdout '\.symtab'
# The default build includes full non-trimmed paths. # The default build includes full non-trimmed paths.
grep $WORK main grep $WORK main
@ -34,9 +34,9 @@ exec go build -a -trimpath -toolexec=garble main.go
exec ./main exec ./main
cmp stderr main.stderr cmp stderr main.stderr
exec readelf --section-details --symbols main exec readelf --section-headers main
! stdout 'debug_info$' ! stdout 'debug_info'
! stdout 'globalVar' ! stdout '\.symtab'
! grep $WORK main ! grep $WORK main

Loading…
Cancel
Save