mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 20:46:26 +02:00
Merge branch 'master' of ssh://github.com/engineer-man/piston
This commit is contained in:
commit
9237806dee
5 changed files with 14 additions and 9 deletions
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /tmp/$2
|
||||
timeout -s KILL 3 python3 -m paradoc code.code < args.args
|
||||
export PYTHONPATH=$PYTHONPATH:/opt/paradoc
|
||||
timeout -s KILL 3 python3.8 -m paradoc code.code < args.args
|
||||
|
|
|
@ -52,4 +52,4 @@ echo 'testing python2'
|
|||
echo 'testing python3'
|
||||
../../cli/execute python3 test3.py
|
||||
echo 'testing paradoc'
|
||||
../../cli/execute python3 test_paradoc.py
|
||||
../../cli/execute bash test_paradoc.sh
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
try:
|
||||
import paradoc
|
||||
print('good')
|
||||
except:
|
||||
pass
|
11
lxc/tests/test_paradoc.sh
Normal file
11
lxc/tests/test_paradoc.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
# add paradoc module to python python
|
||||
export PYTHONPATH=$PYTHONPATH:/opt/paradoc
|
||||
# file for test code
|
||||
test_code=/tmp/paradoc.test
|
||||
# save test code to file
|
||||
echo -n iP>$test_code
|
||||
# pass param to paradoc module and have it print it
|
||||
echo good | python3.8 -m paradoc $test_code
|
||||
# clean test code
|
||||
rm -f $test_code
|
Loading…
Add table
Add a link
Reference in a new issue