summaryrefslogtreecommitdiffstats
path: root/tools/regression/lib
Commit message (Collapse)AuthorAgeFilesLines
* Integrate the remaining tools/regression/lib/msun testcases into thengie2015-12-2012-2025/+0
| | | | | | | | FreeBSD test suite under lib/msun/tests MFC after: 3 weeks X-MFC with: r292328 Sponsored by: EMC / Isilon Storage Division
* Skip the testcases on i386 (all the assertions fail) [*]ngie2015-12-201-2/+25
| | | | | | | | | | | Also, don't compile the ldexpl(3) testcases on platforms that don't support the libcall (technically only x86 right now). This makes this test buildable on arm*/mips*/powerpc* PR: 205449 [*] MFC after: 1 week Tested on: stable/10 (amd64/i386), head (amd64/i386) Sponsored by: EMC / Isilon Storage Division
* Initialize j so it doesn't print out a garbage indexngie2015-12-201-1/+3
| | | | | | | | Use it consistently instead of i in the first loop MFC after: 3 days X-MFC with: 292492 Sponsored by: EMC / Isilon Storage Division
* Skip infinities testcases that fail assertions on amd64 only on CURRENTngie2015-12-201-0/+5
| | | | | | PR: 205448 MFC after: never Sponsored by: EMC / Isilon Storage Division
* Don't run test-fma on i386ngie2015-12-201-0/+6
| | | | | | | | | It completely fails all assertions on i386 on both stable/9 and stable/10 PR: 205448 MFC after: 1 week X-MFC to: stable/10 Sponsored by: EMC / Isilon Storage Division
* - Use nitems instead of handrolling the macrongie2015-12-201-10/+17
| | | | | | | | - Use a separate variable for tracking the testcase count instead of hardcoding the offset for the testcases MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
* Disable test-ctrig.t testcases which fail assertions on i386 [*]ngie2015-12-201-1/+12
| | | | | | | | | | | | Also, don't compile the exp2l(3) testcases on platforms that don't support the libcall (technically only x86 right now). This makes this test buildable on arm*/mips*/powerpc* Tested on: stable/10 (amd64/i386), head (amd64/i386) PR: 205446 [*] MFC after: 1 week X-MFC to: stable/10 Sponsored by: EMC / Isilon Storage Division
* Disable test-ctrig.t testcases which fail assertions on i386ngie2015-12-201-0/+2
| | | | | | | | Tested on: stable/10 (amd64/i386), head (amd64/i386) PR: 205446 MFC after: 1 week X-MFC to: stable/10 Sponsored by: EMC / Isilon Storage Division
* Update the test list after r292328ngie2015-12-201-2/+2
| | | | | | Add test-invtrig to the list of tests Sponsored by: EMC / Isilon Storage Division
* Integrate a number of testcases from tools/regression/lib/msunngie2015-12-1628-3538/+3
| | | | | | | | | | | | | | into the FreeBSD test suite There's no functional change with these testcases; they're purposely being left in TAP format for the time being Other testcases which crash on amd64/i386 as-is have not been integrated yet (they need to be retested on a later version of CURRENT, as I haven't used i386 in some time) MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
* Use fabsl instead of fabs to mute -Wabsolute-value warnings from clangngie2015-12-161-4/+4
| | | | | | | because `nums[]` is an array of long doubles MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Integrate tools/regression/lib/libc/nss into the FreeBSD test suite asngie2015-12-1620-5430/+0
| | | | | | | | | | | | | | | | | lib/libc/tests/nss - Convert the testcases to ATF - Do some style(9) cleanups: -- Sort headers -- Apply indentation fixes -- Remove superfluous parentheses - Explicitly print out debug printfs for use with `kyua {debug,report}`; for items that were overly noisy, they've been put behind #ifdef DEBUG conditionals - Fix some format strings MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Integrate tools/regression/lib/libc/resolv into the FreeBSD test suite asngie2015-12-164-410/+0
| | | | | | | | | lib/libc/tests/resolv Convert the testcases to ATF MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Remove hosts that don't resolve properly with the nss and resolv testsngie2015-12-162-94/+0
| | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Fix LDADD/DPADD that should be LIBADD.bdrewery2015-12-041-2/+1
| | | | Sponsored by: EMC / Isilon Storage Division
* Clean up trailing whitespacengie2015-11-269-583/+582
| | | | MFC after: 1 week
* r291359 was incorrect. Skip over tokens that start with `#' as fgetln canngie2015-11-261-3/+4
| | | | | | | | | return more than one '\n' delimited line in a buffer Handle empty lines too, just in case MFC after: 3 days X-MFC with: r291359
* Skip over lines that start with # (comments)ngie2015-11-261-0/+2
| | | | MFC after: 3 days
* Remove cnftp.bjpu.edu.cn (it no longer resolves)ngie2015-11-262-2/+2
| | | | | | Add localhost to resolv/mach for parity with nss/mach MFC after: 3 days
* Integrate tools/regression/lib/libc/gen into the FreeBSD test suitengie2015-11-098-1490/+0
| | | | | | | | | | | | | | | | | | | as lib/libc/tests/gen The code in test-fnmatch that was used for generating: - bin/sh/tests/builtins/case2.0 - bin/sh/tests/builtins/case3.0 has been left undisturbed. The target `make sh-tests` has been moved over from tools/regression/lib/libc/gen/Makefile to lib/libc/tests/gen/Makefile and made into a PHONY target case2.0 and case3.0 test input generation isn't being done automatically. This needs additional discussion. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Integrate tools/regression/lib/libc/net into the FreeBSD test suitengie2015-11-088-459/+0
| | | | | | | | | | as lib/libc/tests/net Also, fix eui64_aton_test:test_str(..). The test was comparing the result of eui64_aton to a pointer of the expected result. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Integrate tools/regression/lib/libc/string into the FreeBSD test suitengie2015-11-086-436/+0
| | | | | | | as lib/libc/tests/string MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Integrate tools/regression/lib/libc/stdlib into the FreeBSD test suitengie2015-11-088-510/+0
| | | | | | | | | | as lib/libc/tests/stdlib - Make the code a bit more style(9) compliant - Convert a sizeof(x)/sizeof(x[0]) to nitems MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Integrate tools/regression/lib/libc/stdio into the FreeBSD test suitengie2015-11-0825-2295/+0
| | | | | | | | | | | as lib/libc/tests/stdio - Fix some whitespace - Convert the testcases to ATF - Convert "/dev/null" to _PATH_DEVNULL MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Integrate tools/regression/lib/libc/locale into the FreeBSD test suitengie2015-11-0833-2494/+0
| | | | | | | as lib/libc/tests/locale MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Fix test-fenv:test_dfl_env when run on some amd64 CPUsngie2015-10-141-0/+27
| | | | | | | | | | | | | | | | | | | | Compare the fields that the AMD [1] and Intel [2] specs say will be set once fnstenv returns. Not all amd64 capable processors zero out the env.__x87.__other field (example: AMD Opteron 6308). The AMD64/x64 specs aren't explicit on what the env.__x87.__other field will contain after fnstenv is executed, so the values in env.__x87.__other could be filled with arbitrary data depending on how the CPU-specific implementation of fnstenv. 1. http://support.amd.com/TechDocs/26569_APM_v5.pdf 2. http://www.intel.com/Assets/en_US/PDF/manual/253666.pdf Discussed with: kib, Anton Rang <anton.rang@isilon.com> Reviewed by: Daniel O'Connor <darius@dons.net.au> (earlier patch; pre-generalization) MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Reported by: Bill Morchin <wmorchin@isilon.com>
* - Replace N(a)/N(i)/N(T)/LEN(a)/ARRAY_SIZE(a) with nitems()rodrigc2015-08-294-19/+17
| | | | | | | | - Add missing <err.h> for err() and <sys/sysctl.h> for sysctlbyname() - NULL -> 0 for 5th parameter of sysctlbyname() Submitted by: Andriy Voskoboinyk <s3erios@gmail com> Differential Revision: https://reviews.freebsd.org/D3442
* wordexp(): Improve some error codes.jilles2015-08-191-0/+9
| | | | | | | Distinguish between WRDE_BADVAL and WRDE_SYNTAX based on when the error occurred (parsing or execution), not based on whether WRDE_UNDEF was passed. Also, return WRDE_NOSPACE for a few more unexpected results from sh.
* Add a missing break statement, which made the code default to IPv6.brueffer2015-07-141-0/+1
| | | | | | PR: 201285 Submitted by: David Binderman MFC after: 1 week
* Reassign copyright statements on several files from Advancedjhb2015-04-232-2/+2
| | | | | | | Computing Technologies LLC to Hudson River Trading LLC. Approved by: Hudson River Trading LLC (who owns ACT LLC) MFC after: 1 week
* wordexp(): Add testcase for non-default IFS in environment.jilles2015-03-291-0/+15
| | | | | | The non-default IFS is expected to be used. MFC after: 1 week
* Garbage collect a prove test wrapperngie2015-01-201-15/+0
| | | | | MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
* Convert tools/regression/lib/libc/stdio/test-fpclassify into an ATF testcase andngie2014-11-162-77/+1
| | | | | | Rename as lib/libc/stdio/fpclassify2_test Sponsored by: EMC / Isilon Storage Division
* Convert tools/regression/lib/libc/stdio/test-fmemopen into an ATF testcase andngie2014-11-162-300/+0
| | | | | | rename as lib/libc/stdio/fmemopen2_test Sponsored by: EMC / Isilon Storage Division
* Remove test-arc4random from this Makefile so others can continue to usengie2014-11-161-1/+1
| | | | this as-is for the time being
* Convert tools/regression/lib/libc/gen/test-arc4random into an ATF testcase andngie2014-11-161-89/+0
| | | | | | rename as lib/libc/gen/arc4random_test Sponsored by: EMC / Isilon Storage Division
* Remove incorrect semicolon.stefanf2014-10-261-1/+1
|
* Add diagnostic printfs and disable test # 4 on i386ngie2014-09-101-0/+9
| | | | | | | | Reviewed by: jmmv, rpaulo MFC after: 3 days Phabric: D749 PR: 191676 Sponsored by: EMC / Isilon Storage Division
* Expand the tests structure in test_small(..) to workaround thengie2014-09-091-19/+14
| | | | | | | | | "initializer not constant" warning with gcc Approved by: jmmv (mentor) MFC after: 3 days Phabric: D744 Sponsored by: EMC / Isilon Storage Division
* Be ANSI-C compliant when defining CX_LIMITED_RANGE #pragmangie2014-09-092-2/+2
| | | | | | | | | This mutes warnings with clang Approved by: rpaulo (mentor) Reviewed by: das, kargl (both as part of a larger patch) Phabric: D742 Sponsored by: EMC / Isilon Storage Division
* Integrate lib/libutil into the build/kyuangie2014-08-1312-1448/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | Remove the .t wrappers Rename all of the TAP test applications from test-<test> to <test>_test to match the convention described in the TestSuite wiki page humanize_number_test.c: - Fix -Wformat warnings with counter variables - Fix minor style(9) issues: -- Header sorting -- Variable declaration alignment/sorting in main(..) -- Fit the lines in <80 columns - Fix an off by one index error in the testcase output [*] - Remove unnecessary `extern char * optarg;` (this is already provided by unistd.h) Phabric: D555 Approved by: jmmv (mentor) MFC after: 2 weeks Obtained from: EMC / Isilon Storage Division [*] Submitted by: Casey Peel <cpeel@isilon.com> [*] Sponsored by: EMC / Isilon Storage Division
* Integrate lib/libnv into the build/kyuangie2014-08-057-1441/+0
| | | | | | | | | Rename all of the TAP test applications from <test> to <test>_test to match the convention described in the TestSuite wiki page Phabric: D538 Approved by: jmmv (mentor) Sponsored by: EMC / Isilon Storage Division
* Integrate lib/libmp into the build/kyuangie2014-08-043-233/+0
| | | | | | | | | | | | | - Remove the .t wrapper - Fix -Wreturn-type warnings with clang This change has been tested on amd64/i386 Phabric: D530 Reviewed by: jmmv Approved by: jmmv (co-mentor) MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* - Use strlen instead of hardcoding a numbergahr2014-06-031-2/+2
| | | | | | - Terminate a sentence with a period Approved by: cognet
* - Return NULL and set errno to EINVAL if size is 0 (as required by POSIX).gahr2014-06-021-0/+47
| | | | | | | | | | Update the manpage to reflect this change. - Always set the current position to the first null-byte when opening in append mode. This makes the implementation compatible with glibc's. Update the test suite. Reported by: pho Approved by: cognet
* libc/stdio: Fail fdopen() on an execute-only fd.jilles2014-04-215-1/+237
| | | | | | | | | An execute-only fd (opened with O_EXEC) allows neither read() nor write() and is therefore incompatible with all stdio modes. Therefore, the [EINVAL] error applies. Also adjust the similar check in freopen() with a NULL path, even though this checks an fd which is already from a FILE.
* libc: Add fopen() test to regression Makefile.jilles2014-04-211-3/+11
|
* NO_MAN= has been deprecated in favor of MAN= for some time, go aheadimp2014-04-131-1/+1
| | | | | | and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit.
* Remove broken tests for eui64_line.jmmv2014-03-123-92/+1
| | | | | | This function is not public and brooks (initial committer adding the code) suggests the deletion of the tests (which I don't know if they work) instead of changing the visibility of the function.
* Make the strerror tests work without libtap.jmmv2014-03-122-34/+42
| | | | | | Just replace the simple calls to the library with ad-hoc code. We should later rewrite these with the ATF libraries anyway, which are part of the base system.
OpenPOWER on IntegriCloud