Page MenuHomeFreeBSD

mv: Convert tests to ATF.
ClosedPublic

Authored by des on Nov 14 2024, 11:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 12 2024, 2:05 AM
Unknown Object (File)
Dec 5 2024, 3:54 PM
Unknown Object (File)
Nov 28 2024, 4:04 PM
Unknown Object (File)
Nov 28 2024, 12:02 PM
Unknown Object (File)
Nov 27 2024, 3:16 PM
Unknown Object (File)
Nov 27 2024, 12:27 PM
Unknown Object (File)
Nov 27 2024, 11:35 AM
Unknown Object (File)
Nov 27 2024, 8:28 AM
Subscribers

Details

Summary

Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Nov 14 2024, 11:31 AM
des added a parent revision: D47568: mv: More style nits..
markj added inline comments.
bin/mv/tests/mv_test.sh
9

Our usual shell style puts opening braces on their own lines, though admittedly a number of sh test files don't do this.

31

Should this be wrapped with atf_check?

42

Should this be wrapped with atf_check?

des added inline comments.
bin/mv/tests/mv_test.sh
9

I think we mostly don't in tests... maybe tests can weigh in

31

it should, thank you

42

it should, thank you

des marked 2 inline comments as done.Nov 14 2024, 4:35 PM

Shouldn't you delete cvt.pl? That looks like a one-time script to me.

Shouldn't you delete cvt.pl? That looks like a one-time script to me.

I never intended to add it, sorry

LGTM. If you're feeling ambitious you can add test cases for symlink destinations and the other command line options.

This revision is now accepted and ready to land.Nov 14 2024, 6:17 PM
This revision now requires review to proceed.Nov 14 2024, 7:43 PM
This revision is now accepted and ready to land.Nov 16 2024, 4:51 PM
This revision was automatically updated to reflect the committed changes.