Commit Graph

2116 Commits

Author SHA1 Message Date
martin
2d4c5dc1d5 If not __HAVE_ATOMIC64_OPS, do not force the test for 64bit types. 2014-10-11 17:46:58 +00:00
martin
069f2c5d29 Add a link time test to catch missing symbols in libc, as pointed
out in PR toolchain/49074.
2014-10-11 14:52:15 +00:00
apb
bc007038f7 Avoid literal <CR> in sed regular expression.
Instead, use printf(1) to save the regexp in a shell variable,
taking advantage of the fact that printf understands "\r".

This should fix a complaint from subversion, reported in PR 49249.
2014-10-09 06:52:37 +00:00
apb
4206688740 2013-07-09 was in British Summer TIme, so use tzoff=-60, not 0. 2014-10-08 17:23:03 +00:00
apb
5b0c63042a When tests fail, print all args, notjust the date string. 2014-10-08 17:21:40 +00:00
apb
4e0616873f Add tests for PR lib/47916. Some of these fail. 2014-10-08 13:26:47 +00:00
apb
cad616778a Adapt to a recent change in parsedate().
"9/10/69" still refers to 2069, and "9/10/70" still refers to 1970,
but "69-09-10" and "70-09-10" now refer to the years 69 and 70.
2014-10-07 22:33:52 +00:00
apb
cf077958e6 Add comments for some non-obvious cases.
Also add a test with year=70, which is documented to be treated as 1970.
2014-10-07 19:26:31 +00:00
apb
fc447ec4e5 Add local parsecheck() function and use it for several tests.
Instead of just checking that parsedate(3) does not return an error,
also pass the result through localtime_r(3) or gmtime_r(3) and check the
year/month/day/hour/minute/second fields in the resulting struct tm.
2014-10-07 19:20:28 +00:00
gson
660533ae91 In the exp2_values test case, provide separate expected return values
for the float case, reflecting the actual exp2f() argument value after
rounding to float precision.  Fixes PR lib/49256.  Thanks to Makoto
Kamada and Tetsuya Isaki for the analysis.
2014-10-07 16:53:44 +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
ozaki-r
80d9064ac0 t_tcpdump: skip bridges
tcpdump on a bridge definitely fails, so skip bridges
to make the test robust.

PR 49050
2014-09-20 06:08:07 +00:00
matt
6cf6fe02a9 New files for Userland support of UCB RISC-V (both 32-bit and 64-bit) 2014-09-19 17:36:24 +00:00
ozaki-r
5937935b47 Add net/if_bridge test 2014-09-18 15:13:27 +00:00
dholland
83a65169bb Visit the Bureau of Redundancy Department.
From Henning Petersen in PR 49191.
2014-09-11 18:25:30 +00:00
gson
76c3358a67 Mark v7fs_lstat_symlink as an expected failure, referencing PR kern/48864. 2014-09-09 06:51:00 +00:00
christos
3cfc969d61 add null and empty tests. 2014-09-08 19:01:03 +00:00
gson
dec58dec7c Add a test of symlinks with long targets. 2014-09-07 09:10:09 +00:00
matt
27620987b8 New files for OR1K support 2014-09-03 19:34:25 +00:00
matt
b0b2ad2060 The nop instruction on or1k is l.nop 2014-09-03 19:24:12 +00:00
gson
35cbd4f0ac The cond_timedwait_race test case is no longer expected to fail; it
has been consistently passing since CVS date 2014.01.31.19.22.00.
See also PR lib/44756.
2014-09-03 16:23:24 +00:00
gson
09436ed198 The t_ldp_regen test frequently fails under qemu, but reliably passes
on real hardware.  The failures are hardly surprising given that qemu
timing is off by a is off by a factor of two as reported in
PR kern/43997.  Disabling the test on qemu for now; it should be
re-enabled once 43997 has been fixed to see if it still fails then.
2014-09-01 06:38:35 +00:00
gson
56e22ea3cf On systems that have only 32M of memory, the stress_short and
stress_long tests thrash a lot, and the stress_long test sometimes
times out, so skip them if we don't have at least 64M.
2014-08-30 12:14:17 +00:00
gson
1beb02a6c3 Don't pass an uninitialized variable as the times[] argument of
rump_sys_utimes().  Instead, pass combinations of values representing
edge cases: the farthest possible past, the epoch, and the farthest
possible future.  Now the excessive runtime reported in PR bin/49144
occurs reliably, on multiple architectures, and not only with udf, but
also with msdosfs.
2014-08-29 17:39:18 +00:00
gson
3583bc35d3 The 4 second timeout of the invafd test case is not always enough when
running under qemu; increase it to 10 seconds.
2014-08-27 13:32:16 +00:00
joerg
6c18385369 Really revert to the original version. 2014-08-26 17:13:42 +00:00
joerg
497e202f2a Revert. There is no such thing as __HAVE_IFUNC and there should not be
one in first place.
2014-08-26 16:25:35 +00:00
christos
5a3404e066 effectively disable the test to fix the build and explain why. 2014-08-26 11:10:02 +00:00
joerg
7a1a6f1cf3 Add basic support for indirect functions. It allows providing a public
function symbol with an implementation choosen at run time.
Refactor calls to functions by address in ld.elf_so to create temporary
function descriptors on the stack, if the address is not leaked outside.

