Skip to content

Commit

Permalink
Do not run memory checks in build with llvm 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kornilova203 committed Jul 13, 2018
1 parent 70589eb commit 30d61e3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import scala.sys.process._

addCommandAlias("verify", "; ^test:compile ; ^test ; ^scripted ; docs/makeSite")
addCommandAlias(
"verifyWithoutMemoryChecks",
"; ^test:compile ; " +
"^testOnly -- -z \"should exist\" -z \"correct bindings\" ; " +
"^scripted ; " +
"docs/makeSite")

val Versions = new {
val scala210 = "2.10.6"
Expand Down
6 changes: 5 additions & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ if [[ ! -e bindgen/target/.llvm-version ]] || [[ "$(<bindgen/target/.llvm-versio
fi

make -C bindgen/target
sbt "${@:-verify}"
if [[ "${LLVM_VERSION}" == "5.0" ]]; then
sbt "${@:-verify}"
else
sbt "${@:-verifyWithoutMemoryChecks}"
fi
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class BindgenSpec extends FunSpec {
}

for (input <- inputDirectory.listFiles() if input.getName.endsWith(".h")) {
it(s"should generate bindings for ${input.getName}") {
it(s"should generate correct bindings for ${input.getName}") {
val testName = input.getName.replace(".h", "")
val expected = new File(inputDirectory, testName + ".scala")
val output = new File(outputDir, testName + ".scala")
Expand Down

0 comments on commit 30d61e3

Please sign in to comment.