File tree 2 files changed +19
-18
lines changed
2 files changed +19
-18
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- set -eux
4
-
5
- SBT=" ./project/scripts/sbt" # if run on CI
6
- # SBT="sbt" # if run locally
7
-
8
- SOURCE=" tests/pos/HelloWorld.scala"
9
- MAIN=" HelloWorld"
10
- EXPECTED_OUTPUT=" hello world"
3
+ source $( dirname $0 ) /cmdTestsCommon.inc.sh
11
4
12
5
# check that benchmarks can run
13
6
" $SBT " " dotty-bench/jmh:run 1 1 tests/pos/alias.scala"
14
7
" $SBT " " dotty-bench-bootstrapped/jmh:run 1 1 tests/pos/alias.scala"
15
8
" $SBT " " dotty-bench-bootstrapped/jmh:run 1 1 -with-compiler compiler/src/dotty/tools/dotc/core/Types.scala"
16
9
17
- OUT=$( mktemp -d)
18
- OUT1=$( mktemp -d)
19
- tmp=$( mktemp)
20
-
21
- clear_out ()
22
- {
23
- local out=" $1 "
24
- rm -rf " $out /*"
25
- }
26
-
27
10
# check that `sbt dotc` compiles and `sbt dotr` runs it
28
11
echo " testing sbt dotc and dotr"
29
12
" $SBT " " ;dotc $SOURCE -d $OUT ;dotr -classpath $OUT $MAIN " > " $tmp "
Original file line number Diff line number Diff line change
1
+ set -eux
2
+
3
+ SBT=" ./project/scripts/sbt" # if run on CI
4
+ # SBT="sbt" # if run locally
5
+
6
+ SOURCE=" tests/pos/HelloWorld.scala"
7
+ MAIN=" HelloWorld"
8
+ EXPECTED_OUTPUT=" hello world"
9
+
10
+ OUT=$( mktemp -d)
11
+ OUT1=$( mktemp -d)
12
+ tmp=$( mktemp)
13
+
14
+ clear_out ()
15
+ {
16
+ local out=" $1 "
17
+ rm -rf " $out /*"
18
+ }
You can’t perform that action at this time.
0 commit comments