-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
What I'd like is to have these files in the client directory:
client-api.c- this contains the functions which could be used by several different clients- This should have reasonable names for all external functions
- Put the author name header at the very top of the file
- @kstats @jdk514 @sacul29 - please make any necessary fixes for this part and update Added API for client and created test client. Also cleaned up code. #73
client-cmd.c- this is a command line-based client that reads arguments from the command line about whether to do a set or get and uses the library to make the request- @kstats @jdk514 @sacul29 - please make any necessary fixes for this part and update Added API for client and created test client. Also cleaned up code. #73
client-perf.c- this is a performance tester. It should issueNrequests (a command line parameter) and should measure the time taken by each request and store it in a histogram. Remember that each request will require creating a new socket connection. At the end of the program it should print out the histogram.- @SMonaghan and @Chryel - please work on this once the
client-api.cis merged with final function names.
- @SMonaghan and @Chryel - please work on this once the
client-tests.c- this is a test program that can be used to test whether the server is working properly. It might for example mightset key1and thenset key2and then try togetthem back to verify the values are correct. Then it might try toget key3(which should not exist) and handle that appropriately. If the keys don't match or if the program segfaults that means the test fail. It may not be possible to run this as part of an automated Travis test because it will require that a server is actually running. That's OK with me.- I'll assign this to some of the others who didn't do a GENI project once we know what other tasks remain.
I don't think we need other automated tests for the client API since all of the interesting logic is related to sockets, and there is no easy way to test that with Travis.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels