## The .NET Foundation licenses this file to you under the MIT license.
#
##
-# Title: runtest.py
+# Title: run.py
#
# Notes:
#
# Universal script to setup and run the xunit console runner. The script relies
-# on runtest.proj and the bash and batch wrappers. All test excludes will also
+# on run.proj and the bash and batch wrappers. All test excludes will also
# come from issues.targets. If there is a jit stress or gc stress exclude,
# please add GCStressIncompatible or JitOptimizationSensitive to the test's
# ilproj or csproj.
import urllib.request
# Import coreclr_arguments.py from src\coreclr\scripts
-sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "scripts"))
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "coreclr", "scripts"))
from coreclr_arguments import *
################################################################################
################################################################################
description = ("""Universal script to setup and run the xunit console runner. The script relies
-on runtest.proj and the bash and batch wrappers. All test excludes will also
+on run.proj and the bash and batch wrappers. All test excludes will also
come from issues.targets. If there is a jit stress or gc stress exclude,
please add GCStressIncompatible or JitOptimizationSensitive to the test's
ilproj or csproj.
REM
REM Notes:
REM
-REM This wrapper is automatically generated by runtest.py. It includes the
+REM This wrapper is automatically generated by run.py. It includes the
REM necessary environment to reproduce a failure that occured during running
REM the tests.
REM
REM In order to change how this wrapper is generated, see
-REM runtest.py:__create_batch_wrapper__(). Please note that it is possible
-REM to recreate this file by running tests/runtest.py --analyze_results_only
+REM run.py:__create_batch_wrapper__(). Please note that it is possible
+REM to recreate this file by running src/tests/run.py --analyze_results_only
REM with the appropriate environment set and the correct arch and build_type
REM passed.
REM
#
# Notes:
#
-# This wrapper is automatically generated by runtest.py. It includes the
+# This wrapper is automatically generated by run.py. It includes the
# necessary environment to reproduce a failure that occured during running
# the tests.
#
# In order to change how this wrapper is generated, see
-# runtest.py:__create_bash_wrapper__(). Please note that it is possible
-# to recreate this file by running tests/runtest.py --analyze_results_only
+# run.py:__create_bash_wrapper__(). Please note that it is possible
+# to recreate this file by running src/tests/run.py --analyze_results_only
# with the appropriate environment set and the correct arch and build_type
# passed.
#
is_same_build_type = False
# We will write out build information into the test directory. This is used
- # by runtest.py to determine whether we need to rebuild the test wrappers.
+ # by run.py to determine whether we need to rebuild the test wrappers.
if os.path.isfile(os.path.join(coreclr_setup_args.test_location, "build_info.json")):
with open(os.path.join(coreclr_setup_args.test_location, "build_info.json")) as file_handle:
build_info = json.load(file_handle)
for collection in assembly:
if collection.tag == "errors" and collection.text != None:
# Something went wrong during running the tests.
- print("Error running the tests, please run runtest.py again.")
+ print("Error running the tests, please run run.py again.")
sys.exit(1)
elif collection.tag != "errors":
test_name = None
export COMPlus_gcServer="$serverGC"
################################################################################
-# Runtest.py
+# Run.py
################################################################################
runtestPyArguments=("-arch" "${buildArch}" "-build_type" "${buildConfiguration}")
__Python=python3
fi
-# Run the tests using cross platform runtest.py
-echo "python $repoRootDir/src/coreclr/tests/runtest.py ${runtestPyArguments[@]}"
-$__Python "$repoRootDir/src/coreclr/tests/runtest.py" "${runtestPyArguments[@]}"
+# Run the tests using cross platform run.py
+echo "python $repoRootDir/src/tests/run.py ${runtestPyArguments[@]}"
+$__Python "$repoRootDir/src/tests/run.py" "${runtestPyArguments[@]}"
exit "$?"