2013-08-12 16:38:49 +02:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
#
|
|
|
|
|
# tests for scons doxygen builder
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
import unittest
|
|
|
|
|
import os
|
|
|
|
|
import sys
|
|
|
|
|
from doxygen import DoxyfileParse
|
|
|
|
|
|
|
|
|
|
class TestParser(unittest.TestCase):
|
|
|
|
|
def testSimpleParse(self):
|
|
|
|
|
text="""
|
2013-08-12 22:31:57 +02:00
|
|
|
# comment
|
2013-08-12 16:38:49 +02:00
|
|
|
INPUT = test.h
|
|
|
|
|
"""
|
|
|
|
|
result = DoxyfileParse(text)
|
|
|
|
|
self.assertEqual(["test.h"], result["INPUT"])
|
|
|
|
|
|
|
|
|
|
def testParseTagOnFirstLine(self):
|
|
|
|
|
text="""INPUT=."""
|
|
|
|
|
result = DoxyfileParse(text)
|
|
|
|
|
self.assertEqual(["."], result["INPUT"])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
|
unittest.main()
|