Commit Graph

98 Commits

Author SHA1 Message Date
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
joerg
af32f2a15b Annotate dependencies. 2014-04-30 21:04:21 +00:00
christos
ae43465b77 disable the extension test for now. 2014-04-21 19:10:41 +00:00
christos
084b9a8547 use a different function instead of __builtin_isnan, because it is polymorphic
and we don't handle this yet.
2014-04-21 19:09:52 +00:00
christos
fc07744d1d add more tests 2014-04-17 18:34:44 +00:00
joerg
d9eddbbe61 Pass the correct buffer size. 2014-02-06 14:57:16 +00:00
njoly
a935b103a7 Handle another declaration after statement case for lint in c99 mode.
Add the corresponding testcase.
2014-02-04 08:08:59 +00:00
gson
26125ae798 Add some minimal tests of vmstat(1), to serve as regression tests
for PR bin/44518.
2014-01-07 16:47:13 +00:00
dholland
eac2170da1 Add some cases pertaining to another bug I just fixed. 2013-08-11 01:50:02 +00:00
dholland
88d97c8162 Remove xfail for PR 48113. 2013-08-11 00:29:21 +00:00
dholland
36890ffbb0 Add tests for tr, including an xfail one for PR 48113. 2013-08-10 22:36:16 +00:00
christos
fa3151c9b2 adjust for make(1) printing the nesting level. 2013-07-24 14:03:22 +00:00
christos
863b4f4307 PR/47825: Garrett Cooper: Fix hardcoding of NetBSD in t_grep.sh 2013-05-17 15:39:17 +00:00
christos
19e338409a don't run with -n if you expect protocol translation from number to name. 2013-04-07 19:14:03 +00:00
jmmv
d477a9c19e Prevent the sed command in c2048 from getting stuck.
Provide some unused input to the sed command in the c2048 test to prevent
the test from getting stuck waiting for input from stdin that will never
arrive.

I don't know why I'm hitting this now (might be a difference between atf-run
and kyua), but this is a bug in the test.
2013-03-14 06:03:44 +00:00
joerg
94bcefa490 Check for RUMP programs before using them. 2013-02-19 21:08:24 +00:00
christos
97efc101e5 add a test case for PR/47306 2012-12-10 20:30:06 +00:00
agc
5f7e73a0dd Remove the Atffile, which should not have been added in the first place.
With thanks to Herbert J. Skuhra and Paul Goyette
2012-12-02 20:27:10 +00:00
agc
d9b9fb0ba9 descend into netpgpverify test directory too 2012-11-20 08:02:06 +00:00
agc
72d743a692 Add tests for netpgpverify. 2012-11-20 07:55:52 +00:00
njoly
60dc3e4d2e Add a small testcase for PR/47068. 2012-10-15 17:49:58 +00:00
joerg
4edfbdbb40 Simplify the BDZ compression function, making it smaller at the same
time. Fixes a bug where non-minimal hash functions could be created.
Add regression tests for BDZ, including the map output functionality.
2012-09-25 20:53:46 +00:00
jmmv
cdcce7d462 Add a new "-P prefix" option to mkdep(1).
This option prepends the string given in prefix to every target
filename.  This is useful for programs that have source files in
multiple subdirectories and a single Makefile that references all of
them explicitly (without using the VPATH functionality because there
can be files with the same name in each subdirectory).
2012-08-26 22:37:19 +00:00
joerg
23fe3eb28c Add basic regression test for nbperf(1) 2012-07-22 20:38:20 +00:00
martin
8f3c15e2f4 Add a test case that (if gcc supports it on the current arch) to compile
a PIE binary and see if we can run it.
2012-07-21 12:30:55 +00:00
martin
c1004a7836 Add a basic test for infocmp - this would have cought todays terminfo
lossage (PR lib/46553).
2012-06-06 21:23:10 +00:00
jruoho
959e675b20 Make the test pass. It appears that this however does not reproduce the
PR kern/46463, even though the command is exactly the same.
2012-05-19 07:30:37 +00:00
jruoho
af62c3b4d8 Add a test case for PR kern/46463. From Richard Hansen. 2012-05-18 15:25:25 +00:00
wiz
4739fc03e4 Adapt to repository move of dist from external/bsd/bzip2 to
external/bsd/bzip2/dist.
2012-05-07 08:51:47 +00:00
wiz
3815d29a7f Finish move of bzip2 from dist/bzip2 to external/bsd/bzip2. 2012-05-07 00:35:25 +00:00