Commit Graph

14873 Commits

Author SHA1 Message Date
njoly 71f142f40a +librumpnet_vlan.so.0.0.debug 2016-11-26 11:36:38 +00:00
ozaki-r 6d9a9bf113 Add basic tests for vlan(4) 2016-11-26 03:19:48 +00:00
ozaki-r 6adeabf576 Rumpify vlan(4) 2016-11-26 03:17:58 +00:00
kre eb5267fa9a Added TZ zone files Europe/Saratov and Asia/Aqtau for tzdata2016j 2016-11-24 05:47:33 +00:00
snj 4d48760d83 for some reason that is currently eluding me, non-MKUPDATE builds
fail while trying to delete xkeyboard-config.7.  remove for now.  you
didn't have this man page before and you probably didn't care.
2016-11-23 09:50:52 +00:00
snj 7e075c29bc update for xkeyboard-config 2.19 2016-11-22 19:51:37 +00:00
kamil 7b8609d5c0 Document td_map_pth2thr(3) from libpthread_dbg(3)
td_map_pth2thr - convert the pthread_t to a thread handle

Sponsored by <The NetBSD Foundation>
2016-11-22 03:52:01 +00:00
kamil 2d6a6aff1c Document td_thr_getname(3) from libpthread_dbg(3)
td_thr_getname - get the user-assigned name of a thread

Sponsored by <The NetBSD Foundation>
2016-11-22 01:49:36 +00:00
kamil 2e8fabe0b7 Document td_thr_iter(3) from libpthread_dbg(3)
td_thr_iter - iterate over the threads in the process

Sponsored by <The NetBSD Foundation>
2016-11-22 00:07:40 +00:00
kamil 7332bc9351 Document td_thr_info(3) from libpthread_dbg(3)
td_thr_info - get information on a thread

Currently a subset of td_thread_info_t is documented. This version
describes thread_addr and thread_state.

Sponsored by <The NetBSD Foundation>
2016-11-21 22:19:03 +00:00
kamil ba06ccfe95 Add initial documentation (man-pages) for libpthread_dbg
Document libpthread_dbg and basic function calls: td_open() and td_close()

Sponsored by <The NetBSD Foundation>
2016-11-21 20:43:25 +00:00
macallan 91eaa6ded9 add driver for Permedia 3 based graphics devices
from Naruaki Etomi, via PR 49518
2016-11-20 16:55:18 +00:00
pho 0e4f248f77 fuse_lowlevel.h: new file, currently only contains fuse_parse_cmdline(3) and struct fuse_cmdline_opts 2016-11-20 13:26:28 +00:00
kamil 0a225098cc Add new test file lib/libpthread_dbg/t_threads
This test contains threads1 test that:
    Asserts that td_thr_iter() call without extra logic works

This tests fails and is linked with gnats:
PR lib/51635: td_thr_iter in <pthread_dbg.h> seems broken

Sponsored by <The NetBSD Foundation>
2016-11-18 22:50:19 +00:00
kamil 8fce8aab12 Add new test-suite t_dummy for libpthread_dbg
At the moment this test does nothing except reports failure from td_open()
for overloaded (implemented) dummy1_proc_lookup() (.proc_lookup from
td_proc_callbacks_t) of the following form:

static int
dummy1_proc_lookup(void *arg, const char *sym, caddr_t *addr)
{
        return TD_ERR_ERR;
}

This file and directory with tests is placeholder for new ones, without
further need to alter mtree and distribution sets.

The libpthread_dbg interface and library is used by gdb(1) to handle
threads in applications.

Sponsored by <The NetBSD Foundation>
2016-11-16 21:36:22 +00:00
pgoyette e55d90d8db Update sets lists for new bufq_* modules 2016-11-16 00:50:12 +00:00
skrll 880c0915ea Fix librefuse falout.... Hi pho 2016-11-15 12:59:33 +00:00
joerg 23b4e7f4cd Give the ramdisk a bit more space, evbppc64 for clang is running out. 2016-11-13 22:14:44 +00:00
njoly 2904b2098c New clock_nanosleep(2) testcase. 2016-11-11 15:30:44 +00:00
alnsn 0fb91146db Add 3des-cbc tests with 192 bits key. 2016-11-11 07:39:58 +00:00
alnsn 34c9574779 Add t_cgd_blowfish. 2016-11-10 23:47:23 +00:00
alnsn b0f6fce42a Add blowfish-cbc tests for 128, 256 and 448 bits keys. 2016-11-10 23:44:36 +00:00
rin 1626404a42 Add myself 2016-11-09 08:18:56 +00:00
kamil 5cc56ca0a8 Add new tests for combination of wait(2) interfaces with ptrace(2)
Move out wait(2) specific tests from t_ptrace and put them to t_ptrace_wait

