Skip to content

Commit fe544d0

Browse files
committed
testsuite: refactor headers and declarations for internal consistency
Symbol declarations and macros have been organized into headers which matches a module in the libafptest library afpclient.h - AFP client implementation afpcmd.h - AFP command wrapper functions afphelper.h - test supporting utility functions using AFP commands testhelper.h - pure test runner control functions, macros, and data structures The meta header "specs.h" has been removed
1 parent 115e005 commit fe544d0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+401
-215
lines changed

test/testsuite/Error.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/* ----------------------------------------------
22
*/
3-
#include "specs.h"
3+
#include "afpcmd.h"
4+
#include "afphelper.h"
5+
#include "testhelper.h"
46

57
/* ------------------------- */
68
static unsigned char afp_cmd_with_vol[] = {

test/testsuite/FPAddAPPL.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/* ----------------------------------------------
22
*/
3-
#include "specs.h"
3+
#include "afpcmd.h"
4+
#include "afphelper.h"
5+
#include "testhelper.h"
46

57
/* ------------------------- */
68
STATIC void test214()

test/testsuite/FPAddComment.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
/* ----------------------------------------------
22
*/
3-
#include "specs.h"
3+
#include "afpcmd.h"
4+
#include "afphelper.h"
5+
#include "testhelper.h"
6+
47
/* -------------------------- */
58
STATIC void test55()
69
{

test/testsuite/FPAddIcon.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/* ----------------------------------------------
22
*/
3-
#include "specs.h"
3+
#include "afpcmd.h"
4+
#include "afphelper.h"
5+
#include "testhelper.h"
46

57
char icon0_256[] = {
68
0x1f, 0xff, 0xfc, 0x00,

test/testsuite/FPByteRangeLock.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/* ----------------------------------------------
22
*/
3-
#include "specs.h"
3+
#include "afpcmd.h"
4+
#include "afphelper.h"
5+
#include "testhelper.h"
46

57
static char temp[MAXPATHLEN];
68

test/testsuite/FPByteRangeLockExt.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/* ----------------------------------------------
22
*/
3-
#include "specs.h"
3+
#include "afpcmd.h"
4+
#include "afphelper.h"
5+
#include "testhelper.h"
46

57
/* -------------------------- */
68
static void test_bytelock_ext(uint16_t vol, char *name, int type)

test/testsuite/FPCatSearch.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/* ----------------------------------------------
22
*/
3-
#include "specs.h"
4-
3+
#include "afpcmd.h"
4+
#include "afphelper.h"
5+
#include "testhelper.h"
56

67
/* ------------------------- */
78
STATIC void test225()

test/testsuite/FPCatSearchExt.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/* ----------------------------------------------
22
*/
3-
#include "specs.h"
4-
3+
#include "afpcmd.h"
4+
#include "afphelper.h"
5+
#include "testhelper.h"
56

67
/* ------------------------- */
78
STATIC void test227()

test/testsuite/FPCloseDT.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/* ----------------------------------------------
22
*/
3-
#include "specs.h"
3+
#include "afpcmd.h"
4+
#include "afphelper.h"
5+
#include "testhelper.h"
46

57
/* -------------------------- */
68
STATIC void test201()

test/testsuite/FPCloseDir.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/* ----------------------------------------------
22
*/
3-
#include "specs.h"
3+
#include "afpcmd.h"
4+
#include "afphelper.h"
5+
#include "testhelper.h"
46

57
/* -------------------------- */
68
STATIC void test199()

0 commit comments

Comments
 (0)