summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimur <t-mustafin@partner.samsung.com>2020-10-28 14:15:01 +0300
committerAlexander Soldatov/Platform Lab /SRR/Staff Engineer/Samsung Electronics <soldatov.a@samsung.com>2020-10-29 00:44:14 +0300
commit0fb1f07f6deb8628d8dc6f9599512de8fc654ddf (patch)
treed936876452fdc72a53f4f139cc9b69c37d54309e
parent45574c33d63efde3d02485278e9b33746f2578d0 (diff)
downloadcoreclr-0fb1f07f6deb8628d8dc6f9599512de8fc654ddf.tar.gz
coreclr-0fb1f07f6deb8628d8dc6f9599512de8fc654ddf.tar.bz2
coreclr-0fb1f07f6deb8628d8dc6f9599512de8fc654ddf.zip
Remove --arch option from runtest.sh
Signed-off-by: Timur <t-mustafin@partner.samsung.com>
-rwxr-xr-xpackaging/coreclr.spec4
-rwxr-xr-xtests/runtest.sh25
2 files changed, 9 insertions, 20 deletions
diff --git a/packaging/coreclr.spec b/packaging/coreclr.spec
index 01f52826ec..a012e654ce 100755
--- a/packaging/coreclr.spec
+++ b/packaging/coreclr.spec
@@ -324,7 +324,9 @@ cp -rf %{_reldir}/lib %{buildroot}%{_datadir}/%{netcoreappdir}
%else
cp tests/runtest.sh %{buildroot}/%{dotnettestdir}
chmod +x %{buildroot}/%{dotnettestdir}/runtest.sh
-cp tests/unsupported*.%{_tarch}.txt %{buildroot}/%{dotnettestdir} | true
+cp tests/unsupportedCrossgenLibs.%{_tarch}.txt %{buildroot}/%{dotnettestdir}/unsupportedCrossgenLibs.txt | true
+cp tests/unsupportedCrossgenTests.%{_tarch}.txt %{buildroot}/%{dotnettestdir}/unsupportedCrossgenTests.txt | true
+cp tests/unsupportedTests.%{_tarch}.txt %{buildroot}/%{dotnettestdir}/unsupportedTests.txt | true
%define _tcreldir bin/tests/Linux.%{_barch}.%{_buildtype}
cp -r %{_tcreldir}/* %{buildroot}/%{dotnettestdir}
diff --git a/tests/runtest.sh b/tests/runtest.sh
index 9abf620a61..0513f2ec09 100755
--- a/tests/runtest.sh
+++ b/tests/runtest.sh
@@ -4,13 +4,12 @@ function print_usage {
echo ''
echo 'CoreCLR test runner script.'
echo 'Script uses next files if they exist:'
- echo ' unsupportedTests.<arch>.txt'
- echo ' unsupportedCrossgenLibs.<arch>.txt'
- echo ' unsupportedCrossgenTests.<arch>.txt'
+ echo ' unsupportedTests.txt'
+ echo ' unsupportedCrossgenLibs.txt'
+ echo ' unsupportedCrossgenTests.txt'
echo ''
echo 'Typical Tizen command:'
echo ' coreclr/tests/runtest.sh'
- echo ' --arch=arm'
echo ' --testRootDir="/opt/usr/coreclr-tc"'
echo ' --coreOverlayDir="/opt/usr/coreclr-tc/coreroot"'
echo ' --netcoreDir="/usr/share/dotnet.tizen/netcoreapp"'
@@ -24,7 +23,6 @@ function print_usage {
echo ' --libsCrossgenFailOutputPath="/opt/usr/coreclr-tc/results/crossgenlibs.fail.txt"'
echo ''
echo 'Required arguments:'
- echo ' --arch=<arch> : Target arch (for TW targets "arm" should be passed instead of "arm64").'
echo ' --testRootDir=<path> : Root directory of the test build (default: /opt/usr/coreclr-tc).'
echo ' --coreOverlayDir=<path> : Directory containing CLR and FX (default: /opt/usr/coreclr-tc/coreroot).'
echo ''
@@ -378,11 +376,11 @@ function read_array {
function load_unsupported_tests {
# Load the list of tests that are not supported on this platform
- unsupportedTests=($(read_array "$(dirname "$0")/unsupportedTests.$ARCH.txt"))
+ unsupportedTests=($(read_array "$(dirname "$0")/unsupportedTests.txt"))
# Load the list of libs that are not supported for crossgen on this platform
- unsupportedCrossGenLibs=($(read_array "$(dirname "$0")/unsupportedCrossgenLibs.$ARCH.txt"))
+ unsupportedCrossGenLibs=($(read_array "$(dirname "$0")/unsupportedCrossgenLibs.txt"))
# Load the list of test that are not supported for crossgen on this platform
- unsupportedCrossGenTests=($(read_array "$(dirname "$0")/unsupportedCrossgenTests.$ARCH.txt"))
+ unsupportedCrossGenTests=($(read_array "$(dirname "$0")/unsupportedCrossgenTests.txt"))
}
function is_unsupported_crossgen_lib {
@@ -750,9 +748,6 @@ do
-v|--verbose)
verbose=1
;;
- --arch=*)
- ARCH=${i#*=}
- ;;
--crossgen-libs)
doCrossgenLibs=1
;;
@@ -834,12 +829,6 @@ do
esac
done
-if [ -z "$ARCH" ]; then
- echo "--arch is required."
- print_usage
- exit $EXIT_CODE_EXCEPTION
-fi
-
if [ -z "$testRootDir" ]; then
echo "--testRootDir is required."
print_usage
@@ -864,8 +853,6 @@ export CORE_ROOT="$coreOverlayDir"
echo "! Make sure CLR/FX are copied to $coreOverlayDir !"
-echo "Running on CPU-$ARCH"
-
xunit_output_begin
text_file_output_begin
load_unsupported_tests