Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/usr.bin/ld Minor tweaks.



details:   https://anonhg.NetBSD.org/src/rev/01d7f50d1ff7
branches:  trunk
changeset: 333762:01d7f50d1ff7
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Sun Nov 16 04:47:18 2014 +0000

description:
Minor tweaks.

diffstat:

 tests/usr.bin/ld/t_script.sh |  15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diffs (64 lines):

diff -r 5f0253d6cd8c -r 01d7f50d1ff7 tests/usr.bin/ld/t_script.sh
--- a/tests/usr.bin/ld/t_script.sh      Sun Nov 16 04:28:09 2014 +0000
+++ b/tests/usr.bin/ld/t_script.sh      Sun Nov 16 04:47:18 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_script.sh,v 1.6 2014/11/16 03:49:09 uebayasi Exp $
+#      $NetBSD: t_script.sh,v 1.7 2014/11/16 04:47:18 uebayasi Exp $
 #
 # Copyright (c) 2014 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -36,7 +36,8 @@
 order_default_body() {
        cat > test.x << EOF
 SECTIONS {
-       /* do nothing */
+       /* do nothing; but ld has implicit scripts internally */
+       /* which usually do: *(.data) *(.data.*) */
 }
 EOF
        order_assert_descending
@@ -47,7 +48,7 @@
 atf_test_case order_merge
 order_merge_head() {
        atf_set "descr" "check if glob merge keeps object ordering"
-       atf_set "require.progs" "cc" "ld" "readelf" "nm" "sed" "grep"
+       atf_set "require.progs" ${order_require_progs}
 }
 
 order_merge_body() {
@@ -66,7 +67,7 @@
 atf_test_case order_reorder
 order_reorder_head() {
        atf_set "descr" "check if object reordering works"
-       atf_set "require.progs" "cc" "ld" "readelf" "nm" "sed" "grep"
+       atf_set "require.progs" ${order_require_progs}
 }
 
 order_reorder_body() {
@@ -88,7 +89,7 @@
 atf_test_case order_sort
 order_sort_head() {
        atf_set "descr" "check if object sort works"
-       atf_set "require.progs" "cc" "ld" "readelf" "nm" "sed" "grep"
+       atf_set "require.progs" ${order_require_progs}
 }
 
 order_sort_body() {
@@ -109,7 +110,7 @@
 atf_test_case multisec
 multisec_head() {
        atf_set "descr" "check if multiple SECTIONS commands work"
-       atf_set "require.progs" "cc" "ld" "readelf" "nm" "sed" "grep"
+       atf_set "require.progs" ${order_require_progs}
 }
 
 multisec_body() {
@@ -146,6 +147,8 @@
 
 ################################################################################
 
+order_require_progs="cc ld readelf nm sed grep"
+
 order_assert_ascending() {
        order_assert_order a b c
 }



Home | Main Index | Thread Index | Old Index