diff options
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/systemtap.base/cache.exp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/testsuite/systemtap.base/cache.exp b/testsuite/systemtap.base/cache.exp index b10a4f28..e70f3334 100644 --- a/testsuite/systemtap.base/cache.exp +++ b/testsuite/systemtap.base/cache.exp @@ -99,9 +99,23 @@ stap_compile MERGE1 [F_UNCACHED_COMPILE] $basic_script1 -b -M stap_compile MERGE2 [F_CACHED_COMPILE] $basic_script1 -b -M # Using '-t' (benchmark timing) should change the hash -# These two tests will fail until PR3523 is fixed. -#stap_compile TIMING1 [F_UNCACHED_COMPILE] $basic_script1 -t -#stap_compile TIMING2 [F_CACHED_COMPILE] $basic_script1 -t +stap_compile TIMING1 [F_UNCACHED_COMPILE] $basic_script1 -t +stap_compile TIMING2 [F_CACHED_COMPILE] $basic_script1 -t + +# Using '-O[0123s]' (C compile optimizations) should change the hash +# unless they are the same +stap_compile OPTO [F_UNCACHED_COMPILE] $basic_script1 -O +# -O0 is the default, so will have been cached by BASIC1 +stap_compile OPTZERO [F_CACHED_COMPILE] $basic_script1 -O0 +# -O is an alias for -O1, so already cached +stap_compile OPTONE [F_CACHED_COMPILE] $basic_script1 -O1 +stap_compile OPTTWO [F_UNCACHED_COMPILE] $basic_script1 -O2 +stap_compile OPTTHREE [F_UNCACHED_COMPILE] $basic_script1 -O3 +stap_compile OPTSMALL [F_UNCACHED_COMPILE] $basic_script1 -Os +# Bad -O argument should be rejected +stap_compile OPTBAD [F_UNCACHED_NO_COMPILE] $basic_script1 -OX + +stap_compile TIMING2 [F_CACHED_COMPILE] $basic_script1 -t # Changing the runtime directory should change the hash set new_runtime [exec pwd]/.cache_test_runtime |