xref: /llvm-project/llvm/utils/rsp_bisect_test/test_script.py (revision b71edfaa4ec3c998aadb35255ce2f60bba2940b0)
18490a7d9SArthur Eubanks#!/usr/bin/env python3
28490a7d9SArthur Eubanks# ===----------------------------------------------------------------------===##
38490a7d9SArthur Eubanks#
48490a7d9SArthur Eubanks# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
58490a7d9SArthur Eubanks# See https://llvm.org/LICENSE.txt for license information.
68490a7d9SArthur Eubanks# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
78490a7d9SArthur Eubanks#
88490a7d9SArthur Eubanks# ===----------------------------------------------------------------------===##
98490a7d9SArthur Eubanks
108490a7d9SArthur Eubanksimport os
118490a7d9SArthur Eubanksimport sys
128490a7d9SArthur Eubanks
138490a7d9SArthur Eubanksrsp_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "rsp")
148490a7d9SArthur Eubanks
158490a7d9SArthur Eubankswith open(rsp_path) as f:
168490a7d9SArthur Eubanks    contents = f.read()
178490a7d9SArthur Eubanks    print(contents)
18*b71edfaaSTobias Hieta    success = "../Other/./foo" in contents
198490a7d9SArthur Eubanks
208490a7d9SArthur Eubankssys.exit(0 if success else 1)
21