summaryrefslogtreecommitdiffstats
path: root/tests/dimension/directives.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-02-09 18:58:56 -0500
committerTavian Barnes <tavianator@gmail.com>2010-02-09 19:13:46 -0500
commitd411e681e571ac054352b9665487f10037d9325d (patch)
treecf5d425426624ca4798b286fc81116e46f31cb1d /tests/dimension/directives.sh
parent7eef42c72cc172a1ed8087e842905f42e737131d (diff)
downloaddimension-d411e681e571ac054352b9665487f10037d9325d.tar.xz
Support #include.
Diffstat (limited to 'tests/dimension/directives.sh')
-rwxr-xr-xtests/dimension/directives.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/dimension/directives.sh b/tests/dimension/directives.sh
index 8d0bbb9..3893acc 100755
--- a/tests/dimension/directives.sh
+++ b/tests/dimension/directives.sh
@@ -22,11 +22,14 @@
directives=$(${top_builddir}/dimension/dimension --tokenize --parse ${srcdir}/directives.pov)
directives_exp="$(echo -n \
'(#version (float "3.6") ;
- #declare (identifier "Center") = (integer "0") ;
+ #include (string "directives.inc")
#declare (identifier "R") = (integer "1") ;
#local (identifier "Color") = rgb < (integer "1") , (integer "0") , (integer "1") > ;
#declare (identifier "Unused") = - (integer "1") ;
#undef (identifier "Unused")
+ #ifdef \( (identifier "Local") \)
+ (identifier "Illegal")
+ #end
#ifdef \( (identifier "Unused") \)
(identifier "Illegal")
#end