[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / llvm / utils / rsp_bisect_test / test_script_inv.py
blobc571b0b93f0fac5d18cdaa7db3fc69d2655c0fd2
1 #!/usr/bin/env python3
2 #===----------------------------------------------------------------------===##
4 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 # See https://llvm.org/LICENSE.txt for license information.
6 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 #===----------------------------------------------------------------------===##
10 import os
11 import sys
13 rsp_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "rsp")
15 with open(rsp_path) as f:
16 success = '../Other/./foo' in f.read()
18 sys.exit(1 if success else 0)