#!/bin/bash
files=test-declaration.az
files="$files test-value.az"
files="$files test-map.az"
files="$files test-csv.az"
files="$files test-dict.az"
files="$files test-list-iterator.az"
files="$files test-object.az"
files="$files test-operator.az"
files="$files test-function.az"
files="$files test-repeater.az"
files="$files test-block.az"
files="$files test-re.az"
files="$files test-string.az"
files="$files test-application.az"
files="$files test-error.az"
files="$files test-formatter.az"
files="$files test-sqlite3.az"
files="$files test-filter.az"
files="$files test-binary.az"
files="$files test-matrix.az"
files="$files test-math.az"
files="$files test-diff.az"
files="$files test-optimize.az"
files="$files test-image.az"
files="$files test-opengl.az"
files="$files test-hash.az"
files="$files test-datetime.az"
#files="$files test-module.az"
#files="$files test-file.az"

for file in $files
do
  echo $file
  ../src/ascript $file > result/${file%.az}.result.txt
  diff -u --strip-trailing-cr result/${file%.az}.sample.txt result/${file%.az}.result.txt
done

