Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional tests #292

Merged
merged 5 commits into from
Jan 8, 2024
Merged

Commits on Jan 8, 2024

  1. Test edge case behavior of "fping -g"

    * wrong number or kind of arguments fails and prints usage;
    * an empty range silently pings nothing and fping returns 1;
    * a too large range fails with an error message;
    * a zero CIDR prefix length fails with an error message.
    auerswal committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    3f66280 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e50d42d View commit details
    Browse the repository at this point in the history
  3. Add longer test for -Q SECS

    The statistics printed every SECS seconds show the results
    since the the last report, not since the beginning.  Also,
    every report starts with a timestamp.
    auerswal committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    9864ae4 View commit details
    Browse the repository at this point in the history
  4. Add test for option combination -Q SECS -o

    The -o option adds outage duration to the periodic reports.
    Each report shows the outage since the last report, not since
    the beginning.
    auerswal committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    37b111f View commit details
    Browse the repository at this point in the history
  5. Test examples from man page

    The man page gives two examples combining -C and -q, but
    these combinations are not yet tested.  Add tests to help
    ensure the documented examples continue to work.
    auerswal committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    035ed2b View commit details
    Browse the repository at this point in the history