diff options
author | rsiddharth <s@ricketyspace.net> | 2020-04-11 18:51:34 -0400 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2020-04-17 20:56:37 -0400 |
commit | dd0d4c75b2a78f2445eaf1f13bbaa644e578026a (patch) | |
tree | b71272c67269be43ffedd5d926f72ef53f95d3e1 /nserver/tests/protocol_tests.c | |
parent | 9adf646a9857c4073aa4e076269a84ee521a13ed (diff) |
nserver: Add ssload.
* nserver/src/protocol.c (ssload): New function definition.
* nserver/src/protocol.h (ssload): New function declaration.
* nserver/tests/protocol_tests.c (test_ssload): New test.
Diffstat (limited to 'nserver/tests/protocol_tests.c')
-rw-r--r-- | nserver/tests/protocol_tests.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nserver/tests/protocol_tests.c b/nserver/tests/protocol_tests.c index f34e3fa..4250635 100644 --- a/nserver/tests/protocol_tests.c +++ b/nserver/tests/protocol_tests.c @@ -151,6 +151,17 @@ char *test_ssstore() return NULL; } +char *test_ssload() +{ + int rc = ssload("/crimson", "/crimson"); + mu_assert(rc == -2, "ssload failed 0"); + + rc = ssload("/crimson", "/amaranth"); + mu_assert(rc == 0, "ssload failed 1"); + + return NULL; +} + char *test_ssdelete() { int rc = 0; @@ -177,6 +188,7 @@ char *all_tests() mu_run_test(test_ssdump); mu_run_test(test_sslist); mu_run_test(test_ssstore); + mu_run_test(test_ssload); mu_run_test(test_ssdelete); return NULL; |