File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
tests/src/test/scala/org/scalanative/bindgen Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
import scala .sys .process ._
2
2
3
3
addCommandAlias(" verify" , " ; ^test:compile ; ^test ; ^scripted ; docs/makeSite" )
4
+ addCommandAlias(
5
+ " verifyWithoutMemoryChecks" ,
6
+ " ; " +
7
+ " ^test:compile ; " +
8
+ " ^testOnly -- -z \" should exist\" -z \" correct bindings\" ; " +
9
+ " ^scripted ; " +
10
+ " docs/makeSite" )
4
11
5
12
val Versions = new {
6
13
val scala210 = " 2.10.6"
Original file line number Diff line number Diff line change @@ -13,4 +13,8 @@ if [[ ! -e bindgen/target/.llvm-version ]] || [[ "$(<bindgen/target/.llvm-versio
13
13
fi
14
14
15
15
make -C bindgen/target
16
- sbt " ${@:- verify} "
16
+ if [[ " ${LLVM_VERSION} " == " 5.0" ]]; then
17
+ sbt " ${@:- verify} "
18
+ else
19
+ sbt " ${@:- verifyWithoutMemoryChecks} "
20
+ fi
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class BindgenSpec extends FunSpec {
51
51
}
52
52
53
53
for (input <- inputDirectory.listFiles() if input.getName.endsWith(" .h" )) {
54
- it(s " should generate bindings for ${input.getName}" ) {
54
+ it(s " should generate correct bindings for ${input.getName}" ) {
55
55
val testName = input.getName.replace(" .h" , " " )
56
56
val expected = new File (inputDirectory, testName + " .scala" )
57
57
val output = new File (outputDir, testName + " .scala" )
You can’t perform that action at this time.
0 commit comments