Spent some time installing a copy of Fedora Core 3 in VMWare. Took a bit of time but it’s all working now.
I set this up so I could start on creating a .spec file for creating RPMs. I’ve created these before but this time I’m trying to create multiple packages from a single .spec file. Lots of trial and error there.
The other thing I’m working on is NUnit. I created a simple test (following one of the Mono samples):
using System;
using NUnit.Framework;
namespace SussenTests.Sussen.Oval
{
[TestFixture]
public class LorenTest
{
[SetUp]
public void SetUp()
{
}
[TearDown]
public void TearDown ()
{
}
[Test]
public void TestSomething ()
{
Assert.AreEqual (12, 12, "Integer");
}
}
}
I got it complied fine but I was kind of stumpped on how to run it. The documenation refers to two utilities nunit-console.exe and nunit-gui.exe but I didn’t have any of those in my Mono install.
Since I know the Mono guys are definitely using NUnit tests I started digging around their source tree and reading Makefiles. I discovered that Mono does build nunit-console.exe but doesn’t install it.
So I grabbed the source (it’s a very small program) and built it and tried running the test:
$ ./nunit-console.exe test.dll
NUnit version 2.2.0
Copyright (C) 2002-2003 James W. Newkirk, Michael C.
Two, Alexei A. Vorontsov, Charlie Poole.
Copyright (C) 2000-2003 Philip Craig.
All Rights Reserved.
OS Version: Unix 2.6.11.10 Mono Version: 1.1.4322.573
.
Tests run: 1, Failures: 0, Not run: 0, Time: 0.051508 seconds
So that works, but it looks like I’ll need to include nunit-console.exe in Sussen. That shouldn’t be a huge issue but it would be nice if it was included in Mono by default so I didn’t have to worry about it.
I mean why integrate NUnit into Mono if you are not going to provide the tools to use it? Maybe I’m just missing something. I’ll have to check on the Mono mailing list archives later and see if I can figure out how this came about.