From 75e8d076f62e88c65c264a165172e0c5d02862dd Mon Sep 17 00:00:00 2001 From: Julian Büning Date: Sun, 15 Sep 2019 23:02:53 +0200 Subject: test/lit.cfg: test if current version is known --- test/lit.cfg | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/lit.cfg') diff --git a/test/lit.cfg b/test/lit.cfg index 037cbf37..25061a68 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -158,6 +158,11 @@ config.substitutions.append( known_llvm_versions = set(["3.8", "3.9", "4.0", "5.0", "6.0", "7.0", "8.0"]) current_llvm_version = "%s.%s" % (config.llvm_version_major, config.llvm_version_minor) + +if current_llvm_version not in known_llvm_versions: + lit_config.fatal("LLVM Version %s is not listed in known_llvm_versions!" + % current_llvm_version) + config.available_features.add("llvm-" + current_llvm_version) for version in known_llvm_versions: if version != current_llvm_version: -- cgit 1.4.1