PostgreSQL Source Code
git master
|
#include <unistd.h>
Go to the source code of this file.
Data Structures | |
struct | _stringlist |
Macros | |
#define | PID_TYPE pid_t |
#define | INVALID_PID (-1) |
Typedefs | |
typedef struct _stringlist | _stringlist |
typedef PID_TYPE(* | test_function) (const char *, _stringlist **, _stringlist **, _stringlist **) |
typedef void(* | init_function) (int argc, char **argv) |
Functions | |
int | regression_main (int argc, char *argv[], init_function ifunc, test_function tfunc) |
void | add_stringlist_item (_stringlist **listhead, const char *str) |
PID_TYPE | spawn_process (const char *cmdline) |
void | replace_string (char *string, const char *replace, const char *replacement) |
bool | file_exists (const char *file) |
Variables | |
char * | bindir |
char * | libdir |
char * | datadir |
char * | host_platform |
_stringlist * | dblist |
bool | debug |
char * | inputdir |
char * | outputdir |
char * | launcher |
const char * | basic_diff_opts |
const char * | pretty_diff_opts |
#define INVALID_PID (-1) |
Definition at line 15 of file pg_regress.h.
Referenced by ecpg_start_test(), isolation_start_test(), psql_start_test(), regression_main(), and wait_for_tests().
#define PID_TYPE pid_t |
Definition at line 14 of file pg_regress.h.
Referenced by ecpg_filter(), ecpg_start_test(), isolation_start_test(), psql_command(), psql_start_test(), run_schedule(), run_single_test(), and wait_for_tests().
typedef struct _stringlist _stringlist |
typedef void(* init_function) (int argc, char **argv) |
Definition at line 32 of file pg_regress.h.
typedef PID_TYPE(* test_function) (const char *, _stringlist **, _stringlist **, _stringlist **) |
Definition at line 28 of file pg_regress.h.
void add_stringlist_item | ( | _stringlist ** | listhead, |
const char * | str | ||
) |
Definition at line 155 of file pg_regress.c.
References _stringlist::next, pg_malloc(), pg_strdup(), and _stringlist::str.
Referenced by ecpg_start_test(), isolation_init(), isolation_start_test(), psql_init(), psql_start_test(), regression_main(), run_schedule(), and split_to_stringlist().
bool file_exists | ( | const char * | file | ) |
Definition at line 1231 of file pg_regress.c.
Referenced by results_differ().
int regression_main | ( | int | argc, |
char * | argv[], | ||
init_function | ifunc, | ||
test_function | tfunc | ||
) |
Definition at line 2050 of file pg_regress.c.
References _, add_stringlist_item(), bindir, buf, config_auth_datadir, create_database(), create_role(), debug, DEVNULL, difffilename, directory_exists(), dlpath, doputenv(), drop_database_if_exists(), drop_role_if_exists(), encoding, fail_count, fail_ignore_count, file_size(), free_stringlist(), get_progname(), getopt_long(), header(), help(), hostname, i, initialize_environment(), inputdir, INVALID_PID, kill, launcher, logfile, logfilename, make_absolute_path(), make_directory(), max_concurrent_tests, max_connections, MAXPGPATH, _stringlist::next, no_argument, nolocale, open_result_files(), optarg, optind, outputdir, pg_strdup(), PG_TEXTDOMAIN, pg_usleep(), port, port_specified_by_user, postmaster_pid, postmaster_running, pretty_diff_opts, progname, required_argument, rmtree(), run_schedule(), run_single_test(), set_pglocale_pgservice(), SIGKILL, snprintf(), sockdir, spawn_process(), split_to_stringlist(), stop_postmaster(), _stringlist::str, strerror(), success_count, temp_instance, ULONGPID, use_existing, user, and wait_seconds.
Referenced by main().
void replace_string | ( | char * | string, |
const char * | replace, | ||
const char * | replacement | ||
) |
Definition at line 441 of file pg_regress.c.
References free, pg_strdup(), and strlcpy().
Referenced by convert_sourcefiles_in(), ecpg_filter(), and ecpg_start_test().
PID_TYPE spawn_process | ( | const char * | cmdline | ) |
Definition at line 1127 of file pg_regress.c.
References _, logfile, progname, psprintf(), shellprog, and strerror().
Referenced by ecpg_start_test(), isolation_start_test(), psql_start_test(), and regression_main().
const char* basic_diff_opts |
Definition at line 64 of file pg_regress.c.
Referenced by results_differ().
char* bindir |
Definition at line 76 of file pg_regress.c.
Referenced by psql_command(), psql_start_test(), regression_main(), and stop_postmaster().
char* datadir |
Referenced by identify_target_directory().
_stringlist* dblist |
Definition at line 72 of file pg_regress.c.
Referenced by do_start_worker(), get_database_list(), isolation_init(), isolation_start_test(), psql_init(), psql_start_test(), and rebuild_database_list().
bool debug |
Definition at line 48 of file pg_standby.c.
Referenced by assign_to(), CleanupPriorWALFiles(), CustomizableCleanupPriorWALFiles(), CustomizableNextWALFileReady(), getTimelineHistory(), main(), pg_attribute_printf(), pg_regcomp(), regression_main(), RestoreWALFileForRecovery(), SetWALSegSize(), slice_check(), and syncTargetDirectory().
char* host_platform |
Definition at line 52 of file pg_regress.c.
Referenced by load_resultmap().
char* inputdir |
Definition at line 74 of file pg_regress.c.
Referenced by convert_sourcefiles_in(), ecpg_start_test(), isolation_start_test(), load_resultmap(), psql_start_test(), and regression_main().
char* launcher |
Definition at line 77 of file pg_regress.c.
Referenced by isolation_start_test(), psql_start_test(), and regression_main().
char* libdir |
char* outputdir |
Definition at line 75 of file pg_regress.c.
Referenced by convert_sourcefiles(), convert_sourcefiles_in(), ecpg_start_test(), isolation_start_test(), open_result_files(), psql_start_test(), and regression_main().
const char* pretty_diff_opts |
Definition at line 65 of file pg_regress.c.
Referenced by regression_main(), and results_differ().