Re: [Mono-dev] Developing Mono
Hi Miguel, As always, I'm sure we're all thankful for your work. I'm watching your repeat build thread which I'm assuming is the one you're referring to. Please don't hesitate to ask me if there is anything at all I can do to help move things along. I can do a fair bit with C#, but beyond that, my skills are limited. Thanks again, I'll be giving the other suggestions in this thread ago later (in my copious amount of spare time ;-)) Martin On 14 May 2014 04:36, Miguel de Icaza mig...@xamarin.com wrote: Hello Martin, The solution files that we have on the tree have not really been tested. I am currently working on fixing a few fundamental bugs in our build system and once I do that, I should be able to get solution files that work with MonoDevelop or Visual Studio to work. Sadly, I have very little time, but I will try to finish it this week. Miguel On Tue, May 13, 2014 at 6:55 PM, Martin Thwaites monofo...@my2cents.co.uk wrote: So I've given in, and I'm now looking at using linux (ubuntu 14.04) to try and add some things to mono. I have the same issues with loading the net_4_5.sln file in MD as I do in VS, in that it won't compile. I'm assuming that the solution itself is just broken. The main issue though is I've not found anything that could show me some simple steps to how I should go about building and running tests. I try to read through the pull requests that go on so I see if there is anything of interest to me. I've seen from the comments in these that what I need to do is create a test that passes on .NET, and fails on mono, then fix the code to make the test pass. This seems like a simple concept, however, what steps should I take to do that. What I thought was that I could create a dummy project in visual studio and paste the test in, see if it works, then run it on MD in linux. This doesn't seem like the best approach to me. So my question, what is the generally accepted way to create tests for mono? Thanks in advance Martin ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Developing Mono
On 14/05/2014 00:40, Robert Jordan wrote: On 14.05.2014 00:55, Martin Thwaites wrote: So I've given in, and I'm now looking at using linux (ubuntu 14.04) to try and add some things to mono. I have the same issues with loading the net_4_5.sln file in MD as I do in VS, in that it won't compile. I'm assuming that the solution itself is just broken. The main issue though is I've not found anything that could show me some simple steps to how I should go about building and running tests. http://www.mono-project.com/Test_Suite What would the recommended way be to built the test suite then have it run outside of the build environment and generate some results? e.g. I'd like to package up the test suite on a build host for deployment into a cross-compiled image (say ARM-based) then run it up on the target for regression testing. Thanks, Alex ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Developing Mono
Personally I'd do this using nant and wrap the nunit console call in ncover communit edition to get a code coverage report. Bryan Crotaz Silver Curve On 14 May 2014, at 09:59, Alex J Lennon ajlen...@dynamicdevices.co.uk wrote: On 14/05/2014 00:40, Robert Jordan wrote: On 14.05.2014 00:55, Martin Thwaites wrote: So I've given in, and I'm now looking at using linux (ubuntu 14.04) to try and add some things to mono. I have the same issues with loading the net_4_5.sln file in MD as I do in VS, in that it won't compile. I'm assuming that the solution itself is just broken. The main issue though is I've not found anything that could show me some simple steps to how I should go about building and running tests. http://www.mono-project.com/Test_Suite What would the recommended way be to built the test suite then have it run outside of the build environment and generate some results? e.g. I'd like to package up the test suite on a build host for deployment into a cross-compiled image (say ARM-based) then run it up on the target for regression testing. Thanks, Alex ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Developing Mono
To do this remotely on a test image, I'd have a script: Start VM with chosen image Package a release (eg .deb) Ssh into VM as root Install package Run ncover around nunit console Retrieve nunit and ncover XML Shut down VM Process results using xsl Publish results to all committers since last build Repeat for other platforms If no test failures, publish results and package to Xamarin website Bryan Crotaz Silver Curve On 14 May 2014, at 09:59, Alex J Lennon ajlen...@dynamicdevices.co.uk wrote: On 14/05/2014 00:40, Robert Jordan wrote: On 14.05.2014 00:55, Martin Thwaites wrote: So I've given in, and I'm now looking at using linux (ubuntu 14.04) to try and add some things to mono. I have the same issues with loading the net_4_5.sln file in MD as I do in VS, in that it won't compile. I'm assuming that the solution itself is just broken. The main issue though is I've not found anything that could show me some simple steps to how I should go about building and running tests. http://www.mono-project.com/Test_Suite What would the recommended way be to built the test suite then have it run outside of the build environment and generate some results? e.g. I'd like to package up the test suite on a build host for deployment into a cross-compiled image (say ARM-based) then run it up on the target for regression testing. Thanks, Alex ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Developing Mono
On 14/05/2014 10:05, Bryan Crotaz wrote: To do this remotely on a test image, I'd have a script: Start VM with chosen image Package a release (eg .deb) Ssh into VM as root Install package Run ncover around nunit console Retrieve nunit and ncover XML Shut down VM Process results using xsl Publish results to all committers since last build Repeat for other platforms If no test failures, publish results and package to Xamarin website Thanks Bryan. I will take a look at nunit/ncover for the testing. Conceptually this is similar to work I've done in the past for production testing of boards with our Chinese manufacturers. The folks over at the Yocto project have work underway to extend their AutoBuilder (I think it is) to perform runtime testing on QEMU VM images, and I'd like to hook into that. https://www.yoctoproject.org/tools-resources/projects/autobuilder I'd like to arrive at a point - although it's not going to be in the short-term unfortunately I feel - where we have a test farm of production boards; where we can power cycle them, then provide a production test kernel and filesystem to them, perform relevant runtime tests via an SSH shell, e.g. of mono, to QA the build, capture the output and generate a release report. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Developing Mono
From: mono-devel-list-boun...@lists.ximian.com [mailto:mono-devel-list- boun...@lists.ximian.com] On Behalf Of Martin Thwaites I have the same issues with loading the net_4_5.sln file in MD as I do in VS, in === Section 1: Building Mono === Don't expect the .sln file to work. Just follow the standard build process. The README is a good starting point, but I'll add the following, which started as the standard simple process from the README, but bits and pieces have been added over time, based on experience: If you want to contribute to mono, don't clone mono sources. Instead, fork, and then clone your fork. Later, you can submit a pull request. cd to the directory where you cloned the sources. Note: BuildDir must be absolute path. Not allowed to use ~ symbol. (I forget why.) export BUILDDIR=/Users/whatever/mono-build (How many processors do you have? This speeds up make -j $NUMPROC) export NUMPROC=2 Note: --disable-bcl-opt is important and useful for debugging. Note: --enable-nls=no might or might not be necessary on your system depending on your system installed packages Normally, use this build command: (But since you specifically said ubuntu 14.04, see below) time ( test -d $BUILDDIR rm -rf $BUILDDIR ; mkdir -p $BUILDDIR ; ./autogen.sh --prefix=$BUILDDIR --disable-bcl-opt --enable-nls=no make -j $NUMPROC make install echo echo Done echo ) (Takes approx 30 minutes) On some systems (including ubuntu14.04) you may need the alternate build command: time ( test -d $BUILDDIR rm -rf $BUILDDIR ; mkdir -p $BUILDDIR ; ./autogen.sh --prefix=$BUILDDIR --disable-bcl-opt --enable-nls=no make get-monolite-latest make -j $NUMPROC EXTERNAL_MCS=${PWD}/mcs/class/lib/monolite/gmcs.exe make install echo echo Done echo ) === Section 2: Debugging Mono === Inside Xamarin Studio, create some dumb new project. By default only a single runtime registered so the Project / Active Runtime menu item doesn't appear. I had to go to Xamarin Studio / Preferences / .NET Runtimes / Add. Add the newly built runtime environment. The system thinks a while, and then the Project / Active Runtime menu becomes available, to select my newly compiled runtime. Go to Xamarin Studio / Preferences / Debugger. And un-check the checkbox: [_] Debug project code only; do not step into framework code And now for example, I'm able to write an app with: RSACryptoServiceProvider myrsa = new RSACryptoServiceProvider (3072); myrsa.ExportParameters (includePrivateParameters: false); And I'm able to Start Debugging. And step into the RSA code to see what it's doing internally. Hooray! :-) ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Developing Mono
So I've given in, and I'm now looking at using linux (ubuntu 14.04) to try and add some things to mono. I have the same issues with loading the net_4_5.sln file in MD as I do in VS, in that it won't compile. I'm assuming that the solution itself is just broken. The main issue though is I've not found anything that could show me some simple steps to how I should go about building and running tests. I try to read through the pull requests that go on so I see if there is anything of interest to me. I've seen from the comments in these that what I need to do is create a test that passes on .NET, and fails on mono, then fix the code to make the test pass. This seems like a simple concept, however, what steps should I take to do that. What I thought was that I could create a dummy project in visual studio and paste the test in, see if it works, then run it on MD in linux. This doesn't seem like the best approach to me. So my question, what is the generally accepted way to create tests for mono? Thanks in advance Martin ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Developing Mono
On 14.05.2014 00:55, Martin Thwaites wrote: So I've given in, and I'm now looking at using linux (ubuntu 14.04) to try and add some things to mono. I have the same issues with loading the net_4_5.sln file in MD as I do in VS, in that it won't compile. I'm assuming that the solution itself is just broken. The main issue though is I've not found anything that could show me some simple steps to how I should go about building and running tests. http://www.mono-project.com/Test_Suite Robert ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Developing Mono
Hello Martin, The solution files that we have on the tree have not really been tested. I am currently working on fixing a few fundamental bugs in our build system and once I do that, I should be able to get solution files that work with MonoDevelop or Visual Studio to work. Sadly, I have very little time, but I will try to finish it this week. Miguel On Tue, May 13, 2014 at 6:55 PM, Martin Thwaites monofo...@my2cents.co.ukwrote: So I've given in, and I'm now looking at using linux (ubuntu 14.04) to try and add some things to mono. I have the same issues with loading the net_4_5.sln file in MD as I do in VS, in that it won't compile. I'm assuming that the solution itself is just broken. The main issue though is I've not found anything that could show me some simple steps to how I should go about building and running tests. I try to read through the pull requests that go on so I see if there is anything of interest to me. I've seen from the comments in these that what I need to do is create a test that passes on .NET, and fails on mono, then fix the code to make the test pass. This seems like a simple concept, however, what steps should I take to do that. What I thought was that I could create a dummy project in visual studio and paste the test in, see if it works, then run it on MD in linux. This doesn't seem like the best approach to me. So my question, what is the generally accepted way to create tests for mono? Thanks in advance Martin ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Developing Mono Applications for Multi Platforms?
On Thu, Mar 24, 2011 at 10:21 PM, RandomlyKnighted thug...@asissweb.com wrote: Hey everyone, so this is my first Mono application and I'm trying to make it for Windows, Linux, and Mac OS X. Currently I have my GTK# project and I have an empty C# class file. I'm just wanting for someone to point me in the right direction. Using this empty class file I would like to have my program detect what operating system is running. Then I am going to call this class file from my main class and use a select statement to have it do certain things depending on which operating system is running. I just need help figuring out how to detect the operating systems. Can someone point me in the right direction? Have a look at http://www.mono-project.com/FAQ:_Technical, on the How to detect the execution platform ? question. In short, use the Environment.OSVersion.Platform enum. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Developing Mono Applications for Multi Platforms?
Hey everyone, so this is my first Mono application and I'm trying to make it for Windows, Linux, and Mac OS X. Currently I have my GTK# project and I have an empty C# class file. I'm just wanting for someone to point me in the right direction. Using this empty class file I would like to have my program detect what operating system is running. Then I am going to call this class file from my main class and use a select statement to have it do certain things depending on which operating system is running. I just need help figuring out how to detect the operating systems. Can someone point me in the right direction? -- View this message in context: http://mono.1490590.n4.nabble.com/Developing-Mono-Applications-for-Multi-Platforms-tp3403855p3403855.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Developing mono, what's the best distro?
Hi, I was asking me Which distribution is used by mono developers?. I would like to create a system where patching and compiling mono source code, there's a preferable linux distribution for doing this? I saw that ubuntu comes with bundled mono support, redhat rpm's are provided by mono-project, debian seems to be far from the project. What is the developers' choice? ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Developing mono, what's the best distro?
AFAIK, for compiling from source I think mostly any distro will do, as autogen.sh/configure will ask for the strict dependencies and adapt to the rest of the environment. Last time someone asked, most devs in the list were using Fedora or Suse, but Ubuntu (rising) and Gentoo (declining) are also common. The ones that cause more noise about installation problems seem to be Mandriva, and plain Debian stable. Variants of best known distros (like CentOS who derives from RH/Fedora) also sport packaging problems. I use FC3 (waiting a HD upgrade to be able to move to FC5 or Ubuntu DD). Hope it helps, :) On 7/24/06, APS [EMAIL PROTECTED] wrote: Hi, I was asking me Which distribution is used by mono developers?. I would like to create a system where patching and compiling mono source code, there's a preferable linux distribution for doing this? I saw that ubuntu comes with bundled mono support, redhat rpm's are provided by mono-project, debian seems to be far from the project. What is the developers' choice? ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list -- Rafael Monoman Teixeira --- The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list