Commit Graph

21 Commits

Author SHA1 Message Date
apb 7291fc32b2 Add tests for "mtree -C -S" and "mtree -D -S"; convert previous tests
for "mtree -C" and "mtree -D" to expect the output to be in the same
order as the input.
2009-04-08 19:06:30 +00:00
apb 854eeab1fc Add tests for "mtree -C" and "mtree -D". Add "link" keyword to
previous mtree tests.
2009-04-07 19:28:40 +00:00
apb fc28b4ff36 Add tests for mtree. 2009-04-07 13:52:07 +00:00
jmmv fbaeb3b2ac Add the util tests developed as part of the atfify GSoC 2008 project.
Initial done work by Lukasz Strzygowsky and reorganization of files done
by me.
2009-02-13 05:19:51 +00:00
jmmv 454557d79e Adjust tests to work with the new API in ATF 0.6. 2009-01-19 07:15:46 +00:00
dholland c9db1d914b Add missing cases for the ! operator. Also add eval-variants of a couple
others, that had been missing, and correct a typo'd expected result.
2008-05-26 22:06:10 +00:00
dholland b135c75eab One more pair of cases; PR bin/17514 originally reported a difference in
nonexistent programs on $PATH and nonexistent programs with an absolute
pathname, so we ought to test both.

If anyone creates a program called nonexistent-program-on-path and
thereby breaks this test for themselves, they deserve it. ;-)

Also prune a no-longer-used shell variable.
2008-05-25 21:43:18 +00:00
dholland c89216e1ce Rework and expand the test cases with reference to standards and the open
PRs on this issue. There are now 68 cases in here, of which 30 fail. Sigh.
Related PRs: bin/17514, bin/29861, bin/32282, bin/37493, bin/38584.
2008-05-25 21:33:24 +00:00
dholland e53e59c2bc Fix this test up so (1) you can test a particular copy of sh rather than
being restricted to the #!/bin/sh used to run atf; (2) you can tell what
happened when it fails, since it does currently fail; (3) it runs all the
cases even when some of them don't work, and fails only at the end.
2008-05-25 19:25:03 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
ad 2ecdf58c2c Remove systrace. Ok core@. 2007-12-31 15:31:24 +00:00
jmmv 5166760e85 Re-add the NetBSD CVS Id tag to the header. It just had to be quoted to
be accepted by the parser; i.e. no bug in the code :-)

Note to self: do not try to "fix" stuff the last minute before going to
sleep.
2007-12-30 09:13:32 +00:00
jmmv 24b05c38e9 Back out the change to introduce the X-NetBSD-Id header entry. For some
reason the parser does not accept its contents...  You know, one should
always test even trivial changes!

Will review this in more depth tomorrow to find the real root cause of the
problem and rule out a fix for ATF.
2007-12-29 23:02:51 +00:00
jmmv 4178bab5b6 Add the NetBSD Id tag to the Atffiles. Issue raised by pooka@ a while ago. 2007-12-26 21:04:47 +00:00
riz 3f811928da Cast sf->f_bsize to int to force signed division. Fixes this test
on amd64, and probably other 64-bit platforms.
2007-12-03 18:49:24 +00:00
jmmv 80c834ed18 Explicitly define TESTSDIR, because the automatic deduction of its value
breaks the build if some component of NETBSDSRCDIR is a symlink.  Reported
by drochner@.
2007-11-21 15:39:33 +00:00
jmmv ed68a80f58 Remove the libfake hack, as it breaks the build in sun2 (which does not
support shared libraries).  Reported by he@.

This was an attempt to test the exact same id binary in the system but
using fake library calls to provide fictitious but stable user/group
entries.  Instead, build a helper id binary linked against our fake
functions.  This is what we already do in, e.g. the tests for util/df.
2007-11-19 14:17:45 +00:00
jmmv da0793de49 Recurse into 'id'. 2007-11-16 19:27:47 +00:00
jmmv 42112a274c Add tests for id(1), groups(1) and whoami(1). I'm basically doing this to
check for the command's syntax, but while doing so, I'm adding tests for
all (or almost) possible executions of these commands.

I'm not too happy with the "libfake" directory because there must be some
simpler way to do this, but it will do the trick for now hopefully.
2007-11-16 18:06:46 +00:00
jmmv 65926be28b Convert the regress/bin tests to the atf
This change converts all the existing regression tests in regress/bin to
the new framework provided by atf.  As a side effect, this also moves all
the tests programs in regress/bin to tests/util, as they all belong to
utilities installed by the base-util-root package.
2007-11-12 15:13:58 +00:00