On Thu, Jan 2, 2014 at 3:51 PM, thegreendroid <[email protected]>wrote:

> Hi Mike,
>
> I tried implementing your suggested solution but I am now running into an
> error -
>
> On Linux (with tup version 0.7-30-gfa1b078) -
>
> tup error: Unable to create command 'unittest' because the node already
> exists in the database as type 'generated file'
> tup error: Error parsing Tupfile line 11
>   Line was: ': foreach {TEST_EXES} |> %f |>'
>  [ ] 100%
>  *** tup: 1 job failed.
>
> Unfortunately tup puts both the command-strings and the filenames in the
same namespace in the database, so you have a file called 'unittest' and
are trying to create a command with the string 'unittest', so you get this
error. Ideally tup should support that, but I don't know if it is an easy
fix.

In Linux anyway it is unlikely these days that you have "." in your PATH,
so trying to run "unittest" won't actually run the test in the current
directory. You will probably want to have:

: foreach {TEST_EXES} |> ./%f |>

(Note: "./%f" instead of "%f")

This will make sure it is running the local unittest file rather than
something from the PATH, and also sidesteps the tup issue.


>
> On Windows (with tup version v0.7-33-g8981d64) -
>
> [ tup ] [0.052s] Executing Commands...
>
> * 11% 1) tests/obj/unittest.exe
>
> *** tup errors ***
>
> *** Command ID=9773 failed with return value -1073741515
>
> Unitttest is returning 0 if I run it manually so it is not failing.
>

I have no idea on this one - can you trim it down to a standalone test-case
you can post so I can try to reproduce it?


>
> Any ideas? Also, why is the Linux version older than the Windows one? I
> installed it through apt.
>
>
>
The Windows version on the website is generated automatically whenever I
push changes to the git repo. The Linux version from Anatol's apt
repository is only updated when a new tag is pushed (I believe).

-Mike

-- 
-- 
tup-users mailing list
email: [email protected]
unsubscribe: [email protected]
options: http://groups.google.com/group/tup-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"tup-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to