test: Disable -t=auto on CI.
Some checks failed
Build Tilde Friends / Build-All (push) Failing after 9m17s

This commit is contained in:
2025-12-06 23:01:07 -05:00
parent 68dc5129c8
commit 1e1059489b
2 changed files with 18 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ jobs:
- name: Build
run: ANDROID_SDK=$HOME/.android/sdk make -j`nproc` all dist
- name: Test Debug
run: out/debug/tildefriends test
run: TF_TEST_AUTO=0 out/debug/tildefriends test
- name: Docker build
run: DOCKER_BUILDKIT=1 docker build .
- name: Upload artifacts

View File

@@ -934,20 +934,34 @@ static void _tf_test_run(const tf_test_options_t* options, const char* name, voi
tf_free(dup);
}
if ((!opt_in && !options->tests) || specified)
{
#define GREEN "\e[1;32m"
#define GRAY "\e[1;90m"
#define MAGENTA "\e[1;35m"
#define CYAN "\e[1;36m"
#define RESET "\e[0m"
size_t length = strlen("TF_TEST_") + strlen(name) + 1;
char* env_name = alloca(length);
snprintf(env_name, length, "TF_TEST_%s", name);
char buffer[8] = { 0 };
size_t buffer_size = sizeof(buffer);
bool exclude = uv_os_getenv(env_name, buffer, &buffer_size) == 0 && strcmp(buffer, "0") == 0;
if (exclude)
{
tf_printf("Test " GRAY "%s" RESET " disabled by %s.\n", name, env_name);
}
if (((!opt_in && !options->tests) || specified) && !exclude)
{
tf_printf(CYAN "== running test " MAGENTA "%s" CYAN " ==" RESET "\n", name);
test(options);
tf_printf("[" GREEN "pass" RESET "] %s\n", name);
}
#undef GREEN
#undef GRAY
#undef MAGENTA
#undef CYAN
#undef RESET
}
}
#endif