Commit Graph

1967 Commits

Author SHA1 Message Date
joerg
4d065f3e71 Fix sign. 2014-03-01 22:38:13 +00:00
dsl
8f9d8363a0 Some of the acos() tests seem to fail on some systems.
Sorting out why isn't helped by the tests not reporting the erronous value.
Change the 'boilerplate' pattern used so that all the values are output.
Reduce the amount of faffy red tape as well.
Some of these reductions could be shared with other libm tests, but for
  the moment they are defined in this file.
All these tests pass on my amd64 system, and when I run amd64 qemu.
2014-03-01 21:08:39 +00:00
joerg
191a32cdd1 Avoid promotion in subexpressions. 2014-02-27 17:26:02 +00:00
joerg
7fd630031b Don't use integer downcasts, use correctly sized constants for each test. 2014-02-27 17:25:28 +00:00
joerg
f161b30d74 Use an abs wide enough to cover the types involved. 2014-02-27 00:59:50 +00:00
martin
1f6c8fa478 Remove hardcoded VM_MIN_ADDRESS and instead query current value via
sysctl vm.minaddress.
2014-02-26 20:49:26 +00:00
martin
1f8b8a77e6 Remove excemption for i386 (PR lib/48601) - missing aliases will be
added to the C code.
2014-02-21 10:26:25 +00:00
martin
20ff963b35 For now excempt i386 from __sync_lock_test_and_set_8 and point to
PR lib/48601. Probably more architectures to follow.
2014-02-18 10:27:46 +00:00
joerg
0df5988fd8 Since clang doesn't recognize the nand variants of the sync builtins and
gcc doesn't support __has_builtin, use a plain #ifndef __clang__ check
as workaround.
2014-02-17 21:38:04 +00:00
martin
a2ebafbf22 Add a link-time test for __sync_* primitives (see PR 48368) - this
will allow us to notice missing functions during the build, instead
of when compiling arbitrary pkgsrc stuff later.
2014-02-17 10:10:41 +00:00
joerg
d0ebb0ebfa ARM now works with integrated-as. 2014-02-14 20:33:32 +00:00
jmmv
e110dcc954 Use compiler builtins instead of atf_arch and atf_machine.
The atf_arch and atf_machine configuration variables were removed from
atf-0.19 without me realizing that some tests were querying them directly.

Instead of reintroducing those variables, just rely on compiler builtins
as many other tests already do.

Should fix PR bin/48582.
2014-02-09 21:26:07 +00:00
hannken
97834f7ba0 Change vnode operation lookup to return the resulting vnode *vpp unlocked.
Change cache_lookup() to return an unlocked vnode.

Discussed on tech-kern@

Welcome to 6.99.31
2014-02-07 15:29:20 +00:00
joerg
d9eddbbe61 Pass the correct buffer size. 2014-02-06 14:57:16 +00:00
njoly
a935b103a7 Handle another declaration after statement case for lint in c99 mode.
Add the corresponding testcase.
2014-02-04 08:08:59 +00:00
martin
e9501cb2dc Add a few more test values from the range that sparc64 previously would
have got wrong.
2014-02-02 08:16:22 +00:00
martin
3de77da158 Skip testcase inside its body for architectures w/o long double support 2014-02-01 13:53:16 +00:00
martin
5f1a738958 Print a slightly more helpfull message in case of test failure 2014-02-01 10:00:04 +00:00
joerg
f830673a68 No unused functions if there is no long double support. 2014-01-30 22:15:55 +00:00
joerg
048981b58c Add test for uint64 to real long double conversion. 2014-01-30 15:04:04 +00:00
matt
2aecc71d04 Support using fenv instead of fpsetmask if HAVE_FENV is defined. 2014-01-26 21:04:46 +00:00
matt
0d162304ca Make this real even though it isn't yet used. 2014-01-26 20:42:06 +00:00
skrll
ec88ed8b1f Use English spelling of alignment. 2014-01-25 10:09:47 +00:00
yamt
eb988d97e6 fix comment typos pointed out by uebayasi 2014-01-21 00:32:16 +00:00
yamt
d1e900e606 - fix funopen usage
- some more checks
- remove a bogus test case (bad_eucJP_getwc)  PR/47660 (Julio Merino)
- add XXX comments
2014-01-20 14:14:56 +00:00
apb
2a9bf57a9d Remove -O0 from CPPFLAGS, and instead set
COPTS.testlang_parse.c += -Wno-uninitialized.

