Skip to content

Commit

Permalink
added ubsan check script
Browse files Browse the repository at this point in the history
  • Loading branch information
markvanderloo committed Oct 26, 2015
1 parent 27cd1a5 commit 93e808d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ubsan.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

# perform build and R CMD check with undefined behaviour sanitizer switched on.

## Thanks to Dirk for posting this command here:
## http://dirk.eddelbuettel.com/blog/2015/01/18/#ubsan-clang-container

cd output

R CMD build ../pkg

docker run --rm -ti -v $(pwd):/mnt rocker/r-devel-ubsan-clang check.r --setwd /mnt --install-deps stringdist_*.tar.gz

cd ..

0 comments on commit 93e808d

Please sign in to comment.