Commit Graph

1754 Commits

Author SHA1 Message Date
jmmv 58ac8c454c Run tests in kyua-atf-compat if MKKYUA!=no. 2013-02-25 00:33:19 +00:00
jmmv 5b7eb38d00 Stop assuming that test programs and directories are the same thing during
Atffile generation.

This is needed to be able to generate Kyuafiles (coming later), as these
clearly differentiate between the definition of test programs and the
recursion into other subdirectories (or files).

In particular: rename ATFFILE_EXTRA_TPS to ATFFILE_EXTRA_SUBDIRS and
change the logic in bsd.test.mk to keep track of subdirectories aside from
_TESTS when creating the Atffile.
2013-02-23 21:20:14 +00:00
jmmv 9f60280349 Register kyua-cli into the Atffile when MKKYUA!=no. 2013-02-23 14:22:24 +00:00
pgoyette d5bb255f0c Fix the error message handling. Thanks to Christos for noticing. 2013-02-20 02:22:48 +00:00
pgoyette ab7a59749e Replace printf() in child process with a simple write(STDERR_FILNO,...)
Thanks, Joerg.
2013-02-19 22:44:27 +00:00
joerg 94bcefa490 Check for RUMP programs before using them. 2013-02-19 21:08:24 +00:00
jmmv e06d860d40 Auto-generate the top-level Atffile.
This fixes a problem in MKKYUA=no builds in which the kyua-testers
subdirectory in /usr/tests was created unconditionally and atf-run was
confused because such subdirectory didn't have an Atffile of its own.
(Due to the way our directory creation and file lists work, I'm not
sure it's possible to just not "install" the empty directory.  But
that'd be an alternative to this.)

Auto-generating the Atffile causes it to only list the subdirectories
listed by the Makefile, which can vary depending on various MK* options.

Problem found by martin@.
2013-02-19 15:30:07 +00:00
pgoyette a3217a378f Rather than just sleeping and hoping that all the sub-processes are
ready to be ptrace()d, use a positive barrier.
2013-02-19 04:58:40 +00:00
pgoyette 7dec801027 White-space in for(...) loops.
Use #define instead of static variables to define test parameters.
No functional change.
2013-02-19 04:46:46 +00:00
pgoyette 593938d6da Create a variable for max number of passes to make. While we're here,
reduce the pass-count from 100 to 50;  this is more than enough to prove
that the test is working, and helps reduce the ever-increasing time it's
taking to run the entire test suite.
2013-02-19 03:22:54 +00:00
pgoyette 2fde625529 Wait a little bit after fork()ing the lockers to give them a chance to
get started before trying to ptrace(ATTACH).  Otherwise, the traced
process doesn't seem to resume properly upon ptrace(DETACH) and on the
next pass the ptrace(ATTACH) just hangs forever, causing the test to
time-out.

XXX The failure-to-resume-properly might actually be a kernel bug that
we need to follow up on.  But for now, let's make the test work as
intended.
2013-02-19 00:54:47 +00:00
pgoyette 706bd0b309 Check that we did get EDEADLK error, and fail immediately if we did not. 2013-02-18 20:59:19 +00:00
jmmv 7d3a48f1d2 Hook Lutok into the build. This is all protected by the MKKYUA guard. 2013-02-16 21:40:05 +00:00
jmmv 8f212f1945 Move tests for examples from tests/examples to tests/share/examples.
This is to match the layout of the installed and source files more closely.
While doing this, honor the MKSHARE variable, as the files these tests
validate are only installed when MKSHARE=yes.
2013-02-16 12:44:25 +00:00
christos d2ff78394b don't brk the build. 2013-02-15 23:56:32 +00:00
christos 9bb501f7a5 look at my index finger 2013-02-15 23:27:19 +00:00
christos 81516a9702 - check the results of the vis functions
- zero output to make sure things work
- don't use encodings that don't work
- fix the style on decoding
2013-02-13 04:51:56 +00:00
christos e40152f801 check the results of encoding and decoding 2013-02-11 04:12:48 +00:00
hannken 2242432b52 Test taking a snapshot from a stressed file system.
Checks snapshot meta data only with fsck.

OK: Antti Kantee <pooka@netbsd.org>
2013-02-06 09:05:01 +00:00
christos bd77daa189 ignore directory sizes 2013-02-05 16:49:42 +00:00
mbalmer c826b564cf exitting -> exiting. 2013-01-27 14:47:37 +00:00
christos 1f1bab53b7 rename the only use of HAS_SSP in the tree to HAVE_SSP. 2013-01-27 02:32:39 +00:00
christos f564ab2a22 Don't include bsd.sys.mk; like sys.mk it is supposed to be used only
internally.
2013-01-26 21:58:41 +00:00
dholland 76ad4067c2 spelling 2013-01-22 06:24:11 +00:00
apb a39eba5e76 Test parsedate("@-2",...) (should return -2 and not set errno);
and parsedate("@junk",...) (should return -1 and set errno).
We were already testing "@-1".
2013-01-19 15:21:43 +00:00
apb 58e1304b9b * Test that parsedate("@0", ...) returns (time_t)0 regardless of timezone.
* Test that parsedate("@-1", NULL, NULL) returns (time_t)-1
  without setting errno.
2013-01-19 14:03:08 +00:00
pooka ef30804ef1 Use TESTS_SUBDIRS instead of SUBDIR to make these actually run.
Also, fixes build with /usr/xpg4/bin/sh
2013-01-14 13:37:57 +00:00
dholland ab137c90f7 Revert defective O_SEARCH implementation committed by manu@ along with
the *at system calls on November 18th of last year. Reasons to revert
it include:
   - it is incorrect in a whole variety of ways (but fortunately, one
     of them is that the missing and improper permission checks have
     no net effect);
   - it was committed without review or discussion;
   - core ruled that all the new O_* flags pertaining to the *at calls
     needed to wait until their semantics could be clarified.

manu was asked to revert it on these grounds but has ignored the request.

I have left O_SEARCH defined and visible and made open() explicitly
ignore it. This way, most code that tries to use it will continue to
build and run. I've also arranged lib/libc/c063/t_o_search.c so that
the tests that make use of the O_SEARCH semantics will disappear until
O_SEARCH comes back, and fixed some mistakes and/or incorrect hacks
that were causing some of these to succeed despite the broken O_SEARCH
implementation.
2013-01-13 08:15:02 +00:00
christos 353430cc63 fix messages. 2013-01-06 02:22:50 +00:00
christos 436fdc82bd new udp test 2013-01-06 00:35:22 +00:00
christos 05cc565867 Test the netbsd and mtree flavors. 2013-01-02 18:11:44 +00:00
martin 236eac060e Remove check for GLOB_NOCHECK - the behaviour has been changed again, so it
will return a modified pattern.
2013-01-02 11:28:48 +00:00
christos 3f1c66c5a0 - make our stat function return ENOENT if a file is not found.
- add a GLOB_NOMATCH check
2012-12-18 01:37:28 +00:00
christos 97efc101e5 add a test case for PR/47306 2012-12-10 20:30:06 +00:00
christos b1dcb17635 use __BITMAP_TYPE 2012-12-07 02:28:19 +00:00
jruoho f8b5dc2c31 Move the bitmap(3) test to the "right" place. Note it in bitops(3). Xrefs. 2012-12-04 06:57:44 +00:00
pgoyette 430b860e38 Christos fixed the crash in ipftest, so re-enable the failing tests. 2012-12-03 23:39:30 +00:00
pgoyette 0a24a43187 Add a couple more inet6 tests to verify correct rule parsing 2012-12-03 21:29:15 +00:00
pgoyette eef4456861 Include an explicit test for correctly inferring family inet6 when there
is an IPv6 address in the rule
2012-12-03 20:43:59 +00:00
pgoyette 5d29dd1420 Now that expected output files have been adjusted, we can remove the
expectation that tests i14 and i19 will fail.

Should address kern/47262 which will be closed.
2012-12-03 19:43:36 +00:00
pgoyette aaf9c67393 Without explicit address, the address family is not inferred and not
displayed in the output.
2012-12-03 19:42:00 +00:00
pgoyette b757daddb1 For rules without any address, don't infer an address family. 2012-12-03 19:35:33 +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
pgoyette d3317b816e Actually remove the no-longer-needed Atffiles 2012-12-02 18:40:43 +00:00
pgoyette f93daef0af Build helper programs as PROGS and not as TESTS_{C,SH}
This enables us to remove custom Atffiles whose only purpose was to avoid
using the helpers as tests.

XXX src/tests/dev/dm/ is not (yet) linked into the build!
2012-12-02 18:39:53 +00:00
pgoyette 826c760e5d Helper programs are programs, not tests, so build them appropriately.
Thie removes the need for custom Atffiles whose only purpose was to exclude
the helpers that had been built as tests.
2012-12-02 17:36:10 +00:00
pgoyette 0855789845 Test-case n3_6 is not applicable to NetBSD (according to Darren R.) 2012-12-02 08:52:06 +00:00
pgoyette 08896ebe5a More test clean-up 2012-12-01 21:37:41 +00:00
pgoyette 8c5ae97cbd Put the reason for expected failure in the correct position 2012-12-01 21:25:51 +00:00
christos b8815f50dc Add a bitops test 2012-12-01 16:27:27 +00:00