Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make make fullaotcheck in mono/mini runnable on Windows #2777

Merged
merged 1 commit into from
Mar 19, 2016

Conversation

xmcclure
Copy link
Contributor

Run with
MONO_EXECUTABLE=/path/to/msvc/mono.exe LIST_SEPARATOR=";"
This assumes you are running the test harness in Cygwin and you built mono with MSVC. Also, the test does not currently succeed.
Being able to run the test is a zeroth step toward making the test pass.

@@ -1,6 +1,8 @@
count=100000
mtest=for_loop
monodir=$(top_builddir)
mono=$(if $(MONO_EXECUTABLE),$(MONO_EXECUTABLE),mono)
sep=$(if $(LIST_SEPARATOR),$(LIST_SEPARATOR),:)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the mcs/ build system this is called $(PLATFORM_PATH_SEPARATOR) (just for sake of consistency).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And instead of needing to pass this in from the outside, you could do:

if HOST_WIN32
PLATFORM_PATH_SEPARATOR=;
else
PLATFORM_PATH_SEPARATOR=:
endif

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is a problem: If we are running this from Cygwin, we need to potentially be able to support EITHER running a cygwin-built mono OR a msvc-built mono. Will the cygwin-built mono use ; or : as its separator?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, good question. We use glib for that, so whatever G_SEARCHPATH_SEPARATOR_S happens to be:

splitted = g_strsplit (path, G_SEARCHPATH_SEPARATOR_S, 1000);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
    PATHSEP='\\'
    SEARCHSEP=';'

Hm, this says to me that ALL HOST_WIN32 platforms use the semicolon.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@akoeplinger
Copy link
Member

LGTM otherwise.

Test harness now uses the proper path separator and also now supports
MONO_EXECUTABLE if you built with MSVC.
@xmcclure
Copy link
Contributor Author

Addressed the "otherwise", so based on that LGTM:

@monojenkins merge

monojenkins added a commit that referenced this pull request Mar 19, 2016
Make `make fullaotcheck` in mono/mini runnable on Windows

Run with  
MONO_EXECUTABLE=/path/to/msvc/mono.exe LIST_SEPARATOR=";"  
This assumes you are running the test harness in Cygwin and you built mono with MSVC. Also, the test does not currently succeed.  
Being able to run the test is a zeroth step toward making the test pass.
@monojenkins monojenkins merged commit 65e51c5 into mono:master Mar 19, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Make `make fullaotcheck` in mono/mini runnable on Windows

Run with  
MONO_EXECUTABLE=/path/to/msvc/mono.exe LIST_SEPARATOR=";"  
This assumes you are running the test harness in Cygwin and you built mono with MSVC. Also, the test does not currently succeed.  
Being able to run the test is a zeroth step toward making the test pass.


Commit migrated from mono/mono@65e51c5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants