Convert paradoc test to bash script

Now loads the paradoc correctly and gets paradoc to print the result
This commit is contained in:
Pyroseza 2021-01-21 22:05:28 +00:00
parent 4a160ac5ab
commit 7ab4373992
2 changed files with 11 additions and 5 deletions

View File

@ -1,5 +0,0 @@
try:
import paradoc
print('good')
except:
pass

11
lxc/tests/test_paradoc.sh Normal file
View 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