summaryrefslogtreecommitdiffstats
path: root/tests/dimension/demo.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-11-26 13:51:20 -0500
committerTavian Barnes <tavianator@gmail.com>2009-11-26 13:51:20 -0500
commitc0a0ee5ae71b97b1400efddb4c374e1d13701fa3 (patch)
tree4a121e6b3069442444e54d83fcf3fa69f08cd30c /tests/dimension/demo.sh
parent02c0213ab823a0c838d295017298cf8cd3493342 (diff)
downloaddimension-c0a0ee5ae71b97b1400efddb4c374e1d13701fa3.tar.xz
Implement background colors.
Diffstat (limited to 'tests/dimension/demo.sh')
-rwxr-xr-xtests/dimension/demo.sh31
1 files changed, 6 insertions, 25 deletions
diff --git a/tests/dimension/demo.sh b/tests/dimension/demo.sh
index fbd6fc3..0d8da5a 100755
--- a/tests/dimension/demo.sh
+++ b/tests/dimension/demo.sh
@@ -19,30 +19,11 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
#########################################################################
-demo=$(${top_builddir}/dimension/dimension --tokenize --parse ${srcdir}/demo.pov)
-demo_exp="$(echo -n \
-'(light_source {
- < - (integer "15") , (integer "20") , (integer "10") > ,
- rgb < (integer "1") , (integer "1") , (integer "1") >
- }
- box {
- < - (integer "1") , - (integer "1") , - (integer "1") > ,
- < (integer "1") , (integer "1") , (integer "1") >
- rotate < (integer "45") , (integer "0") , (integer "0") >
- pigment {
- rgbft < (integer "0") , (integer "0") , (integer "1") ,
- (float "0.25") , (float "0.25") >
- }
- }
- sphere {
- < (integer "0") , (integer "0") , (integer "0") > , (float "1.25")
- pigment {
- rgb < (integer "0") , (integer "1") , (integer "0") >
- }
- })' \
-| tr '\n' ' ' | sed -r 's/[[:space:]]+/ /g')
-$(echo -n \
-'((light_source
+demo=$(${top_builddir}/dimension/dimension --parse ${srcdir}/demo.pov)
+demo_exp=$(echo -n \
+'((background
+ (vector (integer 0) (integer 0) (float 0.1) (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)))
(box
@@ -61,7 +42,7 @@ $(echo -n \
(texture
(pigment (vector (integer 0) (integer 1) (integer 0)
(integer 0) (integer 0)))))))' \
-| tr '\n' ' ' | sed -r 's/[[:space:]]+/ /g')"
+| tr '\n' ' ' | sed -r 's/[[:space:]]+/ /g')
if [ "$demo" != "$demo_exp" ]; then
echo "demo.pov parsed as \"$demo\"" >&2