diff options
Diffstat (limited to 'tests/common.h')
-rwxr-xr-x | tests/common.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/tests/common.h b/tests/common.h new file mode 100755 index 0000000..fdfb160 --- /dev/null +++ b/tests/common.h @@ -0,0 +1,53 @@ + +#ifndef _COMMON_H +#define _COMMON_H + +#include <CUnit/Basic.h> + +typedef struct { + const char *server; + int port; + const char *path; + const char *scheme; + const char *username; + const char *password; +} ServerData; + +typedef struct { + /* Explanation of what you should see */ + const char *explanation; + + /* Resource UR to test against */ + const char *resource_uri; + + /* Selectors in the form of a URI query key=value&key2=value2 */ + char *selectors; + + /* Fault Value */ + char* fault_expr; + char* fault_value; + + /* Fault detail */ + char *detail_expr; + char *detail_value; + + + + /* What the final status code should be. */ + unsigned int final_status; + + unsigned char flags; + + unsigned int max_elements; + +} TestData; + +extern char *host; + +int init_test(void); +int clean_test(void); +int add_enumeration_tests(CU_pSuite ps); +int add_identify_tests(CU_pSuite ps); +int add_transfer_get_tests(CU_pSuite ps); + +#endif |