It was too ugly (and a bit longish). Remove it. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- validation/test-suite | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/validation/test-suite b/validation/test-suite index 903a2b908..07d9e7fc9 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" ;; @@ -149,29 +147,6 @@ has_none_patterns() has_patterns "$1" "$2" "$4" -eq "$3" } -## -# 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 @@ -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 -- 2.15.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html