-
Notifications
You must be signed in to change notification settings - Fork 49
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
testsuite: relocate libflux unit tests #1827
Commits on Nov 13, 2018
-
testsuite: eliminate libflux unit test connector dependency
Problem: some libflux unit tests are located in the sharness area due to their dependence on the shmem:// connector. Add a stripped down connector implementation based on a CZMQ "inproc" pair socket (like shmem://) used by the test server code that does not depend on calling flux_open() and thus can be hardwired rather than dlopened from the connector directory. Also some cleanup: add header documentation and add a new function test_server_environment_init() to initialize czmq zsys, then update tests to call that.
Configuration menu - View commit details
-
Copy full SHA for 37d749b - Browse repository at this point
Copy the full SHA 37d749bView commit details -
testsuite: relocate libflux unit tests
Problem: mrpc, rpc, and rpc_chained unit tests and their test server helper are located in the sharness area. Now that the test server is unencumbered from its dependency on the shmem connector, move these tests to libflux/test. There was a name clash on the mrpc.c test, but the libflux one only contained a couple of trivial checks, so those checks were incorporated into the loopback one. Partially addresses flux-framework#1823
Configuration menu - View commit details
-
Copy full SHA for 027c708 - Browse repository at this point
Copy the full SHA 027c708View commit details -
testsuite: add loopback_create()
Problem: libflux unit tests are dependent on the loop:// connector and thus cannot be located within the libflux directory. Add loopback_create() to the test server helper. This creates a flux_t handle with loopback behavior identical to the loop:// connector, except since it is only used in unit tests, it can BAIL_OUT() on fatal errors. Also cleanup: if test server is not provided with a server callback, provide an internal one that logs all messages received by the server. Simplify some error handling (use BAIL_OUT for unlikely errors).
Configuration menu - View commit details
-
Copy full SHA for 25c2796 - Browse repository at this point
Copy the full SHA 25c2796View commit details -
testsuite: relocate more libflux unit tests
Problem: dispatch, handle, log, reactor, reduce, and rolemask/loop unit tests are located in the sharness area. Now that the test server offers a loopback mode, these tests that were dependent on the loop:// connector can be moved to libflux/test. There was a name clash on the 'handle.c' test, but the one in libflux only had a couple of checks in it, so those checks were pulled into the larger loopback one. There was a name clash on the 'reactor.c' test. The loopback one was renamed to 'reactor_loop.c'. Renamed rolemask/loop.c to rpc_security.c. Partially addresses flux-framework#1823
Configuration menu - View commit details
-
Copy full SHA for dcdefa2 - Browse repository at this point
Copy the full SHA dcdefa2View commit details -
testsuite: port libflux unit tests to loopback
Problem: the libflux unit tests reduce, reactor_loop, dispatch, handle, and rpc_security flux_open ("loop://") which depends on src/connectors/loop being built. Switch to loopback_create(), which is self-contained in libflux.
Configuration menu - View commit details
-
Copy full SHA for 0a2e306 - Browse repository at this point
Copy the full SHA 0a2e306View commit details -
connectors/loop: drop getopt/setopt
Problem: with recent changes to libflux unit tests, the options for getting and setting test credentials in the loop:// connector have no users. Drop the options. This was really only added to support the libflux/rpc_security unit test, and now that test is not using loop://.
Configuration menu - View commit details
-
Copy full SHA for a1a6166 - Browse repository at this point
Copy the full SHA a1a6166View commit details -
Problem: with recent changes to libflux unit tests, the options for setting test credentials in the shmem:// connector have no users. This was added to support the back-to-back shmem:// connectors in libflux/util.c, but that module is now standalone.
Configuration menu - View commit details
-
Copy full SHA for eb8b6b4 - Browse repository at this point
Copy the full SHA eb8b6b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for de00d9e - Browse repository at this point
Copy the full SHA de00d9eView commit details