calling gem bin file from *within* the gemspec code ?

Hello and konnnichi-wa everyone ...

I am working on a tool for testing, and in the tradition of "eat your own
dogfood" I would like to use the tool, to test itself. The tool uses an
executable called "futo", in the gem/bin directory. I then have a
gem/lib/self-test directory, where I would like to run the binary against
some specifications there.

However, when I try and run ../../bin/futo from lib/self-test, I get an
error from my shebang at the beginning of the bin/futo file:

#!/usr/bin/env ruby_executeable_hooks
env: ruby_executeable_hooks: No such file or directory

I am using RVM by the way in a separate gemset for the tool.

Think of it this way -- in RSpec, what if there were RSpec tests *within*
the gemspec code itself validating that rspec works across various
permutations ? Speaking of which ... maybe I should look at the rspec code
...

specifically tying to get this file "f" to work:

as in, ./f should run the suite of self tests.

Anyhow if anyone grokks my crappy explanation and has an idea ... I would
appreciate it. Thanks :slight_smile:

ยทยทยท

--
A musician must make music, an artist must paint, a poet must write, if he
is to be ultimately at peace with himself.
- Abraham Maslow