Home | History | Annotate | Line # | Download | only in vars
      1 # Copyright (C) Internet Systems Consortium, Inc. ("ISC")
      2 #
      3 # SPDX-License-Identifier: MPL-2.0
      4 #
      5 # This Source Code Form is subject to the terms of the Mozilla Public
      6 # License, v. 2.0.  If a copy of the MPL was not distributed with this
      7 # file, you can obtain one at https://mozilla.org/MPL/2.0/.
      8 #
      9 # See the COPYRIGHT file distributed with this work for additional
     10 # information regarding copyright ownership.
     11 
     12 import os
     13 
     14 # pylint: disable=import-error
     15 from .autoconf import AC_VARS  # type: ignore
     16 
     17 # pylint: enable=import-error
     18 
     19 
     20 SYSTEM_TEST_DIR_GIT_PATH = "bin/tests/system"
     21 
     22 DIR_VARS = {
     23     "builddir": f"{AC_VARS['TOP_BUILDDIR']}/{SYSTEM_TEST_DIR_GIT_PATH}",
     24     "srcdir": f"{AC_VARS['TOP_SRCDIR']}/{SYSTEM_TEST_DIR_GIT_PATH}",
     25     "HYPOTHESIS_STORAGE_DIRECTORY": f"{AC_VARS['TOP_BUILDDIR']}/{SYSTEM_TEST_DIR_GIT_PATH}/.hypothesis",
     26     "SYSTESTDIR": None,
     27 }
     28 
     29 
     30 def set_system_test_name(name: str):
     31     DIR_VARS["SYSTESTDIR"] = name
     32     os.environ["SYSTESTDIR"] = name
     33