summaryrefslogtreecommitdiffstats
path: root/tests/dimension/demo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dimension/demo.sh')
-rwxr-xr-xtests/dimension/demo.sh220
1 files changed, 0 insertions, 220 deletions
diff --git a/tests/dimension/demo.sh b/tests/dimension/demo.sh
deleted file mode 100755
index 233b880..0000000
--- a/tests/dimension/demo.sh
+++ /dev/null
@@ -1,220 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# Copyright (C) 2009-2011 Tavian Barnes <tavianator@tavianator.com> #
-# #
-# This file is part of The Dimension Test Suite. #
-# #
-# The Dimension Test Suite is free software; you can redistribute it #
-# and/or modify it under the terms of the GNU General Public License as #
-# published by the Free Software Foundation; either version 3 of the #
-# License, or (at your option) any later version. #
-# #
-# The Dimension Test Suite is distributed in the hope that it will be #
-# useful, but WITHOUT ANY WARRANTY; without even the implied warranty #
-# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
-# General Public License for more details. #
-# #
-# You should have received a copy of the GNU General Public License #
-# along with this program. If not, see <http://www.gnu.org/licenses/>. #
-#########################################################################
-
-demo=$(${top_builddir}/dimension/dimension ${dimension_flags} -w768 -h480 --parse ${srcdir}/demo.pov)
-demo_exp=$(echo -n \
-'((global_settings
- (max_trace_level (integer 5))
- (adc_bailout (float 0.00392157)))
- (camera
- perspective
- (location (vector (integer 0) (float 0.25) (integer -4)
- (integer 0) (integer 0)))
- (right (vector (float 1.6) (integer 0) (integer 0) (integer 0) (integer 0)))
- (look_at (vector (integer 0) (integer 0) (integer 0)
- (integer 0) (integer 0)))
- (transformation
- (rotation (vector (integer 0) (integer 53) (integer 0)
- (integer 0) (integer 0)))))
- (background
- (vector (integer 0) (integer 0) (integer 0) (integer 0) (integer 1)))
- (sky_sphere
- (pigment
- (pattern
- (gradient (vector (integer 0) (integer 1)
- (integer 0) (integer 0) (integer 0))))
- (pigment-modifiers
- (color_map
- (color_map-entry
- (float 0)
- (vector (integer 1) (float 0.5) (integer 0)
- (integer 0) (integer 0)))
- (color_map-entry
- (float 0.35)
- (vector (integer 0) (float 0.1) (float 0.2)
- (float 0.1) (integer 0)))))))
- (light_source
- (vector (integer -15) (integer 20) (integer 10) (integer 0) (integer 0))
- (vector (integer 1) (integer 1) (integer 1) (integer 0) (integer 0))
- object-modifiers)
- (object
- (difference
- (object
- (box
- (vector (integer -1) (integer -1) (integer -1)
- (integer 0) (integer 0))
- (vector (integer 1) (integer 1) (integer 1) (integer 0) (integer 0)))
- (object-modifiers
- (transformation
- (rotation (vector (integer 45) (integer 0) (integer 0)
- (integer 0) (integer 0))))
- (texture
- (pigment
- (vector (integer 0) (integer 0) (integer 1)
- (float 0.25) (float 0.5))
- pigment-modifiers)
- (finish
- (reflection
- (vector (float 0.5) (float 0.5) (float 0.5)
- (float 0.5) (float 0.5))
- (vector (float 0.5) (float 0.5) (float 0.5)
- (float 0.5) (float 0.5))
- reflection-items)))
- (interior
- (ior (float 1.1)))))
- (object
- (sphere
- (vector (integer 0) (integer 0) (integer 0) (integer 0) (integer 0))
- (float 1.25))
- (object-modifiers
- (texture
- (pigment
- (vector (integer 0) (integer 1) (integer 0)
- (integer 0) (integer 0))
- pigment-modifiers)
- (finish
- (phong (float 0.2))
- (phong_size (float 40)))))))
- object-modifiers)
- (object
- (union
- (object
- (cylinder
- (vector (float 0) (float -1.25) (float 0) (float 0) (float 0))
- (vector (float 0) (float 1.25) (float 0) (float 0) (float 0))
- (float 0.1)
- (integer 0))
- object-modifiers)
- (object
- (cone
- (vector (float 0) (float 1.25) (float 0) (float 0) (float 0))
- (float 0.1)
- (vector (float 0) (float 1.5) (float 0) (float 0) (float 0))
- (integer 0)
- (integer 1))
- object-modifiers))
- (object-modifiers
- (pigment
- (pattern (gradient (vector (integer 0) (integer 1) (integer 0)
- (integer 0) (integer 0))))
- (pigment-modifiers
- (color_map
- (color_map-entry
- (integer 0)
- (vector (integer 1) (integer 0) (integer 0)
- (integer 0) (integer 0)))
- (color_map-entry
- (float 0.166667)
- (vector (integer 1) (float 0.5) (integer 0)
- (integer 0) (integer 0)))
- (color_map-entry
- (float 0.333333)
- (vector (integer 1) (integer 1) (integer 0)
- (integer 0) (integer 0)))
- (color_map-entry
- (float 0.5)
- (vector (integer 0) (integer 1) (integer 0)
- (integer 0) (integer 0)))
- (color_map-entry
- (float 0.666667)
- (vector (integer 0) (integer 0) (integer 1)
- (integer 0) (integer 0)))
- (color_map-entry
- (float 0.833333)
- (vector (integer 1) (integer 0) (integer 1)
- (integer 0) (integer 0)))
- (color_map-entry
- (integer 1)
- (vector (integer 1) (integer 0) (integer 0)
- (integer 0) (integer 0))))
- (transformation
- (scale (vector (integer 1) (float 2.75) (integer 1)
- (integer 0) (integer 0))))
- (transformation
- (translation (vector (float 0) (float -1.25) (float 0)
- (float 0) (float 0))))))
- (transformation
- (rotation (vector (integer -45) (integer 0) (integer 0)
- (integer 0) (integer 0))))))
- (object
- (union
- (object
- (torus (float 0.15) (float 0.05))
- (object-modifiers
- (transformation
- (translation (vector (integer 0) (integer -1) (integer 0)
- (integer 0) (integer 0))))))
- (object
- (torus (float 0.15) (float 0.05))
- object-modifiers)
- (object
- (torus (float 0.15) (float 0.05))
- (object-modifiers
- (transformation
- (translation (vector (integer 0) (integer 1) (integer 0)
- (integer 0) (integer 0)))))))
- (object-modifiers
- (pigment
- (vector (integer 0) (integer 0) (integer 1) (integer 0) (integer 0))
- pigment-modifiers)
- (finish
- (ambient
- (vector (integer 1) (integer 1) (integer 1) (integer 1) (integer 1))))
- (transformation
- (rotation (vector (integer -45) (integer 0) (integer 0)
- (integer 0) (integer 0))))))
- (object
- (plane
- (vector (integer 0) (integer 1) (integer 0) (integer 0) (integer 0))
- (integer -2))
- (object-modifiers
- (pigment
- (pattern checker)
- (pigment-modifiers
- (quick_color
- (vector (integer 1) (float 0.5) (float 0.75)
- (integer 0) (integer 0)))
- (pigment-list
- (pigment
- (vector (integer 1) (integer 1) (integer 1)
- (integer 0) (integer 0))
- pigment-modifiers)
- (pigment
- (pattern checker)
- (pigment-modifiers
- (transformation
- (scale (vector (float 0.333333) (float 0.333333)
- (float 0.333333) (float 0.333333)
- (float 0.333333))))
- (color-list
- (vector (integer 0) (integer 0) (integer 0)
- (integer 0) (integer 0))
- (vector (integer 1) (integer 1) (integer 1)
- (integer 0) (integer 0)))))))))))' \
-| tr '\n' ' ' | sed -r 's/[[:space:]]+/ /g')
-
-if [ "$demo" != "$demo_exp" ]; then
- echo "demo.pov parsed as \"$demo\"" >&2
- echo " -- expected \"$demo_exp\"" >&2
- exit 1
-fi
-
-${top_builddir}/dimension/dimension ${dimension_flags} -w768 -h480 -o demo.png ${srcdir}/demo.pov