diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2024-07-22 17:14:53 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2024-07-22 17:14:53 -0400 |
| commit | d6d53541c974708529789bdbd982fd13c214ed51 (patch) | |
| tree | 1ea0401322cc4653519087d2c0ab83427d468f67 /eztester.h | |
| parent | 8cc3b79c41d1922c572608f000a48c068ae4c212 (diff) | |
FEAT: add function to run shell commands
Diffstat (limited to 'eztester.h')
| -rw-r--r-- | eztester.h | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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 |
