Commit Graph

127 Commits

Author SHA1 Message Date
christos 8684dbb301 PR/51875: Ngie Cooper: portability fixes 2017-01-14 20:43:52 +00:00
christos f0970fd0b2 mixerctl tests from Charlotte Koch 2017-01-02 15:40:09 +00:00
abhinav 6cddff1a99 Add tests for uniq(1) based on the example test cases provided in the POSIX man page.
Ok christos
2016-10-22 14:13:39 +00:00
christos eb8cf8dd65 house-cleaning 2016-08-28 15:59:15 +00:00
christos dd0e0080d2 adjust to current config format 2016-08-27 12:08:14 +00:00
christos 080051aa7f Add union cast test 2016-08-19 10:21:50 +00:00
christos fa75a57426 new test for struct that only has anon members, and that the size of struct
is computer right.
2016-08-18 14:45:56 +00:00
agc 83432fa6b8 remove some unused test cases 2016-06-01 14:52:56 +00:00
agc 6d27eeee35 Use human2atf to generate a t_netpgpverify.sh script which is half the
size of the previous one (using on-the-fly gzip compression), and includes
more cases (including a gpg-signed file for cross-testing purposes).

Add the appropriate Testspec file.
2016-06-01 06:39:11 +00:00
gson 5973801c0c Add regression tests for some past gdb bugs. 2016-04-08 10:09:16 +00:00
christos a34d3aeabd Add test for PR/49872 2016-04-05 00:48:53 +00:00
gson 43ed5fd66c Fix typo 2016-04-03 14:41:30 +00:00
christos 40c99df3a6 Add an anonymous struct test 2015-10-14 16:32:55 +00:00
uebayasi 8b6b28e153 Catch up with the current, generated Makefile format. 2015-10-04 07:59:47 +00:00
christos 862f3563b3 new test 2015-07-29 18:26:15 +00:00
christos 198668b6a8 new c99 init test found by xorg's Iconify.c 2015-07-28 18:05:19 +00:00
christos 6aa5718835 new test. 2015-07-01 15:36:44 +00:00
christos 2a8cfbd271 one t in literal. 2015-05-11 19:37:51 +00:00
christos 94ac2a41a2 add one more test 2015-05-11 17:21:32 +00:00
christos a2bce09441 add test for typename as a function param 2015-04-03 21:37:26 +00:00
martin dfdb00a60a Make the dummy data that we expect to go into .data section bigger,
otherwise on e.g. alpha it goes into the "small objects data" .sdata
section, which confuses the matching done in this test.
2015-02-17 11:51:04 +00:00
martin 5f67668838 Mark the failing tests as expected failure and point to PR toolchain/49085. 2015-01-27 12:57:14 +00:00
uebayasi 867e9b4f2b config(1): Fix test breakage
Now config(1) checks the content of $S/conf/Makefile.kern.inc.  Install it
into config(1) test directory to fix test.  Noticed by Martin Husemann.
2014-12-20 07:02:25 +00:00
agc 996632d6d1 Since the netpgpverify rewrite to have no external pre-requisites, the
output format for signatures has changed cosmetically (mainly
whitespace changes).  Re-format all the test cases so that the tests
now pass again with the new output format:

	Tests root: /usr/tests/usr.bin/netpgpverify

	t_netpgpverify (1/1): 2 test cases
	    netpgpverify_dsa: [0.261980s] Passed.
	    netpgpverify_rsa: [0.237469s] Passed.
	[0.509571s]

	Summary for 1 test programs:
	    2 passed test cases.
	    0 failed test cases.
	    0 expected failed test cases.
	    0 skipped test cases.
2014-11-23 01:56:35 +00:00
christos e45a1decc7 test for c99 flexible packed arrays 2014-11-20 21:18:47 +00:00
christos e9101a47cf Add one more test 2014-11-20 20:52:15 +00:00
uebayasi 2db56cefe0 Handle warning messages. 2014-11-20 09:02:00 +00:00
uebayasi b8860b296b Minor tweaks. 2014-11-16 04:47:18 +00:00
uebayasi 41543d65fd Test SORT() command. 2014-11-16 03:49:09 +00:00
uebayasi ef5efd2fc9 Tweaks. 2014-11-15 04:47:11 +00:00
uebayasi 03a2e2df43 Test object reordering by script. 2014-11-15 04:23:48 +00:00
uebayasi 551b230b22 Test object ordering. 2014-11-15 03:47:29 +00:00
uebayasi b57644333c Merge tests. 2014-11-15 03:22:29 +00:00
uebayasi e6ae210ca4 Tweak. 2014-11-15 03:10:01 +00:00
uebayasi 29c8a787f1 Tweak previous. 2014-11-14 16:29:03 +00:00
uebayasi e0d81d86b9 Test orphan ELF section placement. 2014-11-14 16:21:12 +00:00
uebayasi 1fc7d1e960 Fix thinko in previous. 2014-11-14 16:20:42 +00:00
uebayasi 90e9fce862 Test __start_xxx/__stop_xxx symbol generation. 2014-11-14 13:30:48 +00:00
uebayasi 3dcb1bdb52 Minimal linker script test. 2014-11-14 09:03:39 +00:00
uebayasi 76fdf39e44 config(1): Briefly test ioconf.c output 2014-10-31 09:11:42 +00:00
uebayasi c42523f496 config(1), config(5): Introduce "select"
o Introduce a new selection directive "select" to select an attribute (as a
  module) and its dependencies.
