There's little point in running the same test over and over for a huge number of frames if it doesn't test much different things. This reduces the runtime of EncoderInterfaceTest.* from 322 seconds to 140 seconds, when running in valgrind.
Showing the changes to test/encoder/EncUT_EncoderExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -12,7 +12,7 @@ class EncoderInterfaceTest : public ::testing::Test { · 11 unmodified lines | ||
| 12 | 12 | #define VALID_SIZE(iSize) (((iSize)>1)?(iSize):1) |
| 13 | 13 | #define MEM_VARY_SIZE (512) |
| 14 | 14 | #define IMAGE_VARY_SIZE (512) |
| 15 | −#define TEST_FRAMES (200) | |
| 15 | +#define TEST_FRAMES (30) | |
| 16 | 16 | |
| 17 | 17 | #define NAL_HEADER_BYTES (4) |
| 18 | 18 | #define NAL_TYPE (0x0F) |