summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Compile for specific cortex model inside the RPi 2. It's closer toimp2016-01-161-1/+1
| | | | working, and might actually work...
* Fix -Wunused warning with clang/gccngie2016-01-162-2/+2
| | | | | | | | - Get rid of unused argc/argv variables in main - Bump WARNS to 6 MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
* Fix warnings with clang/gccngie2016-01-162-33/+33
| | | | | | | | | | - Get rid of unused argc/argv variables in main - Exit on failure with a return code of 1 instead of -1 with err/errx as a return code of -1 is implementation dependent - Bump WARNS to 6 MFC after: 5 days Sponsored by: EMC / Isilon Storage Division
* Fix warnings with gcc 5.0ngie2016-01-162-4/+2
| | | | | | | | | | | | | | reconnect.c: - Convert the K&R prototype of main to an ANSI prototype to mute a warning from gcc 4.2.1 - Close s_sock2 after finishing off the last test to plug a leak and mute a warning from gcc 5.0 about a -Wunused-but-set variable sendfile.c: - Fix a -Wunused-but-set warning with gcc 5.0 with pagesize in main(..) MFC after: 5 days Sponsored by: EMC / Isilon Storage Division
* Test for EPROTOTYPE not EPROTONOSUPPORTngie2016-01-162-5/+5
| | | | | | | | | | - `SOCK_RAW` is the implied supported type parameter for socket(2) per route(4) - localsw in `sys/kern/uipc_usrreq.c` doesn't have an entry for `SOCK_RAW`, so the prototype is invalid (this isn't explicitly documented anywhere I could find) MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Add missing newline to message about requiring root privilegesngie2016-01-161-1/+1
| | | | | | | | This will help ensure that scripts/parsers don't get confused when the message is printed out MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
* - Check for accf_filter before running the tests, otherwise it will alwaysngie2016-01-151-2/+13
| | | | | fail at subtest 9/11 - Use strncpy instead of strcpy with afa.af_name
* Integratengie2016-01-1364-3272/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tools/regression/geom_{concat,eli,gate,mirror,nop,raid3,shsec,stripe,uzip} in to the FreeBSD test suite as tests/sys/geom/class/{concat,eli,gate,mirror,nop,raid3,shsec,stripe,uzip} The tools/regression/geom and tools/regression/geom_part testcases are being left alone because both test sets are both currently broken. The majority of this work was done on ^/user/ngie/more-tests2 . The differences are as follows: - tests/sys/geom/class/Makefile.inc is not present; it was inlined into the class's Makefiles for explicitness. - The testcases officially require root via kyua - The geom_gate(4) tests don't use the pidfile changes proposed in https://reviews.freebsd.org/D4836 . MFC after: 1 month Sponsored by: EMC / Isilon Storage Division
| * MFhead @ r293815ngie2016-01-135-4/+36
| |\ | |/ |/|
| * MFhead @ r293006ngie2015-12-312-397/+0
| |\
| * \ MFhead @ r292618ngie2015-12-2924-2742/+187
| |\ \
| * \ \ MFhead @ r292474ngie2015-12-192-48/+50
| |\ \ \
| * \ \ \ MFhead @ r292396ngie2015-12-1753-9472/+8
| |\ \ \ \
| * \ \ \ \ MFhead @ r292285ngie2015-12-155-9/+34
| |\ \ \ \ \
| * \ \ \ \ \ MFhead @ r292177ngie2015-12-144-7/+12
| |\ \ \ \ \ \
| * | | | | | | MFhead @ r292053ngie2015-12-102-6/+31
| | | | | | | |
| * | | | | | | MFhead @ r292005ngie2015-12-0920-287/+361
| |\ \ \ \ \ \ \
| * \ \ \ \ \ \ \ MFhead@r291879ngie2015-12-0661-862/+2068
| |\ \ \ \ \ \ \ \
| * | | | | | | | | 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
| * | | | | | | | | - Remove cnftp.bjpu.edu.cn (it no longer resolves)ngie2015-11-262-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add localhost to resolv/mach for parity with nss/mach
| * | | | | | | | | Skip over lines that start with commentsngie2015-11-261-0/+2
| | | | | | | | | |
| * | | | | | | | | MFhead @ r291345ngie2015-11-263-0/+756
| |\ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ MFhead @ r291235ngie2015-11-246-71/+69
| |\ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ MFhead @ r291038ngie2015-11-185-19/+49
| |\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | Integrate tools/regression/geom* into the FreeBSD test suite under sbin/geom/...ngie2015-11-16116-9327/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | XXX: test
| * | | | | | | | | | | | MFhead @ r290922ngie2015-11-163-169/+0
| | | | | | | | | | | | |
* | | | | | | | | | | | | Add conf.sh file missed in r293621ngie2016-01-131-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 16 days Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | | | | | Remove Makefile now that the testcases are all TAP based andngie2016-01-091-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | prove -rv can be used on them MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | | | | | - Delete non-TAP testcasesngie2016-01-097-162/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add a conf.sh file for executing common functions with geom_gate - Use attach_md for attaching md(4) devices - Don't hardcode /tmp for temporary files, which violates the kyua sandbox - Add/increase sleeps to try and improve synchronization - Add debug output for when checksums fail test-1.t: - Use pkill for killing ggated MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | | | | | Support use of LLVM's libunwind for exception unwindingemaste2016-01-092-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is built in libgcc_s.so and libgcc_eh.a to simplify transition. It is enabled by default on arm64 (where we previously had no other unwinder) and may be enabled for testing on other platforms by setting WITH_LLVM_LIBUNWIND in src.conf(5). Also add compiler-rt's __gcc_personality_v0 implementation for use with the LLVM unwinder. Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D4787
* | | | | | | | | | | | | - Move functions that might be used in class-specific cleanup functionsngie2016-01-081-16/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (geom_test_cleanup, etc) down so the testcases don't emit noise when bailing - Conform to the TAP protocol better when dealing with classes that can't be loaded and with temporary files that can't be allocated for tracking md(4) devices. MFC after: 2 weeks X-MFC with: r293028, r293029, r293048 Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | | | | | - Make test-1.sh into a TAP testable testcasengie2016-01-086-62/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Delete test-2.sh as it was an incomplete testcase, and the contents were basically a subset of test-1.sh - Add a conf.sh file for executing common functions with geom_uzip - Use attach_md for attaching md(4) devices - Don't hardcode /tmp for temporary files, which violates the kyua sandbox MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | | | | | - Add a geom_stripe specific cleanup function and trap on that function atngie2016-01-083-22/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exit so things are cleaned up properly - Use attach_md for attaching md(4) devices - Don't hardcode /tmp for temporary files, which violates the kyua sandbox MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | | | | | - Add a geom_shsec specific cleanup function and trap on that function atngie2016-01-083-29/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exit so things are cleaned up properly - Use attach_md for attaching md(4) devices - Don't hardcode /tmp for temporary files, which violates the kyua sandbox MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | | | | | - Add a geom_raid3 specific cleanup function and trap on that function atngie2016-01-0813-177/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exit so things are cleaned up properly - Use attach_md for attaching md(4) devices - Don't hardcode /tmp for temporary files, which violates the kyua sandbox MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | | | | | - Add a conf.sh file for executing common functions with gnopngie2016-01-083-17/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use attach_md for attaching md(4) devices - Don't hardcode /tmp for temporary files, which violates the kyua sandbox MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | | | | | - Add a conf.sh file for executing common functions with gelingie2016-01-0821-73/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -- Use linear probing to find the first unique md(4) device, unlike the other code which uses attach_md, as geli(8) allocates the md(4) devices itself - Don't hardcode /tmp for temporary files, which violates the kyua sandbox MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | | | | | - Use attach_md for memory disks so they can be tracked.ngie2016-01-083-23/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add a geom_concat specific cleanup function and trap on that function at exit so things are cleaned up properly - Don't hardcode /tmp for temporary files, which violates the kyua sandbox MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | | | | | Make sure that the /set directive gets put at the top of the file,imp2016-01-081-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | instead of in sort order. Slash sorts after period.
* | | | | | | | | | | | | Setup /pkg as a spot for pkg to operate. This is for testing purposesimp2016-01-081-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | only. You need to remount / rw and export TMPDIR=/pkg/tmp. pkg will then work. It's slow though: 15 minutes to pkg install git on an RPi 2 with a decently fast SD card. Since this is for testing, we set DEFAULT_ALWAYS_YES and ASSUME_ALWAYS_YES to YES.
* | | | | | | | | | | | | Obsolete inetd related files when WITHOUT_INETD is setgarga2016-01-071-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: bapt Approved by: gnn MFC after: 1 week Sponsored by: Rubiconn Communications (Netgate) Differential Revision: https://reviews.freebsd.org/D4742
* | | | | | | | | | | | | - Use attach_md instead of hardcoding md(4) provider unit numbersngie2016-01-038-107/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Implement a gmirror_test_cleanup function, which in turn calls geom_test_cleanup to clean up all md(4) providers allocated in the test run. - Remove duplicate logic in test scripts for removing md(4) providers. - Don't create files in /tmp (outside the kyua sandbox); use the current directory instead MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | | | | | - Use a temporary file for the temporary md(4) devices instead ofngie2016-01-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | hardcoding it - Remove the temporary file in the cleanup routine MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | | | | | Use randomly generated device names in testcases via mktemp -u instead of usingngie2016-01-015-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the hardcoded device name, "test" MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | | | | | Add functions for managing md(4) devices and cleaning up said md(4) devicesngie2016-01-011-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These will be used soon in the various test scripts that source geom_subr.sh MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | | | | | - Use geom <class> load instead of g<class> load; g<class> doesn't existngie2016-01-011-1/+6
| |_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for all geom classes, e.g. geom_uzip(4) - These tests require root. Skip all of the tests if they're run as non-root MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | | | | Integrate tools/regression/sockets/unix_passfd into the FreeBSD testngie2015-12-302-397/+0
| |_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | suite as tests/sys/kern/unix_passfd_test - Convert testcases to ATF - Fix an alignment issues - Mark rights_creds_payload(..) as an expected failure (see PR # 181741) Based [in part] on the following Differential Revision: https://reviews.freebsd.org/D689 MFC after: 1 week Submitted by: markj Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | | | - Explicitly initialize ch to 0ngie2015-12-281-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Delete some spurious whitespace - Use calloc instead of malloc in the last test to ensure that sendspace is properly zero'ed out Differential Revision: https://reviews.freebsd.org/D689 (part of a larger diff) MFC after: 1 week Reviewed by: asomers, ngie Submitted by: markj Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | | | There's currently some issues with armv7-class of CPUs code generationimp2015-12-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with our default toolchain. Turn it off here until that all gets sorted out.
* | | | | | | | | | | Upgrade our copies of clang and llvm to 3.7.1 release. This is adim2015-12-251-81/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bugfix-only release, with no new features. Please note that from 3.5.0 onwards, clang and llvm require C++11 support to build; see UPDATING for more information.
OpenPOWER on IntegriCloud