22184bfa | 10-Jun-2017 |
Enji Cooper <ngie@FreeBSD.org> |
Improve handling with system state
- Always unlink $cmd after exit via END block. - The tests don't function well if kern.geom.debugflags != 0. Save debugflags, then restore them at the end of the
Improve handling with system state
- Always unlink $cmd after exit via END block. - The tests don't function well if kern.geom.debugflags != 0. Save debugflags, then restore them at the end of the test.
MFC after: 1 month Sponsored by: Dell EMC Isilon
show more ...
|
d1f57d59 | 23-Apr-2017 |
Enji Cooper <ngie@FreeBSD.org> |
gctl_test.t: improve error reporting with mdcfg and mount directives
If the commands had failed previously, it would press on and result in a series of cascading failures. Fail early and continue on
gctl_test.t: improve error reporting with mdcfg and mount directives
If the commands had failed previously, it would press on and result in a series of cascading failures. Fail early and continue on to the next case instead of executing additional commands after a previously failed series of steps.
MFC after: 5 weeks Sponsored by: Dell EMC Isilon
show more ...
|
9940eaaa | 23-Apr-2017 |
Enji Cooper <ngie@FreeBSD.org> |
gctl_test.t: more tweaks to try and update the code and get it functional (again?)
- Make the logfile for $out be built off the basename for $cmd, instead of $cmd. (r317292 broke this assumption).
gctl_test.t: more tweaks to try and update the code and get it functional (again?)
- Make the logfile for $out be built off the basename for $cmd, instead of $cmd. (r317292 broke this assumption). - Rename $mntpt to $mntpt_prefix for clarity, as this variable is a prefix for mountpoints. - Reindent the umount directive block while here to match the rest of the code.
MFC after: 5 weeks Sponsored by: Dell EMC Isilon
show more ...
|
414bf3a1 | 23-Apr-2017 |
Enji Cooper <ngie@FreeBSD.org> |
Use verb=delete not verb=remove
The `remove` verb hasn't been present in geom_part*(4) for well over a decade, if ever. I couldn't find any references to it in ^/stable/5 at least, which is around t
Use verb=delete not verb=remove
The `remove` verb hasn't been present in geom_part*(4) for well over a decade, if ever. I couldn't find any references to it in ^/stable/5 at least, which is around the timeframe that this test was written.
MFC after: 5 weeks Sponsored by: Dell EMC Isilon
show more ...
|
acca703a | 23-Apr-2017 |
Enji Cooper <ngie@FreeBSD.org> |
gctl_test.t: minor tweaks
- Declare $count with the `my` scope operator to permit `use strict`. - Add `use strict`. - Use `use warnings` instead of using `-w` in the shebang. - Don't unlink $cmd whe
gctl_test.t: minor tweaks
- Declare $count with the `my` scope operator to permit `use strict`. - Add `use strict`. - Use `use warnings` instead of using `-w` in the shebang. - Don't unlink $cmd when done (prevents unnecessary rebuilding). - Improve the error message when running with insufficient permissions, e.g., non-root.
MFC after: 5 weeks Sponsored by: Dell EMC Isilon
show more ...
|
cb7cf35e | 22-Apr-2017 |
Enji Cooper <ngie@FreeBSD.org> |
Bump WARNS to 6 per previous commits which fixed warnings
MFC after: 5 weeks Tested with: clang (4.0), gcc (4.2.1, 6.3.0) Sponsored by: Dell EMC Isilon |
e1915a59 | 22-Apr-2017 |
Enji Cooper <ngie@FreeBSD.org> |
gctl_test_helper: apply polish
- Staticize variables to fix warnings. - Sprinkle asserts around for calls that can fail - Apply style(9) for main(..) definition. - ANSIify usage(..) definition.
MFC
gctl_test_helper: apply polish
- Staticize variables to fix warnings. - Sprinkle asserts around for calls that can fail - Apply style(9) for main(..) definition. - ANSIify usage(..) definition.
MFC after: 5 weeks Sponsored by: Dell EMC Isilon
show more ...
|
e02a067a | 22-Apr-2017 |
Enji Cooper <ngie@FreeBSD.org> |
Rename gctl.t to gctl_test.t and test.c to gctl_test_helper.c
This is being done to reduce ambiguity and to make the tests more portable in the future to other locations in the source tree.
MFC aft
Rename gctl.t to gctl_test.t and test.c to gctl_test_helper.c
This is being done to reduce ambiguity and to make the tests more portable in the future to other locations in the source tree.
MFC after: 5 weeks Sponsored by: Dell EMC Isilon
show more ...
|
e717c486 | 10-Apr-2006 |
Marcel Moolenaar <marcel@FreeBSD.org> |
MFp4: o Add mount and umount actions so that partitions can be in use. o Extend the testing of the add verb to include overlapping partitions. o Add tests for the remove verb. this includes tes
MFp4: o Add mount and umount actions so that partitions can be in use. o Extend the testing of the add verb to include overlapping partitions. o Add tests for the remove verb. this includes tests to remove a partition when in use (i.e. is mounted). o Add a MD5 checksum to the output of the conf action so that it can be tested. Make sure the MD5 doesn't vary based on certain dynamic behaviour that is irrelevant to the output. o Add MD5 checksums to the expected result of conf actions.
show more ...
|