From d6d53541c974708529789bdbd982fd13c214ed51 Mon Sep 17 00:00:00 2001 From: JP Appel Date: Mon, 22 Jul 2024 17:14:53 -0400 Subject: FEAT: add function to run shell commands --- eztester.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'eztester.h') diff --git a/eztester.h b/eztester.h index ca8d4af..682d348 100644 --- a/eztester.h +++ b/eztester.h @@ -45,14 +45,13 @@ void eztester_log(const char *__restrict format, ...); // run all tests with a list with a given behavior void eztester_run(eztester_list *test_list, const eztester_behavior behavior); -/* Run a shell script found at file_path, it can read in from input and write to - * output +/* Wrapper for `system` function * - * Returns exit code of the command - * UNIMPLEMENTED! + * if command is null return the availability of a shell (negated result of system's behavior) + * + * If command is not null return the exit status of the process */ -unsigned char ezteser_run_shell_script(const char *file_path, FILE *input, - FILE *output); +int eztester_shell(const char *command); // tests that always return an eztester_status -- cgit v1.2.3