diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-09-15 16:44:34 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-12-08 13:55:21 +0100 |
| commit | 2a2b2cbc3d236f844ae09cb32b552640f61db22c (patch) | |
| tree | 3dfeb3b439767d8910f0d845044a4e2755598600 /validation | |
| parent | 431103167d425889ec34926f881e55dd6d3a446b (diff) | |
| download | sparse-dev-2a2b2cbc3d236f844ae09cb32b552640f61db22c.tar.gz | |
testsuite: remove old ugly pattern syntax
It was too ugly (and a bit longish).
Remove it.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation')
| -rwxr-xr-x | validation/test-suite | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/validation/test-suite b/validation/test-suite index 903a2b90..07d9e7fc 100755 --- a/validation/test-suite +++ b/validation/test-suite @@ -55,7 +55,6 @@ get_tag_value() check_output_ignore=0 check_output_contains=0 check_output_excludes=0 - check_output_pattern_obsolete=0 check_output_pattern=0 check_arch_ignore="" check_arch_only="" @@ -77,7 +76,6 @@ get_tag_value() check-output-ignore) check_output_ignore=1 ;; check-output-contains:) check_output_contains=1 ;; check-output-excludes:) check_output_excludes=1 ;; - check-output-pattern-) check_output_pattern_obsolete=1 ;; check-output-pattern) check_output_pattern=1 ;; check-arch-ignore:) arch=$(uname -m) check_arch_ignore="$val" ;; @@ -150,29 +148,6 @@ has_none_patterns() } ## -# nbr_patterns(ifile tag ofile) - does ofile contains the -# the patterns given by ifile's tags -# the right number of time? -nbr_patterns() -{ - ifile="$1" - patt="$2" - ofile="$3" - grep "$patt-[0-9][0-9]*-times:" "$ifile" | \ - sed -e "s/^.*$patt-\([0-9][0-9]*\)-times: *\(.*\)/\1 \2/" | \ - while read nbr pat; do - n=$(grep -s "$pat" "$ofile" | wc -l) - if [ "$n" -ne "$nbr" ]; then - error "test '$ifile' failed" - error " Pattern '$pat' expected $nbr times but got $n times" - return 1 - fi - done - - return $? -} - -## # minmax_patterns(ifile tag ofile) - does ofile contains the # the patterns given by ifile's tags # the right number of time? @@ -371,13 +346,6 @@ do_test() test_failed=1 fi fi - if [ $check_output_pattern_obsolete -eq 1 ]; then - # verify the 'check-output-pattern-X-times' tags - nbr_patterns "$file" 'check-output-pattern' $file.output.got - if [ "$?" -ne "0" ]; then - test_failed=1 - fi - fi if [ $check_output_pattern -eq 1 ]; then # verify the 'check-output-pattern(...)' tags minmax_patterns "$file" 'check-output-pattern' $file.output.got |
