Skip to content

Commit

Permalink
testsuite: Remove the now-unused Exclude option
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmark committed Oct 31, 2024
1 parent cc672a8 commit 2022697
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion doc/ja/manpages/man1/afptest.1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<primary>afptest</primary>
</indexterm></command>

<arg>-1234567aCiLlmnVvx</arg>
<arg>-1234567aCiLlmVv</arg>

<arg>-h <replaceable>ホスト</replaceable></arg>

Expand Down
2 changes: 1 addition & 1 deletion doc/manpages/man1/afptest.1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<primary>afptest</primary>
</indexterm></command>

<arg>-1234567aCiLlmnVvx</arg>
<arg>-1234567aCiLlmVv</arg>

<arg>-h <replaceable>host</replaceable></arg>

Expand Down
6 changes: 4 additions & 2 deletions test/testsuite/afpcli.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
#include "test.h"

// Define the global test settings
int Throttle = 0;
int Convert = 1;
int Throttle = 0;
int Convert = 1;
int Interactive = 0;
int Quiet = 1;
int Verbose = 0;
int Color = 1;
#if 0
int Exclude = 0;
#endif

#define UNICODE(a) (a->afp_version >= 30)

Expand Down
2 changes: 2 additions & 0 deletions test/testsuite/afphelper.c
Original file line number Diff line number Diff line change
Expand Up @@ -882,9 +882,11 @@ void test_skipped(int why)
case T_VOL_BIG:
s = "a smaller volume";
break;
#if 0
case T_EXCLUDE:
s = "in the Exclude bucket";
break;
#endif
case T_MANUAL:
s = "Interactive mode";
break;
Expand Down
2 changes: 2 additions & 0 deletions test/testsuite/specs.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ extern int not_valid_bitmap(unsigned int ret, unsigned int bitmap, int afpd_erro
#define T_NO_UNIX_PREV 21
#define T_SINGLE 22
#define T_VOL_BIG 23
#if 0
#define T_EXCLUDE 24
#endif
#define T_MANUAL 25
#define T_AFP31 26
#define T_AFP32 27
Expand Down
7 changes: 5 additions & 2 deletions test/testsuite/spectest.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,9 @@ void usage( char * av0 )
fprintf( stdout,"\t-7\tAFP 3.4 version (default)\n");
fprintf( stdout,"\t-v\tverbose\n");
fprintf( stdout,"\t-V\tvery verbose\n");

#if 0
fprintf( stdout,"\t-x\tdon't run tests with known bugs\n");
#endif
fprintf( stdout,"\t-f\ttest or testset to run\n");
fprintf( stdout,"\t-l\tlist testsets\n");
fprintf( stdout,"\t-i\tinteractive mode, prompts before every test (debug purposes)\n");
Expand All @@ -363,7 +364,7 @@ int main( int ac, char **av )
int cc;
int ret;

while (( cc = getopt( ac, av, "vV1234567ah:H:p:s:S:u:d:w:c:f:LlmxiC" )) != EOF ) {
while (( cc = getopt( ac, av, "1234567aCiLlmVvc:d:f:H:h:p:S:s:u:w:" )) != EOF ) {
switch ( cc ) {
case '1':
vers = "AFPVersion 2.1";
Expand Down Expand Up @@ -454,9 +455,11 @@ int ret;
case 'w':
Password = strdup(optarg);
break;
#if 0
case 'x':
Exclude = 1;
break;
#endif

default :
usage( av[ 0 ] );
Expand Down
4 changes: 2 additions & 2 deletions test/testsuite/test.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ const char *AfpNum2name(int num);

extern CONN *Conn, *Conn2;

// extern DSI *dsi;
// extern uint16_t vol;
extern char Data[];

extern char *Vol;
Expand All @@ -141,7 +139,9 @@ extern int Loglevel;
extern int Color;
extern int Interactive;
extern int Throttle;
#if 0
extern int Exclude;
#endif

extern int PassCount;
extern int FailCount;
Expand Down

0 comments on commit 2022697

Please sign in to comment.