summaryrefslogtreecommitdiff
path: root/tests/dev
AgeCommit message (Collapse)Author
2019-07-10Gracefully skip test if not enough space in temporary directory.martin
2019-07-10Reduce disk image size for tests (PR 44239 has been fixed)martin
2019-06-20Rewrite t_pad test.isaki
Previous version compared the pad's output binary passed mulaw-slinear conversion and frequency conversion with the prepared "good result". In such case, a test may fail when the implemantation changes. In fact, the frequency conversion algorithm was changed in isaki-audio2, so output waveforms is not completely the same (but that's no problem with the audio waveforms). New version uses slinear_le/2ch/44100Hz input data and compares the output binary with the input data. pad with no conversions should output the same binary. Fix PR kern/54187.
2019-06-01Deal with fallout from the addition ofkre
KERN_PROC_CWD in sysctl(3) That is kern.proc.$$.KERN_PROC_CWD (I think - not that it matters here) The effect is that -lrump now requires -lrumpvfs This set of changes fixes (I believe) regular dynamic builds, more might be required for static builds (will be verified soon).
2019-04-10Fix quoting (quotes really do not nest...) and remove a bunch of itkre
that is harmless, but also pointless (in sh, quotes do not make strings, everything is a string, rather they hide characters which would have some other meaning unquoted (like spaces) - quotes are not needed around strings like "descr" so remove them... Be more consistent with line wrap style, try to avoid wrapping in the middle of a (sh) word where possible. Avoid \ use when it is not needed. Un-KNF (C style) - sh has no declarations, there is no need to leave blank lines at the head of a function to mark the end of the declarations. This should be a NFC - but the quoting really was broken before, just was probably harmless breakage.
2019-04-10PR bin/53999 from rudolf (eq.cz)kre
Fix cgdconfig to report verification failures with gpt and mbr verification methods (and not treat them as silent hard errors). This also causes the cgd to be unconfigured when one of those verification methods fails. Add ATF tests to check that bad verification is reported, and does not leave the cgd configured. Patches from the PR applied.
2019-02-06use strncpy() into a buffer that may not be nul terminated.mrg
2018-01-18implement 32-bit compat support for raidframe.mrg
convert several raidframe ioctls to be bitsize idempotent so that they work the same in 32 and 64 bit worlds, allowing netbsd32 to configure and query raid properly. remove useless 'row' in a few places. add COMPAT_80 and put the old ioctls there. raidframeio.h: RAIDFRAME_TEST_ACC - remove, unused RAIDFRAME_GET_COMPONENT_LABEL - convert to label not pointer to label RAIDFRAME_CHECK_RECON_STATUS_EXT RAIDFRAME_CHECK_PARITYREWRITE_STATUS_EXT RAIDFRAME_CHECK_COPYBACK_STATUS_EXT - convert to progress info not pointer to info RAIDFRAME_GET_INFO - version entirely. raidframevar.h: - rf_recon_req{} has row, flags and raidPtr removed (they're not a useful part of this interface.) - RF_Config_s{} and RF_DeviceConfig_s{} have numRow/rows removed. - RF_RaidDisk_s{} is re-ordered slightly to fix alignment padding - the actual data was already OK. - InstallSpareTable() loses row argument rf_compat32.c has code for RF_Config_s{} in 32 bit mode, used by RAIDFRAME_CONFIGURE and RAIDFRAME_GET_INFO32. rf_compat80.c has code for rf_recon_req{}, RF_RaidDisk_s{} and RF_DeviceConfig_s{} to handle RAIDFRAME_FAIL_DISK, RAIDFRAME_GET_COMPONENT_LABEL, RAIDFRAME_CHECK_RECON_STATUS_EXT, RAIDFRAME_CHECK_PARITYREWRITE_STATUS_EXT, RAIDFRAME_CHECK_COPYBACK_STATUS_EXT, RAIDFRAME_GET_INFO. move several of the per-ioctl code blocks into separate functions. add rf_recon_req_internal{} to replace old usage of global rf_recon_req{} that had unused void * in the structure, ruining it's 32/64 bit ABI. add missing case for RAIDFRAME_GET_INFO50. adjust raid tests to use the new .conf format, and add a case to test the old method as well. raidctl: deal with lack of 'row' members in a couple of places. fail request no longer takes row. handle "START array" sections with just "numCol numSpare", ie no "numRow" specified. for now, generate old-style configuration but update raidctl.8 to specify the new style (keeping reference to the old style.) note that: RF_ComponentLabel_s::{row,num_rows} and RF_SingleComponent_s::row are obsolete but not removed yet.
2017-12-10Fix fallout from hid factorisation:bouyer
- need to install sys/dev/hid/hid.h for userland - include it where needed - most of the time in place if usb/usbhid.h
2017-05-21Remove MKCRYPTO option.riastradh
Originally, MKCRYPTO was introduced because the United States classified cryptography as a munition and restricted its export. The export controls were substantially relaxed fifteen years ago, and are essentially irrelevant for software with published source code. In the intervening time, nobody bothered to remove the option after its motivation -- the US export restriction -- was eliminated. I'm not aware of any other operating system that has a similar option; I expect it is mainly out of apathy for churn that we still have it. Today, cryptography is an essential part of modern computing -- you can't use the internet responsibly without cryptography. The position of the TNF board of directors is that TNF makes no representation that MKCRYPTO=no satisfies any country's cryptography regulations. My personal position is that the availability of cryptography is a basic human right; that any local laws restricting it to a privileged few are fundamentally immoral; and that it is wrong for developers to spend effort crippling cryptography to work around such laws. As proposed on tech-crypto, tech-security, and tech-userlevel to no objections: https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of *bad* crypto that was conditional on it, e.g. DES in telnet... That should probably be removed too, but on the grounds that it is bad, not on the grounds that it is (nominally) crypto.
2017-03-15Do not assume an all-zeroes disk label will read back as a disk withmartin
an 'a' partition covering the whole disk, instead use the raw partition. Also skip this test if the fss device is not available. With lots of help from pgoyette.
2017-01-27Revert to previous. Audio passes the test properly again.nat
2017-01-13Don't play with "../.." in includes for h_macros.h; deal with it centrally.christos
Minor fixes.
2016-12-11Update test output to reflect audio changes.nat
2016-12-11AES XTS unit tests should now pass.alnsn
2016-11-24Switch to CHECK_LIBC for writing.alnsn
2016-11-11Add 3des-cbc tests with 192 bits key.alnsn
2016-11-10Add blowfish-cbc tests for 128, 256 and 448 bits keys.alnsn
2016-11-09Add aes-cbc tests.alnsn
2016-11-07Don't use mktemp.alnsn
2016-11-07Only build t_cgd_aes if MKCRYPTO==yes and MKRUMP==yes.scole
2016-11-06Don't build t_cgd_aes if ${MKCRYPTO} == "no".alnsn
2016-11-06Add tests for not-yet-committed cgd algorithm AES-XTS.alnsn
The tests are marked as expected failures.
2016-10-15pad(4) must be open before corresponding audio device is opened.nat
OK christos@
2016-08-17These clock_subr tests are no longer expected to fail.jakllsch
2016-08-14tests for sys/dev/clock_subr.cjakllsch
2016-08-03We don't have any FILES, so no need for a FILESDIRpgoyette
2016-07-29Mount the snapshot read-only; otherwise we get a nasty panic.pgoyette
Re-order the clean-up steps to properly undo what we did.
2016-07-29Add a basic test for fss(4)pgoyette
XXX For now, we just create required files (including mount-points) XXX in the test's working directory. Eventually someone with more XXX rump-foo than I should create a fss rump-component and then update XXX the test to run under rump.
2016-07-29Remove. Nothing here (or below) seems to refer to it, and it won'tpgoyette
work anyway due to the case of the 'l' in CPPFlAGS
2016-05-05Use rump_schedule() before calling things in the rump context.jakllsch
Hopefully fixes these tests on all ports.
2016-05-05t_hid doesn't use rump correctly, and thus consistently fails; mark as suchjakllsch
2016-05-02Call rump_init() before using rump functionality.jakllsch
This change should make these test cases consistently fail on all ports. Related to PR kern/51096.
2016-02-26Fix soft volume audio distortion. OK jmcneil@.nat
Update atf pad expected output.
2016-01-23Define _KERNTYPES for things that need it.christos
2016-01-23XXX: use unused variables.christos
2016-01-09locate_item() doesn't need to have a flags argument, as the flagsjakllsch
are also in the hid item data structure.
2016-01-08fix test program for hid item checksjakllsch
2016-01-08rework build of t_hid to be more reliable, while working around ATF cruddynessjakllsch
2016-01-07Don't crash when the device's HID Report Descriptor Pops from an empty stack.jakllsch
2016-01-07Add tests for HID Parser Pop-on-empty-stack bug.jakllsch
2016-01-06Unbreak the sun2 build: Don't use program-specific LDADD options becausechristos
those come after the general LDADD options and break static linking.
2016-01-05Add some tests for the kernel HID parser.jakllsch
2015-06-22Don't build tests that depend on RUMP if BSD_MK_COMPAT_FILE is defined.matt
2015-04-23Include better diagnostic info when a required key value cannot be retrieved ↵pgoyette
from envstat -x
2015-04-23When exiting, provide a reason.pgoyette
2015-02-27Double the timeout (to 120s) for slower machinesmartin
2015-01-07Move sysproxy support into a separate component, rumpkern_sysproxy,pooka
instead of it being always provided by the rump kernel base. This move accomplishes two things: 1) it is no longer necessary to provide sysproxy hypercall stubs for platforms which do not want to use sysproxy 2) it is easier to reason about the security aspects, since configurations not linking the sysproxy component simply do not support remote system calls discussed on rumpkernel-users
2014-06-10Fix static linking for the tests: -lrump is also used by -lrumpuser,he
so we also need -lrump after -lrumpuser. Fixes build for sun2.
2014-06-09When linking statically (as for sun2), need to list -lrump alsohe
after -lrumpuser, because rump_pub_lwproc_switch is used in the latter and defined in the former.