Skip to content

Commit

Permalink
ObjexxFCL command unit test adjusted for E+ test env
Browse files Browse the repository at this point in the history
  • Loading branch information
DeadParrot committed Jul 10, 2017
1 parent 42dab89 commit b410e4b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions third_party/ObjexxFCL/tst/unit/command.unit.cc
Expand Up @@ -51,8 +51,10 @@ TEST( CommandTest, GetCommand )
int length;
int status;
GET_COMMAND( command, length, status );
#ifdef OBJEXX_BUILD
EXPECT_EQ( "ObjexxFCL.unit", command.substr( 0, 14 ) );
EXPECT_TRUE( 14 <= length );
#endif
EXPECT_EQ( 0, status );
}

Expand All @@ -61,8 +63,10 @@ TEST( CommandTest, GetCommand )
int length;
int status;
get_command( command, length, status );
#ifdef OBJEXX_BUILD
EXPECT_EQ( "ObjexxFCL.unit", command.substr( 0, 14 ) );
EXPECT_TRUE( 14 <= length );
#endif
EXPECT_EQ( 0, status );
}
}
Expand All @@ -74,12 +78,14 @@ TEST( CommandTest, GetCommandArgument )
int length;
int status;
GET_COMMAND_ARGUMENT( 0, value, length, status );
#ifdef OBJEXX_BUILD
#ifdef _WIN32
EXPECT_EQ( "ObjexxFCL.unit.exe", value );
EXPECT_EQ( 18, length );
#else
EXPECT_EQ( "ObjexxFCL.unit", value );
EXPECT_EQ( 14, length );
#endif
#endif
EXPECT_EQ( 0, status );
}
Expand All @@ -99,12 +105,14 @@ TEST( CommandTest, GetCommandArgument )
int length;
int status;
get_command_argument( 0, value, length, status );
#ifdef OBJEXX_BUILD
#ifdef _WIN32
EXPECT_EQ( "ObjexxFCL.unit.exe", value );
EXPECT_EQ( 18, length );
#else
EXPECT_EQ( "ObjexxFCL.unit", value );
EXPECT_EQ( 14, length );
#endif
#endif
EXPECT_EQ( 0, status );
}
Expand All @@ -126,12 +134,14 @@ TEST( CommandTest, Getarg )
std::string buffer;
int status;
GETARG( 0, buffer, status );
#ifdef OBJEXX_BUILD
#ifdef _WIN32
EXPECT_EQ( "ObjexxFCL.unit.exe", buffer );
EXPECT_EQ( 18, status );
#else
EXPECT_EQ( "ObjexxFCL.unit", buffer );
EXPECT_EQ( 14, status );
#endif
#endif
}

Expand All @@ -147,12 +157,14 @@ TEST( CommandTest, Getarg )
std::string buffer;
int status;
getarg( 0, buffer, status );
#ifdef OBJEXX_BUILD
#ifdef _WIN32
EXPECT_EQ( "ObjexxFCL.unit.exe", buffer );
EXPECT_EQ( 18, status );
#else
EXPECT_EQ( "ObjexxFCL.unit", buffer );
EXPECT_EQ( 14, status );
#endif
#endif
}

Expand Down

8 comments on commit b410e4b

@nrel-bot-3
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ObjexxFCL42 (DeadParrot) - x86_64-MacOS-10.9-clang: Build Failed

Failures:

integration Test Summary

  • Passed: 1
  • Failed: 599

regression Test Summary

  • Passed: 596
  • Failed: 2

Build Badge Test Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ObjexxFCL42 (DeadParrot) - x86_64-Linux-Ubuntu-14.04-gcc-4.8: OK (2689 of 2689 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ObjexxFCL42 (DeadParrot) - x86_64-Linux-Ubuntu-14.04-cppcheck-1.61: OK (0 of 0 tests passed, 0 test warnings)

Build Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ObjexxFCL42 (DeadParrot) - x86_64-Linux-Ubuntu-14.04-gcc-4.8-UnitTestsCoverage-Debug: OK (1451 of 1451 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ObjexxFCL42 (DeadParrot) - x86_64-Linux-Ubuntu-14.04-gcc-4.8-IntegrationCoverage-Debug: OK (2054 of 2054 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ObjexxFCL42 (DeadParrot) - x86_64-Linux-Ubuntu-14.04-custom_check: OK (0 of 0 tests passed, 0 test warnings)

Build Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ObjexxFCL42 (DeadParrot) - i386-Windows-7-VisualStudio-14: OK (2653 of 2655 tests passed, 0 test warnings)

Messages:

  • 2 tests had: EIO diffs.
  • 2 tests had: ESO big diffs.
  • 2 tests had: MTR big diffs.
  • 2 tests had: Table big diffs.

Failures:

regression Test Summary

  • Passed: 599
  • Failed: 2

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ObjexxFCL42 (DeadParrot) - Win64-Windows-7-VisualStudio-14: OK (2655 of 2655 tests passed, 0 test warnings)

Build Badge Test Badge

Please sign in to comment.