aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-11-21 22:38:43 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-12-08 13:55:21 +0100
commitc34baae31b31dfcfb7cf3d6b233bb795f69b17c2 (patch)
tree35c5aa17676afaac80806f7c2add02b2043186d4 /validation
parent3ed20037295696ea1d9120bad098cff8191634aa (diff)
downloadsparse-dev-c34baae31b31dfcfb7cf3d6b233bb795f69b17c2.tar.gz
testsuite: validate the 'check-...' tags
Making a typo in one of the 'check-...' tags can make a testcase useless and thus incapable of detecting a regression. Add some validation to these tags in order to detect wrong tags. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation')
-rwxr-xr-xvalidation/test-suite12
1 files changed, 12 insertions, 0 deletions
diff --git a/validation/test-suite b/validation/test-suite
index 6a939846..d50a3bfa 100755
--- a/validation/test-suite
+++ b/validation/test-suite
@@ -108,6 +108,18 @@ get_tag_value()
check_arch_ignore="$val" ;;
check-arch-only:) arch=$(uname -m)
check_arch_only="$val" ;;
+
+ check-description:) ;; # ignore
+ check-note:) ;; # ignore
+ check-warning:) ;; # ignore
+ check-error-start) ;; # ignore
+ check-error-end) ;; # ignore
+ check-output-start) ;; # ignore
+ check-output-end) ;; # ignore
+ check-should-pass) ;; # ignore, unused annotation
+ check-should-fail) ;; # ignore, unused annotation
+ check-should-warn) ;; # ignore, unused annotation
+ check-*) error "$1: unknown tag '$tag'" 1 ;;
esac
done << EOT
$lines