Shifting tracking of package metadata mostly to git; cleaning depends; efficiency update in testing

This commit is contained in:
DarkFeather
2019-05-10 16:21:14 -05:00
parent 7376f12a27
commit 216021b633
5 changed files with 25 additions and 25 deletions

View File

@@ -2,28 +2,26 @@ import os
import re
import shutil
# c cs java bash php perl python
def CheckOutput(output):
return output == 'Hello world!\n'
def test_c():
print(os.getcwd())
fh = os.popen("make c &>/dev/null; ./HelloWorld", mode='r', buffering=-1)
fh = os.popen("./HelloWorld", mode='r', buffering=-1)
output = fh.read()
retcode = fh.close()
assert retcode == None and CheckOutput(output)
def test_cs():
print(os.getcwd())
fh = os.popen("make cs &>/dev/null; mono ./HelloWorld.exe", mode='r', buffering=-1)
fh = os.popen("mono ./HelloWorld.exe", mode='r', buffering=-1)
output = fh.read()
retcode = fh.close()
assert retcode == None and CheckOutput(output)
def test_java():
print(os.getcwd())
fh = os.popen("make java &>/dev/null; java HelloWorld", mode='r', buffering=-1)
fh = os.popen("java HelloWorld", mode='r', buffering=-1)
output = fh.read()
retcode = fh.close()
assert retcode == None and CheckOutput(output)