![]() |
![]()
| ![]() |
![]()
Nameafp_lantest, afp_logintest, afp_spectest, afp_speedtest, afparg, fce_listen — AFP protocol tests Synopsisafp_lantest [-34567GgVv] [-h host] [-p port] [-s volume] [-u user] [-w password] [-n iterations] [-t tests] [-F bigfile] afp_logintest [-1234567CmVv] [-h host] [-p port] [-s volume] [-u user] [-w password] afp_spectest [-1234567aCiLlmVvXx] [-h host] [-H host2] [-p port] [-s volume] [-c path to volume] [-S volume2] [-u user] [-d user2] [-w password] [-f test] afp_speedtest [-1234567aeiLnVvy] [-h host] [-p port] [-s volume] [-S volume2] [-u user] [-w password] [-n iterations] [-d size] [-q quantum] [-F file] [-f test] afparg [-1234567lVv] [-h host] [-p port] [-s volume] [-u user] [-w password] [-f command] fce_listen [-h host] [-p port] DescriptionThe AFP testsuite contains several utilities aimed at testing AFP servers. They’re broadly divided into conformance tests, benchmarking, and helpers. Most of the tools in the afptest family follow the same general usage pattern and parameters. You set the AFP protocol version (-1 through -7), then the address and credentials of the host to test (which can be localhost). Some tests require a second user and second volume to be defined. Yet another set of tests must be run from localhost, and the local path to the volume under test to be provided. Single tests or test sections can be executed with the -f option. Available tests can be listed with the -l option. Please refer to the helptext of each tool for the precise use of its options. Return codesEach test within a testsuite returns one of the following return codes:
Note that a NOT TESTED result is treated as a failure of the entire test run, but SKIPPED is not. The spectest and logintest shall return the same results whether they are run against a Mac AFP server or Netatalk. Conformance testsafp_spectest makes up the core of the AFP specification test suite, with several hundred test cases. It is organized into testsets, divided by the AFP commands tested, or by preconditions for testing. For instance, the tier 2 (T2) tests need to be run on the host with the -c option indicating the path to the shared volume. There are also read-only and sleep tests that need to be run separately. afp_logintest is a testsuite for DSI sessions and authentication. Benchmarkingafp_lantest is a file transfer benchmarking tool for AFP servers, inspired by HELIOS LanTest, which runs a batch of varied file transfer patterns. afp_speedtest is a benchmark testsuite for read, write and copy operations. It can be run using either AFP commands or POSIX syscalls, handy for comparing netatalk speeds against other file transfer protocols. Helpersafparg is an interactive AFP client that takes an AFP command with optional arguments. This can be used for troubleshooting or system administration. Run afparg -l to list available commands. fce_listen is a simple listener for Netatalk’s Filesystem Change Event (FCE) protocol. It will print out any UDP datagrams received from the AFP server. Testing a Mac AFP serverThis suite of tools were designed primarily to test Netatalk AFP servers, however they can also be used to test a native Mac OS AFP server hosted by an older Mac OS X or Classic Mac OS system. Launch the test runner with the -m option when testing a Mac AFP server. When running in Mac mode, the test runner will report tests with known current or historical differences between Mac and Netatalk. If Mac and Netatalk differ, or if Mac results differ between versions:
When Mac and Netatalk historically returned different results but now behave the same way:
ExamplesConfigure environmentBelow is a sample configuration for running the AFP spec tests.
Arrange two empty directories. Some tests will fail if there are residual files in the test directories.
Set afp.conf as follows:
Running testsRun the afp_spectest for the “FPSetForkParms_test” testset with AFP 3.4.
Run the afp_lantest benchmark using AFP 3.0.
See alsoafpd(8) AuthorContributors to the Netatalk Project (https://netatalk.io/contributors)
|