Limitations:
- no support for initialising static storage with function pointers
- no support for unnamed resolver functions

Inspired by FreeBSD's r228435 by kib@freebsd.org.
2014-08-25 20:40:52 +00:00
bouyer
18d9435662 Go back to the initial context (as tests/lib/libc/sys/t_swapcontext.c does)
after checking pthread_self() didn't change. Otherwise the process exits
outside of atf context.
Should fix "Test case exited normally but failed to create the results file: Results file is empty" reports from atf-run.
2014-08-25 16:31:15 +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
pooka
48fac693b7 Update hardcoded fd expectations now that rump kernels open 0/1/2.
(since we exec, it's convenient to just assume the values of first 4 fds)
2014-08-13 00:03:00 +00:00
gson
9f88f3f33c Mark udf_lookup_complex as an expected failure, referencing PR kern/49033.
Since it does not fail reliably, force it to fail to avoid spurious failure
reports due to unexpected success.
2014-08-12 12:13:09 +00:00
tls
ea6af427bd Merge tls-earlyentropy branch into HEAD. 2014-08-10 16:44:32 +00:00
martin
e204327425 Do not set HAVE_FENV for arm as long as it misses feenableexcept(). 2014-08-10 12:01:57 +00:00
martin
41f262a02f Use the same condition for HAVE_FENV 2014-08-10 11:30:51 +00:00
matt
547b3a3b01 Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only.  While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.
2014-08-10 05:56:36 +00:00
matt
beb9c6d1b5 Preliminary files for AARCH64 (64-bit ARM) support.
Enough for a distribution build.
2014-08-10 05:47:35 +00:00
gson
643acb6d0e Test that reading a CTLTYPE_INT sysctl variable into a buffer that is
too small returns ENOMEM, and that reading it into a buffer that is
large enough returns the expected sizeof(int) bytes of data.
2014-08-09 07:04:03 +00:00
gson
b6f40f55e0 Mark the udf_renamerace test case (but not udf_renamerace_dirs) as an
expected failure again, now with a reference to PR kern/49046.
Since the test only fails part of the time, force failure to
avoid failure reports reports due to unexpected success.
2014-07-29 09:15:48 +00:00
apb
91bc8fa990 Run scripts at build time via ${HOST_SH} 2014-07-27 14:24:17 +00:00
pgoyette
fa995b7822 Remove atf_tc_expect_fail() calls for udf file-system. These tests are
currently passing.  As discussed on current-users.  Any new failures
should be reported via send-pr.
2014-07-25 13:44:59 +00:00
martin
dbd2e87e49 PR kern/49033: try to provide better diagnostics if the udf_lookup_complex
test randomly fails.
2014-07-25 12:16:22 +00:00
christos
6030f04a15 amend the new destroy function to take function pointers. 2014-07-20 20:17:21 +00:00
christos
0579ed8b30 Add new minherit test. 2014-07-18 12:34:52 +00:00