All checks were successful
CI Code / Check spelling (pull_request) Successful in 24s
CI Code / Check coding style (pull_request) Successful in 41s
CI Code / Linux (ubuntu) (pull_request) Successful in 6m56s
CI Code / Linux (debian) (pull_request) Successful in 7m0s
CI Code / Code Coverage (pull_request) Successful in 7m5s
CI Code / Linux (arch) (pull_request) Successful in 9m29s
Add 11 new export/import tests (24 → 35): 4 MUC database, 3 timestamp verification, 3 migration stress, 1 LMC correction with negative assert. Add delay-stamp timestamp checks to 5 base tests via /time chat set iso8601 and /history on (previously passed by accident from PTY buffer). Replace magic numbers: NEGATIVE_ASSERT_TIMEOUT, MIN_ELAPSED_INIT. Add per-test slow/fast thresholds and TZ override (prof_test_tz). Rebalance groups by whole logical blocks (spread 46s → 3s): G1=52s G2=50s G3=53s G4=53s. All 129 tests pass.
39 lines
1.0 KiB
C
39 lines
1.0 KiB
C
#ifndef __H_PROFTEST
|
|
#define __H_PROFTEST
|
|
|
|
/*
|
|
* XDG paths are dynamic and generated per-test based on stub_port.
|
|
* Each test instance uses unique directories (./tests/functionaltests/files/{port}/xdg_*)
|
|
* to allow parallel test execution without file conflicts.
|
|
*/
|
|
extern char xdg_config_home[256];
|
|
extern char xdg_data_home[256];
|
|
|
|
extern int stub_port;
|
|
|
|
int init_prof_test(void** state);
|
|
int close_prof_test(void** state);
|
|
|
|
void prof_start(void);
|
|
void prof_connect(void);
|
|
void prof_connect_with_roster(const char* roster);
|
|
void prof_input(const char* input);
|
|
|
|
int prof_output_exact(const char* text);
|
|
int prof_output_regex(const char* text);
|
|
|
|
void prof_timeout(int timeout);
|
|
void prof_timeout_reset(void);
|
|
|
|
/* Short timeout for negative assertions (seconds) */
|
|
#define NEGATIVE_ASSERT_TIMEOUT 3
|
|
|
|
/* Per-test threshold overrides (0 = use default) */
|
|
extern double prof_test_slow_threshold;
|
|
extern double prof_test_fast_threshold;
|
|
|
|
/* Timezone used for profanity child process (default "UTC") */
|
|
extern const char *prof_test_tz;
|
|
|
|
#endif
|