trampgeek / jobe

jobe is a server that runs small programming jobs in a variety of programming languages
MIT License
111 stars 80 forks source link

How to send multiple inputs on API request #44

Closed tavivek closed 3 years ago

tavivek commented 3 years ago

Hi Team,

Is it possible to send one or more test cases/input in the same API request? Right now, I have to send the input one by one to JobeServer.

Thanks

trampgeek commented 3 years ago

Jobe does what is says on the box - runs a single job, with its standard input and possible support files. There can only be one standard input for a single run, so the short answer is no. But there's nothing stopping you from submitting a job which is essentially a script defining multiple test cases and associated standard inputs. The script can run the (embedded) program for each test, switching the standard input between tests. We do this routinely when using Jobe from CodeRunner. Yet another approach is to upload a zip file of runs and have the script/program unzip that file and run all the jobs in it.