Add generic code fragments to reuse the same source-code for every member
of the wait(2) family, namely:
 - wait(2)
 - waitpid(2)
 - waitid(2)
 - wait3(2)
 - wait4(2)
 - wait6(2)

Currently in the new test-suite there are the following tests:
 - traceme1
 - traceme2
 - traceme3
 - traceme4
 - attach1

Not all tests are possible to be executed against every wait(2)-like
interface, therefore they will be disabled in such case. Currently this
limits attach1 to waitpid(2), waitid(2), wait4(2), wait6(2), while the
other tests (traceme 1-4) run with all of the interfaces.

The construct of this file is dedicated for addition of new tests in the
close future.

As of now all of the tests pass correctly.

Thanks for Robert Elz for suggestions on improving the code (earlier draft
of this new form).

Sponsored by <The NetBSD Foundation>.
2016-11-07 21:09:03 +00:00
ozaki-r 4df1f132c4 Add basic tests for IPv6 Path MTU Discovery 2016-11-07 00:54:48 +00:00
alnsn ef871053fc Add "crypto" category to t_cgd_aes. 2016-11-06 17:09:19 +00:00
alnsn 86ce2fcbb2 Debug file for t_cgd_aes. 2016-11-06 17:07:50 +00:00
kamil 2945e8c443 Add new tests: tests/lib/libc/sys/t_wait_noproc and t_wait_noproc_wnohang
The t_wait_noproc test checks whether wait(2)-family of functions return
error and set ECHILD for lack of childs.

The t_wait_noproc_wnohang adds to options (except wait(2), wait3(2)) new
parameter WNOHANG and verifies that error is still signaled and errno set
to ECHILD.

Currently t_wait_noproc_wnohang reports failures, these have been marked as
expected and referenced to PR standards/51606.

The problem report is authored by Robert Elz, and the initial regression
has been notified by Nicolas Joly.

Remove redundant test in tests/lib/libc/sys/t_wait for wait6(2) with no
WNOHANG specified.

Sponsored by <The NetBSD Foundation>.
2016-11-06 15:03:30 +00:00
alnsn 838eb24361 Add tests for not-yet-committed cgd algorithm AES-XTS.
The tests are marked as expected failures.
2016-11-06 10:54:42 +00:00
kre ce6897c67c New zoneinfo file for Asia/Famagusta (north Cyprus) from tzdata2016i 2016-11-03 10:00:11 +00:00
kamil 46910e0e26 Add new test t_ptrace with traceme1
This test is a placeholder for further checks of the native ptrace(2)
function calls.

XXX: Is it safe to call ATF functions from a child? FreeBSD seems to
     construct dedicated asserts for them.

XXX: printf(3) calls from a child are not intercepted by atf-run(1)

Sponsored by <The NetBSD Foundation>.
2016-11-02 12:51:22 +00:00
pgoyette a396e9b233 Update sets lists for new ptrace{,_common} modules 2016-11-02 00:12:41 +00:00
christos 1b213f3d03 fix libiberty_g.a 2016-11-01 19:21:17 +00:00
skrll 0d033f4194 Obsolete gcc files 2016-11-01 14:45:25 +00:00
christos 84f3f387af bump binutils libraries 2016-11-01 14:04:48 +00:00
skrll e0370c2ad8 Fix linker script entries for arch64 mips 2016-10-31 20:22:35 +00:00
skrll 424aa5458d Mark linker scripts with binutils 2016-10-31 20:16:48 +00:00
skrll 1a24f78652 sort (sort of) 2016-10-31 20:14:08 +00:00
ozaki-r cd4a5f447b Add tests for ping6 options
- -S <sourceaddr>
- -I <interface>
- -g <gateway>
2016-10-31 10:38:25 +00:00
kamil 53e134ea9e Add new test t_timedmutex
This test is a clone on t_mutex with additional two tests for timed-mutex
specific block.

