Skip to content

Commit

Permalink
add make test
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Aug 30, 2020
1 parent 4119089 commit a00df4c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tools/wandbox/tests/test_iuwandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,17 @@ def test_no_min_run(self):
self.assertRegex(output, r'\[ \s+OK \]')
self.assertFalse('-Wmisleading-indentation' in output)

def test_run(self):
sys.argv[1:] = [test_src]
sys.argv.extend(test_opt)
sys.argv.extend(['--make'])
print(sys.argv)
with self.assertRaises(SystemExit) as cm:
iuwandbox.main()
output = self.dump()
self.assertEqual(cm.exception.code, 0, output)
self.assertRegex(output, r'\[ \s+OK \]')


if __name__ == "__main__":
unittest.main()

0 comments on commit a00df4c

Please sign in to comment.