ld: Find and run some tests using a wildcard pattern
Find the ld-script/provide-*.d tests using a wildcard, then run them in a loop. This will make it easier to add more tests in the future. Some associated clean up is required. ld/ChangeLog: * testsuite/ld-scripts/provide-3.d: Add xfail directive. * testsuite/ld-scripts/provide-4.d: Use new map file name. * testsuite/ld-scripts/provide-5.d: Use new map file name. * testsuite/ld-scripts/provide-4-map.d: Renamed to... * testsuite/ld-scripts/provide-4.map: ...this. * testsuite/ld-scripts/provide-5-map.d: Renamed to... * testsuite/ld-scripts/provide-5.map: ...this. * testsuite/ld-scripts/provide.exp: Move xfail into provide-3.d file, and run tests in a loop.
This commit is contained in:
parent
b3b9f8d3e9
commit
8be965c5f0
12
ld/ChangeLog
12
ld/ChangeLog
|
@ -1,3 +1,15 @@
|
||||||
|
2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||||
|
|
||||||
|
* testsuite/ld-scripts/provide-3.d: Add xfail directive.
|
||||||
|
* testsuite/ld-scripts/provide-4.d: Use new map file name.
|
||||||
|
* testsuite/ld-scripts/provide-5.d: Use new map file name.
|
||||||
|
* testsuite/ld-scripts/provide-4-map.d: Renamed to...
|
||||||
|
* testsuite/ld-scripts/provide-4.map: ...this.
|
||||||
|
* testsuite/ld-scripts/provide-5-map.d: Renamed to...
|
||||||
|
* testsuite/ld-scripts/provide-5.map: ...this.
|
||||||
|
* testsuite/ld-scripts/provide.exp: Move xfail into provide-3.d
|
||||||
|
file, and run tests in a loop.
|
||||||
|
|
||||||
2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
|
2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||||
|
|
||||||
* ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
|
* ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
#source: provide-3.s
|
#source: provide-3.s
|
||||||
#ld: -T provide-3.t
|
#ld: -T provide-3.t
|
||||||
#error: symbol defined in linker script and object file
|
#error: symbol defined in linker script and object file
|
||||||
|
#xfail: "*-*-*"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#source: provide-2.s
|
#source: provide-2.s
|
||||||
#ld: -T provide-4.t
|
#ld: -T provide-4.t
|
||||||
#PROG: nm
|
#PROG: nm
|
||||||
#map: provide-4-map.d
|
#map: provide-4.map
|
||||||
#...
|
#...
|
||||||
0+3 A baz
|
0+3 A baz
|
||||||
0+2000 D foo
|
0+2000 D foo
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#source: provide-5.s
|
#source: provide-5.s
|
||||||
#ld: -T provide-5.t
|
#ld: -T provide-5.t
|
||||||
#PROG: nm
|
#PROG: nm
|
||||||
#map: provide-5-map.d
|
#map: provide-5.map
|
||||||
#...
|
#...
|
||||||
0+10 A foo
|
0+10 A foo
|
||||||
|
|
|
@ -36,11 +36,11 @@ if [istarget "x86_64-*-mingw*"] then {
|
||||||
set LDFLAGS "$LDFLAGS --image-base 0"
|
set LDFLAGS "$LDFLAGS --image-base 0"
|
||||||
}
|
}
|
||||||
|
|
||||||
run_dump_test provide-1
|
set test_list [lsort [glob -nocomplain $srcdir/$subdir/provide-*.d]]
|
||||||
run_dump_test provide-2
|
foreach test_file $test_list {
|
||||||
setup_xfail *-*-*
|
set test_name [file rootname $test_file]
|
||||||
run_dump_test provide-3
|
verbose $test_name
|
||||||
run_dump_test provide-4
|
run_dump_test $test_name
|
||||||
run_dump_test provide-5
|
}
|
||||||
|
|
||||||
set LDFLAGS "$saved_LDFLAGS"
|
set LDFLAGS "$saved_LDFLAGS"
|
||||||
|
|
Loading…
Reference in New Issue