Commit Graph

54 Commits

Author SHA1 Message Date
pgoyette 97fdaa0a16 The unmatchedvarparens test actually generates a blank link as output,
so make sure we have a matching blank line in the "golden" output match
file.
2011-01-02 04:41:24 +00:00
pgoyette 1ee3be1187 Correct a typo that creept in 4 weeks ago. This removes the 1 "Bogus Test"
currently being reported.
2010-12-31 14:55:07 +00:00
pooka 603f53f8f8 fix the kflag_limits test case and enable it 2010-12-18 12:47:21 +00:00
pooka 7dec306c60 In the seek test also check that files end up with expected size. 2010-12-06 16:43:26 +00:00
pooka 49e8823e2c test for 'dd seek=' (could be improved, but at least we have something now) 2010-12-06 15:54:00 +00:00
christos bb46e8373d Add a new test for the latest variable expansion problem.
- Cannot test because make test prints:
  .: Can't open /usr/share/atf/atf.header.subr
- The shell script common code needs to be fixed to follow regular shell
  style.
  - variables are underquoted
  - uses `` instead of $()
  - does not use local for local variables, prefixes with undescore
  - needlessly uses braces for numeric and symbolic variables.
  - uses a fifo to grab output, and does not clean it up properly on error
  - should not exit with > 127 !!!
2010-12-03 01:29:55 +00:00
christos e285c9c3f2 since the fix was reverted, revert the test. 2010-11-17 13:41:52 +00:00
christos cbd46215a7 Fixed test that was expected to fail. 2010-11-16 18:25:03 +00:00
jmmv decf2b5e0f Adjusts tests after import of atf-0.12:
- The use.fs property is gone.
- Mark the tests/fs/t_create:attrs test as broken when using the default
  unprivileged-user:_atf setting.  This probably deserves a fix somehow
  but I'm not sure at this point.
2010-11-07 17:51:16 +00:00
christos 0f10aa9dce add Makefile.inc everywhere so that we can set WARNS=4 by default. Amazing
how many bugs this found :-)
2010-11-03 16:10:19 +00:00
njoly a62c9cdf52 Add '-n' option to h_df helper tool to avoid picking wrong values if
the tested system has a similar mounted file system. Solve PR/43871.
2010-10-29 14:43:10 +00:00
jmmv 2597405114 Merge the sort tests from regress/ into the existing atfified sort tests.
While doing this put the sort tests into a separate directory to follow
the convention of tests/util/.
2010-08-01 16:42:58 +00:00
jmmv e1c433700e Refactor this test program: make test cases more granular, use atf_check
to validate the execution of sort(1) and do not bother removing temporary
files.

This is in preparation to merge the tests for sort(1) that still live in
regress/usr.bin/sort/stests.
2010-07-18 22:58:14 +00:00
jmmv 7ce6f390a2 Convert the lint1 tests to atf.
Initial work from the GSoC 2008 project by Lukasz Strzygowski.
2010-07-18 10:11:00 +00:00
jmmv 9d0b4b5bb8 Get rid of static Atffiles and let bsd.test.mk generate them on the fly. 2010-07-13 21:13:21 +00:00
jmmv 2c43c89bca Do not use awk to generate the test program. Instead, replace it with some
eval magic (which is less magic than the previous awk stuff).
2010-07-10 16:16:12 +00:00
jmmv f6debdb0e0 Add xfail test case for PR bin/43597 that I just submitted. 2010-07-10 15:57:37 +00:00
jmmv 7562f3f929 Replace custom xfail settings with the new expected failure support in
atf 0.10.
2010-07-03 08:18:30 +00:00
pooka a17a919421 Set xfail for tests which have a PR for them. 2010-06-16 15:39:41 +00:00
pooka 08fa5b6e7e annotate failing testcase with PR number 2010-06-14 16:12:41 +00:00
pooka 8e2bcc78c9 fix diagnostic output 2010-06-12 13:15:54 +00:00
pooka 7971a93d6c Make the test work on an installation without sharesrc. 2010-06-12 13:15:01 +00:00
pooka 181ba286cb Make tests operate in environments without /usr/share/dict/words,
such as the one used by "anita test".

This has also the added benefit of decoupling the tests from whataver
is in "words", should that file ever be updated.
2010-06-10 23:49:48 +00:00
pooka b3d299c410 Catch up with whitespace changes in df.c rev 1.79 from over 2 years ago! 2010-06-10 15:44:44 +00:00
dholland 319ed136d2 Document the changes in the previous version of this file. If we're
going to whitewash the test failures, we should at least keep track of
what the "real" correct behavior/output is. Especially since a large
portion of the tests in here were added specifically to illuminate
points at issue in prior discussions.
2010-06-06 04:51:13 +00:00
dholland b324463ca0 Add a very basic test and some tests for the problem in PR 43358.
XXX: the sort tests in src/regress should be folded into this
2010-06-05 22:38:39 +00:00
jmmv 6b84fb92ac atf-0.9 introduces an use.fs test-case property to allow tests to write to
their work directory.  The purpose is to be able to know which tests intend
to touch the file system and to allow a minor optimization in atf-run.

Define use.fs=true for all those tests requiring it.  (This highlights that
some tests currently require modifying the file system but conceptually
they shouldn't be... which leaves room for further improvements/cleanups
later :-)
2010-06-04 08:39:40 +00:00
christos f501e758b3 Pass all the set -e tests. 2010-06-03 16:06:19 +00:00
jmmv 9eb1b1099f Migrate three sh test cases from regress to tests. 2009-10-20 21:58:35 +00:00
jmmv ddfcde04ad Add test cases for "prefix $@ suffix" expansion. From PR bin/33956.
This issue was fixed a while ago but the tests described in the report
were never written as proper test cases.
2009-10-14 13:02:03 +00:00
apb 7f9c54c774 Correct list of d_merge* files. 2009-09-19 21:49:50 +00:00
apb 3ce38cde2b Adjust tests to no longer expect a trailing space in each line
of output from "mtree -C".
2009-09-19 21:42:26 +00:00
apb 2eaeff02ed Add tests for the "mtree -M" issue reported in PR 42031 from Geoff Wing. 2009-09-19 20:37:05 +00:00
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