All simple-mutex (not with the timed property according to the C11 wording)
specific tests are covered by pthread_mutex_timedlock(3) with parameter
ts_lengthy of sufficiently large tv_sec value (right now UINT16_MAX). If,
a test will hang, it won't wait UINT16_MAX seconds, but will be terminated
within the default timeout for ATF tests (right now 300 [sec] in my
NetBSD/amd64 setup).

This test was inspired by a classic selflock test failure of
pthread_mutex_timedlock(3) of the following form:

#include <assert.h>
#include <errno.h>
#include <pthread.h>
#include <stdio.h>
#include <time.h>

int main(int argc, char **argv)
{
	pthread_mutex_t mtx;
        struct timespec ts;

        ts.tv_sec = 0;
        ts.tv_nsec = 1000;
        printf("ts{.tv_sec = %d, .tv_nsec=%ld}\n", ts.tv_sec, ts.tv_nsec);
        fflush(stdout);

        printf("mtx_init\n");
	assert(pthread_mutex_init(&mtx, NULL) == 0);

        printf("mtx_lock\n");
	assert(pthread_mutex_lock(&mtx) == 0);

        printf("mtx_timedlock\n");
	assert(pthread_mutex_timedlock(&mtx, &ts) == ETIMEDOUT);

        printf("mtx_unlock\n");
	assert(pthread_mutex_unlock(&mtx) == 0);

	printf("mtx_destroy\n");
        assert(pthread_mutex_destroy(&mtx) == 0);

	return 0;
}

Current NetBSD implementation wrongly hangs on this test.

The issue was detected during development of the C11 portable threads.

My local tests in chroot presents that the are further issues:

t_timedmutex (21/25): 10 test cases
    mutex1: [0.001142s] Failed: /usr/src/tests/lib/libpthread/t_timedmutex.c:75: *param != 20
    mutex2: [0.261499s] Passed.
    mutex3: [0.261496s] Passed.
    mutex4: [0.001204s] Failed: /usr/src/tests/lib/libpthread/t_timedmutex.c:265: pthread_mutex_timedlock(&mutex, &ts_lengthy): Connection timed out
    mutex5: [0.001235s] Failed: /usr/src/tests/lib/libpthread/t_timedmutex.c:337: pthread_mutex_timedlock(&mutex5, &ts_lengthy): Connection timed out
    mutex6: [21.218497s] Failed: /usr/src/tests/lib/libpthread/t_timedmutex.c:512: start != 1
    mutexattr1: [0.001328s] Passed.
    mutexattr2: [0.001175s] Passed.
    timedmutex1: [301.119397s] Failed: Test case timed out after 300 seconds
    timedmutex2: [301.123081s] Failed: Test case timed out after 300 seconds
[623.990659s]

I'm also receiveing the same failure in the mutex6 test in t_mutex, so
there might be a false positives due to local chroot(8) issues.

Commit approved by <christos>.
2016-10-30 16:17:16 +00:00
kamil 9a33a81286 Fix generation of distribution with MKCATPAGES=yes
There are 50+ files from recent OpenSSL that are missing in the .cat set.

Add missing entries to appropriate lists.
2016-10-29 17:12:20 +00:00
mlelstv 867d0d62f8 tag debug libraries with 'debuglib' instead of 'debug'. Fixes mips builds. 2016-10-29 10:56:57 +00:00
christos 6ab470b02d everyone is now on binutils-2.26 or more 2016-10-26 21:24:20 +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
macallan 9c898787bb add libc_fp stuff 2016-10-20 19:22:35 +00:00
skrll f2ef31cb48 PR kern/51514: ptrace(2) fails for 32-bit process on 64-bit kernel
Updated from the original patch in the PR by me.
2016-10-19 09:44:00 +00:00
mrg 94cfe7b367 revert the previous - those are only relevant for 64 bit builds and
are listed in ad.mips with arch64 tag.  fixes emips builds.
2016-10-18 20:44:59 +00:00
christos 6fd3d22580 try to fix copy-pasto 2016-10-18 12:56:11 +00:00
christos 93f4a9e00c add libc_fp 2016-10-18 12:51:05 +00:00
mrg f8dd93e519 libc_fp is arch64 only. 2016-10-18 06:40:06 +00:00