cknadler / marktab-c

Concise, machine readable guitar tabs
MIT License
36 stars 7 forks source link

Fix .rcomp executable path #46

Closed dasmoose closed 11 years ago

dasmoose commented 11 years ago

The old directory structure of marktab (from what I can tell) had an executable in bin. bin no longer exists and the cli executable located at examples/cli seems to now serve this purpose. This commit tells rcomp to test against examples/cli instead of the old (it seems now nonexistant) executable.

This allows the rcomp tests to run but none pass.

cknadler commented 11 years ago

Yeah, I more or less abandoned my RComp test suite a while ago in favor of check (located at spec/check). This actually gets the tests to run properly. They aren't passing because of an output bug that was introduced, causing tabs to output an extra whitespace line at the end of their body. This might be more complicated than it seems but I'll look into it.

dasmoose commented 11 years ago

Ah, ok. I'll see if I can look into that as well.

cknadler commented 11 years ago

If you are going to give that bug a shot, the output is being done in src/mt_output.c. The output handler is a complete mess though...

dasmoose commented 11 years ago

Ok. Thanks for the heads up. :sailboat:

cknadler commented 11 years ago

Come to think of it, since the only thing throwing the tests off is a single endline, this isn't really a problem. You could get the tests to pass by running:

$ rcomp generate -O

This will overwrite the expected output of all of the current marktab tests. As long as you make sure that all of the tests are failing purely because of an extra newline at the end of the file, this should work just fine.