summaryrefslogtreecommitdiff
path: root/tools/regression/lib
Commit message (Collapse)AuthorAgeFilesLines
* Integrate the remaining tools/regression/lib/msun testcases into theEnji Cooper2015-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 Notes: svn path=/head/; revision=292497
* Skip the testcases on i386 (all the assertions fail) [*]Enji Cooper2015-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 Notes: svn path=/head/; revision=292496
* Initialize j so it doesn't print out a garbage indexEnji Cooper2015-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 Notes: svn path=/head/; revision=292495
* Skip infinities testcases that fail assertions on amd64 only on CURRENTEnji Cooper2015-12-201-0/+5
| | | | | | | | | PR: 205448 MFC after: never Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=292494
* Don't run test-fma on i386Enji Cooper2015-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 Notes: svn path=/head/; revision=292493
* - Use nitems instead of handrolling the macroEnji Cooper2015-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 Notes: svn path=/head/; revision=292492
* Disable test-ctrig.t testcases which fail assertions on i386 [*]Enji Cooper2015-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 Notes: svn path=/head/; revision=292491
* Disable test-ctrig.t testcases which fail assertions on i386Enji Cooper2015-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 Notes: svn path=/head/; revision=292489
* Update the test list after r292328Enji Cooper2015-12-201-2/+2
| | | | | | | | | Add test-invtrig to the list of tests Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=292487
* Integrate a number of testcases from tools/regression/lib/msunEnji Cooper2015-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 Notes: svn path=/head/; revision=292328
* Use fabsl instead of fabs to mute -Wabsolute-value warnings from clangEnji Cooper2015-12-161-4/+4
| | | | | | | | | | because `nums[]` is an array of long doubles MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=292327
* Integrate tools/regression/lib/libc/nss into the FreeBSD test suite asEnji Cooper2015-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 Notes: svn path=/head/; revision=292323
* Integrate tools/regression/lib/libc/resolv into the FreeBSD test suite asEnji Cooper2015-12-164-410/+0
| | | | | | | | | | | | lib/libc/tests/resolv Convert the testcases to ATF MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=292317
* Remove hosts that don't resolve properly with the nss and resolv testsEnji Cooper2015-12-162-94/+0
| | | | | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=292316
* Fix LDADD/DPADD that should be LIBADD.Bryan Drewery2015-12-041-2/+1
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291738
* Clean up trailing whitespaceEnji Cooper2015-11-269-583/+582
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=291363
* r291359 was incorrect. Skip over tokens that start with `#' as fgetln canEnji Cooper2015-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 Notes: svn path=/head/; revision=291362
* Skip over lines that start with # (comments)Enji Cooper2015-11-261-0/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=291359
* Remove cnftp.bjpu.edu.cn (it no longer resolves)Enji Cooper2015-11-262-2/+2
| | | | | | | | | Add localhost to resolv/mach for parity with nss/mach MFC after: 3 days Notes: svn path=/head/; revision=291358
* Integrate tools/regression/lib/libc/gen into the FreeBSD test suiteEnji Cooper2015-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 Notes: svn path=/head/; revision=290572
* Integrate tools/regression/lib/libc/net into the FreeBSD test suiteEnji Cooper2015-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 Notes: svn path=/head/; revision=290563
* Integrate tools/regression/lib/libc/string into the FreeBSD test suiteEnji Cooper2015-11-086-436/+0
| | | | | | | | | | as lib/libc/tests/string MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=290539
* Integrate tools/regression/lib/libc/stdlib into the FreeBSD test suiteEnji Cooper2015-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 Notes: svn path=/head/; revision=290538
* Integrate tools/regression/lib/libc/stdio into the FreeBSD test suiteEnji Cooper2015-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 Notes: svn path=/head/; revision=290537
* Integrate tools/regression/lib/libc/locale into the FreeBSD test suiteEnji Cooper2015-11-0833-2494/+0
| | | | | | | | | | as lib/libc/tests/locale MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=290532
* Fix test-fenv:test_dfl_env when run on some amd64 CPUsEnji Cooper2015-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> Notes: svn path=/head/; revision=289332
* - Replace N(a)/N(i)/N(T)/LEN(a)/ARRAY_SIZE(a) with nitems()Craig Rodrigues2015-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 Notes: svn path=/head/; revision=287297
* wordexp(): Improve some error codes.Jilles Tjoelker2015-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. Notes: svn path=/head/; revision=286941
* Add a missing break statement, which made the code default to IPv6.Christian Brueffer2015-07-141-0/+1
| | | | | | | | | PR: 201285 Submitted by: David Binderman MFC after: 1 week Notes: svn path=/head/; revision=285543
* Reassign copyright statements on several files from AdvancedJohn Baldwin2015-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 Notes: svn path=/head/; revision=281887
* wordexp(): Add testcase for non-default IFS in environment.Jilles Tjoelker2015-03-291-0/+15
| | | | | | | | | The non-default IFS is expected to be used. MFC after: 1 week Notes: svn path=/head/; revision=280830
* Garbage collect a prove test wrapperEnji Cooper2015-01-201-15/+0
| | | | | | | | MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Notes: svn path=/projects/building-blocks/; revision=277445
* Convert tools/regression/lib/libc/stdio/test-fpclassify into an ATF testcase andEnji Cooper2014-11-162-77/+1
| | | | | | | | | Rename as lib/libc/stdio/fpclassify2_test Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=274595
* Convert tools/regression/lib/libc/stdio/test-fmemopen into an ATF testcase andEnji Cooper2014-11-162-300/+0
| | | | | | | | | rename as lib/libc/stdio/fmemopen2_test Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=274592
* Remove test-arc4random from this Makefile so others can continue to useEnji Cooper2014-11-161-1/+1
| | | | | | | this as-is for the time being Notes: svn path=/head/; revision=274582
* Convert tools/regression/lib/libc/gen/test-arc4random into an ATF testcase andEnji Cooper2014-11-161-89/+0
| | | | | | | | | rename as lib/libc/gen/arc4random_test Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=274581
* Remove incorrect semicolon.Stefan Farfeleder2014-10-261-1/+1
| | | | Notes: svn path=/head/; revision=273702
* Add diagnostic printfs and disable test # 4 on i386Enji Cooper2014-09-101-0/+9
| | | | | | | | | | | Reviewed by: jmmv, rpaulo MFC after: 3 days Phabric: D749 PR: 191676 Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=271349
* Expand the tests structure in test_small(..) to workaround theEnji Cooper2014-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 Notes: svn path=/head/; revision=271336
* Be ANSI-C compliant when defining CX_LIMITED_RANGE #pragmaEnji Cooper2014-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 Notes: svn path=/head/; revision=271296
* Integrate lib/libutil into the build/kyuaEnji Cooper2014-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 Notes: svn path=/head/; revision=269904
* Integrate lib/libnv into the build/kyuaEnji Cooper2014-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 Notes: svn path=/head/; revision=269603
* Integrate lib/libmp into the build/kyuaEnji Cooper2014-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 Notes: svn path=/head/; revision=269534
* - Use strlen instead of hardcoding a numberPietro Cerutti2014-06-031-2/+2
| | | | | | | | | - Terminate a sentence with a period Approved by: cognet Notes: svn path=/head/; revision=267004
* - Return NULL and set errno to EINVAL if size is 0 (as required by POSIX).Pietro Cerutti2014-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 Notes: svn path=/head/; revision=266971
* libc/stdio: Fail fdopen() on an execute-only fd.Jilles Tjoelker2014-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. Notes: svn path=/head/; revision=264737
* libc: Add fopen() test to regression Makefile.Jilles Tjoelker2014-04-211-3/+11
| | | | Notes: svn path=/head/; revision=264725
* NO_MAN= has been deprecated in favor of MAN= for some time, go aheadWarner Losh2014-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. Notes: svn path=/head/; revision=264400
* Remove broken tests for eui64_line.Julio Merino2014-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. Notes: svn path=/head/; revision=263087
* Make the strerror tests work without libtap.Julio Merino2014-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. Notes: svn path=/head/; revision=263085