aboutsummaryrefslogtreecommitdiffstats
path: root/eztester.h
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2024-07-22 17:14:53 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2024-07-22 17:14:53 -0400
commitd6d53541c974708529789bdbd982fd13c214ed51 (patch)
tree1ea0401322cc4653519087d2c0ab83427d468f67 /eztester.h
parent8cc3b79c41d1922c572608f000a48c068ae4c212 (diff)
FEAT: add function to run shell commands
Diffstat (limited to 'eztester.h')
-rw-r--r--eztester.h11
1 files changed, 5 insertions, 6 deletions
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