diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-09-16 11:47:54 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-09-16 11:54:06 +0200 |
| commit | b4e441675f8f908d79cdb00f8850e7906693c89b (patch) | |
| tree | 87424c6d669daf5694ed7613f944605c7128c759 /validation | |
| parent | 4c70989cb77c1c9e77f30d134e7eba6e9dc06ac9 (diff) | |
| download | sparse-dev-b4e441675f8f908d79cdb00f8850e7906693c89b.tar.gz | |
testsuite: obsolete old pattern checking syntax
The old syntax is kept for now to avoid too much conflits
in pending branches.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation')
| -rwxr-xr-x | validation/test-suite | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/validation/test-suite b/validation/test-suite index a92debd8..0311cc45 100755 --- a/validation/test-suite +++ b/validation/test-suite @@ -45,8 +45,8 @@ 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_output_pattern_minmax=0 lines=$(grep 'check-[a-z-]*' $1 | \ sed -e 's/^.*\(check-[a-z-]*:*\) *\(.*\)$/\1 \2/') @@ -65,8 +65,8 @@ 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=1 ;; - check-output-pattern) check_output_pattern_minmax=1 ;; + check-output-pattern-) check_output_pattern_obsolete=1 ;; + check-output-pattern) check_output_pattern=1 ;; esac done << EOT $lines @@ -313,14 +313,14 @@ do_test() test_failed=1 fi fi - if [ $check_output_pattern -eq 1 ]; then + 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_minmax -eq 1 ]; then + if [ $check_output_pattern -eq 1 ]; then # verify the 'check-output-pattern(...)' tags minmax_patterns "$file" 'check-output-pattern' $file.output.got if [ "$?" -ne "0" ]; then |
