Use TeX over LaTeX to test includes with same name as subdirs.
authorW. Trevor King <wking@drexel.edu>
Sat, 17 Apr 2010 07:22:49 +0000 (03:22 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 17 Apr 2010 07:26:10 +0000 (03:26 -0400)
Might as well keep things simple.

test/TEX/subdir-as-include.py

index f340adcda9126f49bd3bc6c9e0192d01a4ba3480..60bbfdbd2c52d605407e7e667e7cc3675763724b 100644 (file)
@@ -48,15 +48,12 @@ env.DVI('root.tex')
 """)
 
 test.write('root.tex',
-r"""\documentclass{article}
-\input{inc}
-\begin{document}
-\helloworld{}
-\end{document}
+r"""\input inc
+\bye
 """)
 
 test.write('inc.tex',
-r"""\newcommand{\helloworld}{Hello, World.}
+r"""Hello World.
 """)
 
 test.run(arguments = '.')