# Confused - trying to run the specs

**URL:** <https://www.ruby-forum.com/t/confused-trying-to-run-the-specs/163792>\
**Category:** IronRuby\
**Created:** [March 24, 2009, 11:07pm UTC](https://www.ruby-forum.com/t/confused-trying-to-run-the-specs/163792 "2009-03-24T23:07:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thbar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@thbar](https://www.ruby-forum.com/u/thbar)\
**Post date:** [March 24, 2009, 11:07pm UTC](https://www.ruby-forum.com/t/confused-trying-to-run-the-specs/163792/1 "2009-03-24T23:07:04Z")

</div>

Hi,  
I’m having a closer look at the source in order to attempt some work  
around  
system and IO popen.

I pulled the code, ran dev.bat etc. The build runs fine.

Now I’m trying to run the specs and something must be not quite right -  
or  
I’m not invoking the right modjo. Maybe some confusion with some  
existing  
install on the system, I’m not sure.

I’ve tried (U: is my github root):

U:\>mspec ci core\kernel\system  
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]

Finished in 0.000000 seconds

0 files, 0 examples, 0 expectations, 0 failures, 0 errors  
also tried:

U:\Merlin\External\Languages\IronRuby\mspec\>mspec :core  
U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in  
`exec': No such file or directory - U:\Merlin\Main\Test\Scripts\ir.cmd (Errno::ENOENT) from U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in`run’  
from  
U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/utils/script.rb:203:in  
`main’  
from  
U:/Merlin/External/Languages/IronRuby/mspec/mspec/bin/mspec:7

I have no HOME var set. I tried setting it but it doesn’t seem to change  
anything currently.

So any hint will help me go further here (I’ll continue diving in here).  
Are  
there some steps I should carry out ?

As well, is there an explanation of what “tags” are for ? Are these some  
way  
to track the specs that aren’t passing ?

cheers,

– Thibaut

---

<div class="post-metadata">

**Author:** ![thbar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@thbar](https://www.ruby-forum.com/u/thbar)\
**Post date:** [March 25, 2009, 12:29am UTC](https://www.ruby-forum.com/t/confused-trying-to-run-the-specs/163792/2 "2009-03-25T00:29:02Z")

</div>

Btw, HOME should be set to %USERPROFILE% (something like  
c:\Users\janedoe) for those who do not know what the value should look  
like.

From: Shri B.  
Sent: Tuesday, March 24, 2009 4:09 PM  
To: ironruby-core  
Subject: RE: [Ironruby-core] Confused - trying to run the specs

This does seem to be an issue with HOME not being set which Adam Khatava  
was also running into. Can you try setting HOME before running dev.bat?  
Dev.bat copies default.mspec to the HOME folder allowing the “mspec ci”  
command to know where to find the tests. So setting HOME after running  
dev.bat will _not_ work.

I have a change for dev.bat to set HOME if it is not set already. If you  
could confirm that setting HOME before running dev.bat works, then I  
will know that my change is actually the right fix for your problem.

Tags are a way to disable tests. Browsing the ironruby-tags folder will  
tell you what does not work. See  
[http://rubyspec.org/wiki/mspec/Mspec-tag](http://rubyspec.org/wiki/mspec/Mspec-tag) for some info.

Thanks,  
Shri

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Thibaut  
BarrÃ¨re  
Sent: Tuesday, March 24, 2009 2:54 PM  
To: ironruby-core  
Subject: [Ironruby-core] Confused - trying to run the specs

Hi,

I’m having a closer look at the source in order to attempt some work  
around system and IO popen.

I pulled the code, ran dev.bat etc. The build runs fine.

Now I’m trying to run the specs and something must be not quite right -  
or I’m not invoking the right modjo. Maybe some confusion with some  
existing install on the system, I’m not sure.

I’ve tried (U: is my github root):

U:\>mspec ci core\kernel\system  
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]

Finished in 0.000000 seconds

0 files, 0 examples, 0 expectations, 0 failures, 0 errors  
also tried:

U:\Merlin\External\Languages\IronRuby\mspec\>mspec :core  
U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in  
`exec': No such file or directory - U:\Merlin\Main\Test\Scripts\ir.cmd (Errno::ENOENT) from U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in `run’  
from  
U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/utils/script.rb:203:in  
`main’  
from  
U:/Merlin/External/Languages/IronRuby/mspec/mspec/bin/mspec:7

I have no HOME var set. I tried setting it but it doesn’t seem to change  
anything currently.

So any hint will help me go further here (I’ll continue diving in here).  
Are there some steps I should carry out ?

As well, is there an explanation of what “tags” are for ? Are these some  
way to track the specs that aren’t passing ?

cheers,

– Thibaut

---

<div class="post-metadata">

**Author:** ![thbar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@thbar](https://www.ruby-forum.com/u/thbar)\
**Post date:** [March 25, 2009, 12:46am UTC](https://www.ruby-forum.com/t/confused-trying-to-run-the-specs/163792/3 "2009-03-25T00:46:37Z")

</div>

This does seem to be an issue with HOME not being set which Adam Khatava  
was also running into. Can you try setting HOME before running dev.bat?  
Dev.bat copies default.mspec to the HOME folder allowing the “mspec ci”  
command to know where to find the tests. So setting HOME after running  
dev.bat will _not_ work.

I have a change for dev.bat to set HOME if it is not set already. If you  
could confirm that setting HOME before running dev.bat works, then I  
will know that my change is actually the right fix for your problem.

Tags are a way to disable tests. Browsing the ironruby-tags folder will  
tell you what does not work. See  
[http://rubyspec.org/wiki/mspec/Mspec-tag](http://rubyspec.org/wiki/mspec/Mspec-tag) for some info.

Thanks,  
Shri

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Thibaut  
BarrÃ¨re  
Sent: Tuesday, March 24, 2009 2:54 PM  
To: ironruby-core  
Subject: [Ironruby-core] Confused - trying to run the specs

Hi,

I’m having a closer look at the source in order to attempt some work  
around system and IO popen.

I pulled the code, ran dev.bat etc. The build runs fine.

Now I’m trying to run the specs and something must be not quite right -  
or I’m not invoking the right modjo. Maybe some confusion with some  
existing install on the system, I’m not sure.

I’ve tried (U: is my github root):

U:\>mspec ci core\kernel\system  
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]

Finished in 0.000000 seconds

0 files, 0 examples, 0 expectations, 0 failures, 0 errors  
also tried:

U:\Merlin\External\Languages\IronRuby\mspec\>mspec :core  
U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in  
`exec': No such file or directory - U:\Merlin\Main\Test\Scripts\ir.cmd (Errno::ENOENT) from U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in `run’  
from  
U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/utils/script.rb:203:in  
`main’  
from  
U:/Merlin/External/Languages/IronRuby/mspec/mspec/bin/mspec:7

I have no HOME var set. I tried setting it but it doesn’t seem to change  
anything currently.

So any hint will help me go further here (I’ll continue diving in here).  
Are there some steps I should carry out ?

As well, is there an explanation of what “tags” are for ? Are these some  
way to track the specs that aren’t passing ?

cheers,

– Thibaut

---

<div class="post-metadata">

**Author:** ![thbar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@thbar](https://www.ruby-forum.com/u/thbar)\
**Post date:** [March 25, 2009, 11:50am UTC](https://www.ruby-forum.com/t/confused-trying-to-run-the-specs/163792/4 "2009-03-25T11:50:27Z")

</div>

Hi,  
I tried that:

set HOME=%USERPROFILE%  
then dev.bat

then:

U:\Merlin\External\Languages\IronRuby\mspec\>mspec :core  
U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in  
`exec': No such file or directory - U:\Merlin\Main\Test\Scripts\ir.cmd (Errno::ENOENT) from U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in `run’  
from  
U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/utils/script.rb:203:in  
`main’  
from  
U:/Merlin/External/Languages/IronRuby/mspec/mspec/bin/mspec:7

U:\Merlin\External\Languages\IronRuby\mspec\>echo %HOME%  
C:\Documents and Settings\Thibaut BarrÃ¨re

At this point there is a .mspecrc in HOME, and MERLIN\_ROOT is set to  
U:\Merlin\Main

Calling dev.bat first then setting HOME does not change the behaviour.

I also removed all known references to some IR version from my PATHs  
(both  
user and system), pulled the last ironruby bits, compiled again and  
retried,  
but it raises the same error.

Maybe it’s a cause: in which folder should I be before I call mspec ci ?

No idea what’s going on for the moment, any hint will be most welcome.

– Thibaut

2009/3/25 Shri B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
