(cc, source, executable, options)
| 20 | ''') |
| 21 | |
| 22 | def call_security_check(cc, source, executable, options): |
| 23 | subprocess.check_call([cc,source,'-o',executable] + options) |
| 24 | p = subprocess.Popen(['./security-check.py',executable], stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE, universal_newlines=True) |
| 25 | (stdout, stderr) = p.communicate() |
| 26 | return (p.returncode, stdout.rstrip()) |
| 27 | |
| 28 | class TestSecurityChecks(unittest.TestCase): |
| 29 | def test_ELF(self): |
no outgoing calls
no test coverage detected