Configuration Options - gavinfielder/pft GitHub Wiki

These options are defined in options-config.ini:

Option Description
DEFAULT_RUN_OPTIONS (string) Determines default program behavior. These are the Run Options that are selected by default at the start of the program; they are overridden by any command line options given at execution time.
TIMEOUT_SECONDS (float) time in seconds for a test to time out, when timeouts are enabled
TEST_OUTDATED_TIME (long) time in seconds for a test result history to become outdated. The default is 900 (15 minutes). You can set this value to 0 to always consider tests outdated, or to 9999999 to never consider test results outdated, or anything in between.
MAKE_RE_ALSO_REBUILDS_LIBFTPRINTF (1 or 0) if 1, make re will also recompile your project
IGNORE_RETURN_VALUE (1 or 0) When this option is 0, tests fail if ft_printf and printf have different return values. If 1, the return value is ignored.
ENABLE_DISABLE_REMAKES_PFT (1 or 0) When this option is 1, the enable-test and disable-test scripts also re-make PFT when finished.
ENABLE_DISABLE_TOUCHES_TEST_HISTORY (1 or 0) When this option is 1, the enable=test and disable-test scripts touch history.csv when finished so as to prevent a Makefile removal of the test history.
REMOVE_HISTORY_WHEN_TESTS_NEW (1 or 0) If this option is 1, the makefile will remove history.csv whenever unit_tests.c is strictly newer.
LEAKS_TEST_CMD (C macro) The command to run at the end of the test run when the leaks test (-k) is selected. The default is to invoke leaks(1) with system(3).
TEST_FAIL_LOGGING_MAXBYTES (int) The maximum size of output strings to show in results.txt
SINGLE_NUMBER_SINGLE_TEST (1 or 0) When this option is 1, single numeric arguments run a single test. If 0, single numeric arguments runs all tests starting at the given number. The latter is a legacy feature, but could still be useful if you are using only your own tests and are writing them as you develop
SINGLE_TEST_TURNS_ON_LLDB_COMPAT_MODE (1 or 0) When this option is 1 (and SINGLE_NUMBER_SINGLE_TEST is also 1), single numeric arguments run the requested test in debugger compatibility mode unless explicitly overridden with command line options.
LIBFTPRINTF_DIR (path) If you do not wish to have PFT inside your local repo, you can specify a different path for your project.
INCLUDE_LIBPTHREAD (1 or 0) This is a compatibility feature for linux systems. If you have undefined references to pthread_ functions, set this to 1