Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Mar 2024 01:55:24 +0100 (CET)
From:      henrichhartzer@tuta.io
To:        Freebsd Stable <freebsd-stable@freebsd.org>
Subject:   Running tests for a single program in src/bin, src/usr.bin, etc
Message-ID:  <NsB5umy--3-9@tuta.io>

next in thread | raw e-mail | index | archive | help
Hi everyone,

Not sure if this is the best list for this. Maybe hackers@ would be better?

I wanted to tinker with utilities in /usr/src/bin and /usrsrc/usr.bin. I noticed that rmdir exits 1 for usage, which is a pet peeve of mine. I updated it to exit 2 and then wanted to alter the tests to ensure it's exiting 2.

At this point, I'm unsure of how to run tests for this single component. Is there a way I can be in /usr/src/bin/rmdir and just run a succesful `make test` (or equivalent) without some combination of `make install` + kyua out of /usr/tests? Seems like for self-contained tests, simple testing should be possible.

I did find `make check`, but I'm having issues with checkdir sticking around.

Thank you!

-Henrich



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NsB5umy--3-9>