o Support "no select" too.
o Stop abusing "options" to select an attribute.
o Bump config(1) version.
2014-10-31 07:38:36 +00:00
uebayasi b9efa53115 config(1): Test undefined options behavior
- Test selecting an undefined options.
- Test negating an undefined options (failing).
- Fix typos in previous.
2014-10-31 04:54:17 +00:00
uebayasi c6cb06a0e3 config(1): Check minimal config(1) output files 2014-10-29 16:24:32 +00:00
christos b31841d3aa add a test for the bug I fixed yesterday, and explain the tests. 2014-09-26 15:27:12 +00:00
apb 8a8b2bfa2a Remove commented-out debug code that was accidentally committed yesterday. 2014-08-23 16:26:13 +00:00
christos 39d8f8959e not needed anymore. 2014-08-23 16:02:54 +00:00
christos be0d87e66b undo previous bogus merge of PR49085 2014-08-23 15:10:18 +00:00
christos defa6c58f6 PR/46096: Jarmo Jaakkola: fix many problems with dependencies (PR 49086)
Quite extensive rewrite of the Suff module.  Some ripple effects into
Parse and Targ modules too.

Dependency searches in general were made to honor explicit rules so
implicit and explicit sources are no longer applied on targets that
do not invoke a transformation rule.

Archive member dependency search was rewritten.  Explicit rules now
work properly and $(.TARGET) is set correctly.  POSIX semantics for
lib(member.o) and .s1.a rules are supported.

.SUFFIXES list maintenance was rewritten so that scanning of existing
rules works when suffixes are added and that clearing the suffix list
removes single suffix rules too.  Transformation rule nodes are now
mixed with regular nodes so they are available as regular targets too
if needed (especially after the known suffixes are cleared).

The .NULL target was documented in the manual page, especially to
warn against using it when a single suffix rule would work.
A deprecation warning was also added to the manual and make also
warns the user if it encounters .NULL.

Search for suffix rules no longer allows the explicit dependencies
to override the selected transformation rule.  A check is made in
the search that the transformation that would be tried does not
already exist in the chain.  This prevents getting stuck in an infinite
loop under specific circumstances.  Local variables are now set
before node's children are expanded so dynamic sources work in
multi-stage transformations.  Make_HandleUse() no longer expands
the added children for transformation nodes, preventing triple
expansion and allowing the Suff module to properly postpone their
expansion until proper values are set for the local variables.

Directory prefix is no longer removed from $(.PREFIX) if the target
is found via directory search.

The last rule defined is now used instead of the first one (POSIX
requirement) in case a rule is defined multiple times.  Everything
defined in the first instance is undone, but things added "globally"
are honored.  To implement this, each node tracks attribute bits
which have been set by special targets (global) instead of special
sources (local).  They also track dependencies that were added by
a rule with commands (local) instead of rule with no commands (global).

New attribute, OP_FROM_SYS_MK is introduced.  It is set on all targets
found in system makefiles so that they are not eligible to become
the main target.  We cannot just set OP_NOTMAIN because it is one of
the attributes inherited from transformation and .USE rules and would
make any eligible target that uses a built-in inference rule ineligible.

The $(.IMPSRC) local variable now works like in gmake: it is set to
the first prerequisite for explicit rules.  For implicit rules it
is still the implied source.

The manual page is improved regarding the fixed features.  Test cases
for the fixed problems are added.

Other improvements in the Suff module include:
  - better debug messages for transformation rule search (length of
    the chain is now visualized by indentation)
  - Suff structures are created, destroyed and moved around by a set
    of maintenance functions so their reference counts are easier
    to track (this also gets rid of a lot of code duplication)
  - some unreasonably long functions were split into smaller ones
  - many local variables had their names changed to describe their
    purpose instead of their type
2014-08-23 15:05:40 +00:00
christos 4da7383dde PR/49085: Jarmo Jaakkola: fix several parsing errors
Don't exit from var.c:Var_Parse() before possible modifiers are handled
on D and F modified versions of local variables.  Properly expand $(?D)
and $(?F) too.

Make line continuations in rule's commands POSIX compliant.

Fix the syntax error caused by lib(member) as the last target before
a dependency operator.

Document the line continuation change in the manual page.  Also talk
more about the POSIX style local variables and their modifiers.

Add tests covering the fixed problems into d_posix.mk.  The test is
a known failure at the moment because of PR 49086 and PR 49092.

[XXX: unconverted tests]
2014-08-23 14:50:24 +00:00
apb 6b933a652f Test make(1) by running the maintained tests, not unmaintained
copies of them.

* Remove all old tests from src/tests/usr.bin/make/d_*.  These tests
  were unmaintained old copies of the actual tests which are maintained
  under src/usr.bin/make/unit-tests.  One exception is the test in
  d_unmatchedvarparen.mk, which was new, but has nw been added to
  src/usr.bin/make/unit-tests/varmisc.mk.
* In src/tests/usr.bin/make/Makefile, copy all
  the tests from src/usr.bin/make/unit-tests to
  ${DESTDIR}/usr/tests/usr.bin/make/unit-tests.
* In src/tests/usr.bin/make/t_make.sh, run the tests installed above,
  instead of the old tests.
* In etc/mtree/NetBSD.dist.tests, create the
  usr/tests/usr.bin/make/unit-tests diectory.
* Update the set lists for all the above.
2014-08-22 16:45:32 +00:00