mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
update test script
This commit is contained in:
parent
f24c48400b
commit
3b25ec4386
1 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,8 @@ AUTH_HEADER="Authorization: $API_KEY"
|
|||
for test_file in */*/test.*
|
||||
do
|
||||
IFS='/' read -ra test_parts <<< "$test_file"
|
||||
language=${test_parts[0]}
|
||||
IFS='.' read -ra file_parts <<< "$(basename $test_file)"
|
||||
language=${file_parts[1]}
|
||||
lang_ver=${test_parts[1]}
|
||||
|
||||
test_src=$(python3 -c "import json; print(json.dumps(open('$test_file').read()))")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue