]> sourceware.org Git - systemtap.git/commit
Add testsuite/lib/compile_flags.exp and use it in tests.
authorMark Wielaard <mjw@redhat.com>
Sat, 19 Nov 2011 19:45:49 +0000 (20:45 +0100)
committerMark Wielaard <mjw@redhat.com>
Sat, 19 Nov 2011 21:51:39 +0000 (22:51 +0100)
commitf4ec9309e70952a6fdf9e34552d26748f54c83d9
tree567c99c91dbd5ccd9d87ba64272b569455755631
parentee59f1abfee2ac14f540c73334c9ca05e51e6a42
Add testsuite/lib/compile_flags.exp and use it in tests.

testsuite/lib/compile_flags.exp defines all_compile_flags(),
all_compile_flag(INDEX) and all_compile_flag_name(INDEX) which return
the number, actual flag and extra test name to use in tests that use
target_compile for use space testing. On architectures that support
multiple ABIs it will return all combinations of all optimizations
(none, -O, -O2) and the ABI flags (-m64, -m32 or -m31).

Use in a for loop like: for {set i 0} {$i < [all_compile_flags]} {incr i} {
  set extra_flag [all_compile_flag $i] # Add to target_compile flags
  set extra_name [all_compile_flag_name $i] # Add to test pass/fail message
...
}
14 files changed:
testsuite/config/unix.exp
testsuite/lib/compile_flags.exp [new file with mode: 0644]
testsuite/systemtap.base/cast-scope.exp
testsuite/systemtap.base/cast-scope.stp
testsuite/systemtap.base/cu-decl.exp
testsuite/systemtap.base/cxxclass.exp
testsuite/systemtap.base/externalvar.exp
testsuite/systemtap.base/implicitptr.exp
testsuite/systemtap.base/inherit.exp
testsuite/systemtap.base/inlinedvars.exp
testsuite/systemtap.base/ptridx.exp
testsuite/systemtap.base/unresolved-struct-typedef.exp
testsuite/systemtap.base/vta-test.exp
testsuite/systemtap.context/usymbols.exp
This page took 0.028895 seconds and 5 git commands to generate.