I'm totally behind Freddie; most of my projects have a simple Makefile for
assorted tasks and a Tupfile to build it. Anything outside of "take a
project in any incomplete state and bring it one final state" isn't really
intended to be done in tup, at least from my observations.

However, you /can/ specify targets for partial builds, by simply executing
`tup [target]...`, where target can be a file, directory, or group. This
will make sure that all files specified by target are built. Thus, you
could have all of your tests output to <test> to have a convenient target,
but since they'd depend on the final build, this wouldn't make much sense.

On Wed, Nov 30, 2016, 04:02 Freddie Chopin <[email protected]> wrote:

On Tue, 2016-11-29 at 10:46 -0800, Thomas Nilefalk wrote:
> I'm trying out tup on a part of a project of mine, starting with
> building the unitttests. My current build finishes the build by
> running the tests and outputtting the progress and results of them on
> the screen.
>
> How would one go about to do the same with tup? There seems to be two
> problems to me, the output is not a tty so pretty red/green output
> becomes just black and white, and that there seems to be no way to
> write a "target" to just run the unittests.
>
> Any suggestions?

I would personally suggest to use some other tool for that.

Tup is great as a _BUILD_ tool. Using it for other things (like running
unittests, doing just one selected "target") is just not worth the
trouble. You can easily wrap tup in a Makefile - doing the build with a
simple "tup" followed by an invocation of produced executables.

Regards,
FCh

--
--
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/d/optout.

-- 
-- 
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/d/optout.

Reply via email to