simon
aa2529c015
Add a test program which performs some very basic tests of libmp(3).
...
It is by no means expected to perform a complete test of the library
for correctness, but is meant to test the API to make sure libmp (or
libcrypto) updates don't totally break the library.
2006-07-28 16:00:59 +00:00
rwatson
8ccc47a963
Add a test case for closing a UDPv6 socket that has been connected to
...
the IPv6 loopback address.
Warns ?= 2.
2006-07-19 12:54:14 +00:00
rwatson
42d0cba86a
Add very basic regression test for netinet6: create and close raw,
...
UDP, and TCP IPv6 sockets.
2006-07-19 12:10:33 +00:00
marcel
f457417c4c
Add regression tests of the emulation of the long branch conditional form.
...
These tests can obviously only be run on Merced processors, as they don't
implement the long branch.
2006-07-17 00:27:12 +00:00
maxim
cb40ca01c8
o style.Makefile(5): WARNS= -> WARNS?=.
2006-07-09 11:51:14 +00:00
rwatson
f47cfe1f24
When extending a file with truncate, check that newly added bytes have
...
a value of 0 in the extended region.
Make sure that we get EINVAL back if we try to truncate a read-only
file descriptor.
2006-07-09 10:56:36 +00:00
rwatson
6d0cdb6a1e
Add regression tests to make sure that attempting to call ftruncate() on
...
various non-file objects fails.
2006-07-09 10:43:31 +00:00
rwatson
2d926cc233
Add very basic ftruncate() regression test, with a comment rather more
...
thorough than the tests regarding what should be tested.
2006-07-09 10:19:07 +00:00
pjd
62a0cf2a9c
Add regression tests for geli(8) authentication feature.
...
Supported by: Wheel Sp. z o.o. (http://www.wheel.pl )
2006-06-06 06:46:51 +00:00
pjd
7515e1241c
- Update regression tests after recent changes.
...
- Verify various sector sizes.
2006-06-06 06:44:19 +00:00
pjd
6cad615115
Add regression tests for IPsec.
2006-06-04 22:06:17 +00:00
maxim
d024980598
Output directory has gone, remove it from Makefile.
2006-05-31 11:22:15 +00:00
maxim
7215cab2bb
Fix test for empty interpreter.
2006-05-31 11:15:16 +00:00
maxim
c711743829
o Add various regression tests for execve(2) syscall.
...
Obtained from: NetBSD
2006-05-31 11:13:10 +00:00
maxim
cc936f1acc
o Let getopt(3) report errors in command line arguments.
...
o If something is wrong with options, then output short usage help message.
o Output errstr returned from strtonum(3).
PR: bin/98141
Submitted by: Andrey Simonenko
2006-05-31 08:10:34 +00:00
maxim
60db351ac4
o Add a collection of regression tests for ancillary (control)
...
data passing for unix domain sockets, stream and datagram.
There are 15 tests:
Test/Type of socket STREAM DGRAM
----------------------------------------------------------------------
Sending, receiving cmsgcred 1 6
Receiving sockcred (listening socket has LOCAL_CREDS) 2 n/a
Receiving sockcred (accepted socket has LOCAL_CREDS) 3 n/a
Receiving sockcred n/a 7
Sending cmsgcred, receiving sockcred 4 8
Sending, receiving timestamp 5 9
Sending, receiving cmsgcred (no control data) 10 13
Sending cmsgcred, receiving sockcred (no control data) 11 14
Sending, receiving timestamp (no control data) 12 15
Currently we pass 8 tests. All the rest marked as TODO.
PR: kern/90800
Submitted by: Andrey Simonenko
2006-05-29 18:40:55 +00:00
maxim
885f386276
o Test truncate(2) on fifo: it should ignore the request and
...
return success.
PR: kern/98064
Submitted by: Kirk Russell
2006-05-29 10:56:27 +00:00
rwatson
9d6028812e
Use WARNS and rely on rules rather than an explicit target for the
...
test binary.
Reported by: maxim
2006-05-25 10:46:43 +00:00
rwatson
967a0b7020
Add a basic regression test for sendfile() over TCP, which sends varying
...
lengths of headers and data and makes sure it receives about the right
number of bytes.
2006-05-25 09:50:14 +00:00
maxim
dca74a4f08
o Convert to Test::Harness testing infratructure.
2006-05-20 19:18:24 +00:00
maxim
a84ea57ca6
o A tiny regression test exposes bug in rip_disconnect().
2006-05-14 22:03:00 +00:00
bms
c850937c46
Add multicast group join/leave functionality to IPv4 regression
...
test suite.
2006-05-14 14:11:54 +00:00
pjd
88ec276caf
For some time now, -i and -P options are mutually exclusive, there's even
...
a regression test init-i-P.t which asserts this, but it looks I forgot to
update nokey.t regression test.
MFC after: 1 day
2006-05-01 09:12:52 +00:00
dwmalone
b6a2964430
Add some new options to mac_bsdestended. We can now match on:
...
subject: ranges of uid, ranges of gid, jail id
objects: ranges of uid, ranges of gid, filesystem,
object is suid, object is sgid, object matches subject uid/gid
object type
We can also negate individual conditions. The ruleset language is
a superset of the previous language, so old rules should continue
to work.
These changes require a change to the API between libugidfw and the
mac_bsdextended module. Add a version number, so we can tell if
we're running mismatched versions.
Update man pages to reflect changes, add extra test cases to
test_ugidfw.c and add a shell script that checks that the the
module seems to do what we expect.
Suggestions from: rwatson, trhodes
Reviewed by: trhodes
MFC after: 2 months
2006-04-23 17:06:18 +00:00
marcel
54e18e2978
MFp4:
...
o Add mount and umount actions so that partitions can be in use.
o Extend the testing of the add verb to include overlapping
partitions.
o Add tests for the remove verb. this includes tests to remove
a partition when in use (i.e. is mounted).
o Add a MD5 checksum to the output of the conf action so that
it can be tested. Make sure the MD5 doesn't vary based on
certain dynamic behaviour that is irrelevant to the output.
o Add MD5 checksums to the expected result of conf actions.
2006-04-10 04:13:44 +00:00
marcel
6e4595cb7b
MFp4:
...
Add support for read-write parameters. Allow an optional initializer
for read-write parameters. Print the value of those parameters on
success following the PASS.
2006-04-10 04:07:20 +00:00
rwatson
82e28c7b98
Add a simple regression test that creates and tears down route sockets,
...
and confirms that only SOCK_RAW works with socket(), and nothing works
with socketpair().
2006-04-09 14:48:38 +00:00
rwatson
22f4fba426
Add simple regression tests that creates UNIX domain sockets using
...
socket() and socketpair() of SOCK_STREAM and SOCK_DGRAM types. It
also confirms that SOCK_RAW fails.
2006-04-09 14:30:11 +00:00
stefanf
209025405d
Test that variable assignments preceding special built-ins affect the current
...
shell environment, eg after "VAR=val eval" VAR remains set. Currently fails
but will be implemented soon.
2006-04-09 09:38:29 +00:00
rwatson
57fde1acd9
Add a second pass to the close-before-accept test using a call to the
...
tcp drop sysctl. This should exercise the ECONNABORTED accept case.
2006-04-03 11:57:41 +00:00
rwatson
89f9606562
Add regression test for tcpdrop sysctl.
2006-04-03 11:34:36 +00:00
rwatson
f07835403d
Add a regression test to exercise the case where accept() is called and
...
the next waiting socket has had a close on the remote endpoint already.
2006-04-03 10:08:35 +00:00
stefanf
11fa827525
Add test cases that check utility syntax errors and redirection errors. For
...
special built-in utilities they must terminate the shell, for other
utilities only a error message shall be written. We currently fail both
tests.
2006-04-02 19:02:49 +00:00
rwatson
19f9c1efe4
When running the second part of the test, kill off the server process from
...
the first part before starting, or the TCP port we want to bind may be in
use still. Sleep for a short period between tests.
Use SIGTERM instead of SIGKILL.
2006-04-02 11:09:37 +00:00
rwatson
02d5fc2644
Pass the right pid into the parent and child tasks so that when a test
...
fails, we kill the right partner process.
2006-04-02 11:03:05 +00:00
rwatson
628ed75adb
Add makefile for tcpsocktimewait missed in previous commit.
2006-04-02 10:50:46 +00:00
rwatson
85222c8750
Add a short regression test that triggers a TCP socket to enter time wait
...
while the socket is still open; one variant closes the socket while in
time wait, and a second lets time wait expire while the socket is open.
2006-04-02 00:07:38 +00:00
rwatson
ddc54b9056
Add spxabort, a simple netipx/spx regression test that triggers
...
pru_abort() by closing a listen socket while completed connections are
presenting in its listen queue. Unfortunately, it's difficult to
trigger the other two pru_abort() cases using user APIs, so they are
not covered by this test.
2006-03-27 00:03:37 +00:00
rwatson
6e86a80ea8
Add simple regression test to ping pong a data packet over SPX in stream
...
mode. Support both connection via connect() and sendto(), but don't
compile in sendto() for now, since netipx doesn't appear to actually
implement that (doh).
2006-03-26 19:10:27 +00:00
rwatson
5d9ced7701
Add a simple IPX datagram regression test, which opens two IPX datagram
...
sockets, binds a local port, sends a datagram, and confirms that it is
received.
2006-03-26 18:25:53 +00:00
rwatson
deeedd413a
Add a short README with configuration hints to get the netipx regression
...
tests up and running. This is likely a message to myself in six months
when I've completely forgotten how.
2006-03-26 17:42:04 +00:00
rwatson
73eedc13f0
Modify ipxsocket regression test to create and close sockets several
...
times, with variable length sleeps between socket() and close(). This
will help to ensure that IPX/SPX timers fire while the sockets are
open, and hence have PCB's on the IPX pcb list, so that if timers are
going to stumble over PCB types they don't expect, it will happen as
part of this test.
2006-03-26 15:49:35 +00:00
rwatson
72eb76f920
Add simple ipxsocket regression test: open, and close, various IPX socket
...
types supported by the FreeBSD netipx implementation.
2006-03-26 01:58:39 +00:00
rwatson
65c4a2a9dc
Merge Perforce change 93572 from TrustedBSD audit3 branch:
...
Simple audit pipe ioctl regression test.
Obtained from: TrustedBSD Project
2006-03-19 15:47:53 +00:00
rwatson
cbcf9b2ad9
Change s_net to s_node when printing the destination address.
2006-03-17 20:14:25 +00:00
ru
38ea5a1166
NO_MAN is not needed here.
2006-03-16 15:18:17 +00:00
ru
30cc3ea988
Style: NO_MAN doesn't need any value.
2006-03-15 10:46:38 +00:00
ume
940db6a9cd
NOMAN --> NO_MAN
2006-03-07 14:26:17 +00:00
pjd
24e4deddbc
Add regression test which verifies that options -P and -i cannot be used
...
together.
MFC after: 3 days
2006-02-12 02:07:56 +00:00
pjd
41ffd5b92b
Add regression tests which will verify that giving no key components for
...
init/attach/setkey subcommands is really impossible.
MFC after: 3 days
2006-02-01 15:17:45 +00:00