Without the old -O0, and without the new -Wno-uninitialized,
gcc issues this bogus error:
testlang_parse.y:1400:8: error: 'cmd' may be used uninitialized in this function
2014-01-19 22:09:34 +00:00
apb
20cabc6645 Remove "-g" from CPPFLAGS and LDFLAGS in curses tests.
The debug information contains embedded references to the src directory,
which is bad for reproducible builds.
2014-01-19 21:50:17 +00:00
pgoyette
0746ac4120 Sprinkle in some UNCONST() 2014-01-19 13:40:59 +00:00
pgoyette
5e565c166a Include more of the test cases from RFC 1321.
XXX cases 3, 6, and 9 are currently disabled because we don't seem
to handle plain-text in other than 8-byte chunks.
2014-01-18 20:40:27 +00:00
pgoyette
f2915fe1a6 Remove some debugging code. 2014-01-18 20:10:34 +00:00
pgoyette
cd62f2eb7f Free each crypto(4) session when we're done with it. (A new session
is created for each test case.)
2014-01-18 19:44:41 +00:00
pgoyette
435332144e Fix verification to use correct buffer.
Use test cases defined in RFC 1321
2014-01-18 15:55:32 +00:00
pgoyette
101f54fefd Add the test cases for sha1_hmac 2014-01-18 15:15:16 +00:00
joerg
3732193e19 Needs some unconst. 2014-01-18 02:31:14 +00:00
pgoyette
b685948516 Additional tests for SHA1_HMAC (with test cases from RFC2202) 2014-01-17 22:33:02 +00:00
pgoyette
10805d8a0e Add additional test cases from RFC2202 2014-01-17 22:31:25 +00:00
pgoyette
140e400a0b Use RFC 3713 vector, add comment to identify the source 2014-01-17 19:39:51 +00:00
pgoyette
80fe9fc110 Reenable h_null (NULL_CBC) test. It works if we correctly pass a NULL iv. 2014-01-17 19:35:33 +00:00
pgoyette
1b0aa2a2ae Clean up the helper programs. Remove the code to print the results, and
make sure that all helpers actually check the results against the correct
values.
2014-01-17 14:16:08 +00:00
pgoyette
5119ac7130 Disable the arc4 and null_cbc tests for now. The swcrypto driver does
not (yet) support them.
2014-01-17 14:14:54 +00:00
joerg
7fe431c6a2 Use __arraycount and size_t as the format strings are wrong anyway. 2014-01-16 23:56:04 +00:00
pgoyette
075b927c1d Since sizeof() is unsigned, use an unsigned int for the loop index.
Fixes latest build break.
2014-01-16 22:06:45 +00:00
pgoyette
5b57b2e95d Include all of the examples from RFC3566 2014-01-16 18:09:55 +00:00
mlelstv
3ca9670bad Adjust default column test to the changed ps -s output. 2014-01-16 04:16:32 +00:00
martin
89ed65c0d4 Remove bogus TESTSDIR 2014-01-15 10:19:55 +00:00
pgoyette
fda7dd4887 Descend into new opencrypto test suite 2014-01-14 18:06:27 +00:00
pgoyette
9bee98a7d5 Add some trivial tests for the in-kernel opencrypto framework, and link
them into the build.  (Thanks to Matthias Drochner for the test programs!)

XXX The arc4 and null tests currently fail - under investigation.
2014-01-14 17:51:39 +00:00
gson
544eb11262 When using braces around shell variable names, do so consistently 2014-01-13 11:08:14 +00:00
gson
feb2d702d7 Add missing resolv.conf override to the gethostbyaddr6 test case. 2014-01-13 10:49:47 +00:00
martin
4f7da0ce19 New gcc can reuse stack frames for tail calls, so "main" is an optional
frame as well.
2014-01-11 19:48:22 +00:00