aboutsummaryrefslogtreecommitdiff
path: root/compiler/test/debug/test
blob: 78bec3be055becc658b39ae8475d1cfe68bb514a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash

set -x

DIR="$( cd "$( dirname "$0" )" && pwd )"

for file in tests/debug/*.scala; do
   ./bin/dotc $file || exit 1
   ./bin/dotr -d Test&
   $DIR/Gen $file > robot
   expect robot

   if [[ $? != 0 ]]; then
      echo "debug test failed for file $file"
      exit 1
   fi
done