Commit Graph

75 Commits

Author SHA1 Message Date
christos 9fa2ffcc71 add 2 more tests, sort 2011-12-25 20:16:05 +00:00
cheusov 91dbf71977 Regression tests for awk(1) (PR 44063) 2011-11-22 20:22:09 +00:00
christos c7e2fd913b remove c3 and c4 2011-11-14 20:47:33 +00:00
christos c4bb320175 Add a test for PR/45613 (eval failing in a tested context) 2011-11-14 20:23:29 +00:00
njoly 07e6e433cf Fix lint unrelated "set but not used" warning, to unbreak test. 2011-10-05 21:30:50 +00:00
christos 4962000a12 Add new test. 2011-10-04 16:24:27 +00:00
gson 4d457a688d Track spacing changes of df.c 1.89 2011-08-29 17:31:41 +00:00
gson 364b5325bc Fix remaining misaligned columns in golden output, missed in previous commit 2011-08-29 04:55:58 +00:00
gson 61dd722e5c Golden output was not so golden after all 2011-08-28 19:09:34 +00:00
christos df4f0e8339 remove strpct copts 2011-08-28 09:39:44 +00:00
mbalmer c33b991f31 Fix build (strcpt fallout). 2011-08-28 09:02:51 +00:00
christos 7c3932bf25 document non-literal format strings 2011-08-17 16:57:13 +00:00
jmmv cb5d8fbf8d Fix definition of the plus_tflag test case. Uncovered by atf 0.14. 2011-06-15 07:58:03 +00:00
jmmv 9b4c1721f3 Instead of doing 'atf_check ... sh -c foo', just do 'atf_check ... -x foo'. 2011-05-14 17:42:28 +00:00
jruoho 0a02a67e57 Use the standard "PR foo/1234" notation such that the PR number is parsed
correctly for the atf(7) HTML reports.
2011-05-02 08:30:21 +00:00
alnsn d4a5682920 Add new files. 2011-04-30 11:24:14 +00:00
alnsn fc6d41fbf1 PR/42320 doesn't seem to be fixed, mark the failure as expected. 2011-04-30 01:10:07 +00:00
jmmv 6d06e772f7 Add test cases for PR bin/6764: 'trap ... 0' is supposed to execute the
command when the shell exits but it does not work in ksh when the shells
exits "implicitly" (without an explicit exit/return statement).

These new tests cover both sh and ksh.  The ksh part of this does not
strictly belong to this directory, but I think it'd be nice to extend
all the tests in here to cover both interpreters whenever that makes
sense, much like we do with the file system tests.
2011-04-29 12:49:36 +00:00
alnsn f94fb57534 Test for PR bin/42320. 2011-04-28 23:28:23 +00:00
njoly 53ff676914 Add require.progs properties for needed tools to avoid failures when
comp.tgz set is not installed.
2011-03-25 19:19:45 +00:00
uebayasi fd945b5131 Typo. 2011-02-13 12:47:27 +00:00
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