fixes path handling in test to be more robust and work with Pkg.test
This commit is contained in:
parent
131fe7804d
commit
9bed45bbc8
3 changed files with 4 additions and 5 deletions
|
@ -2,12 +2,11 @@ language: cpp
|
|||
compiler:
|
||||
- clang
|
||||
notifications:
|
||||
email: false
|
||||
email: true
|
||||
before_install:
|
||||
- sudo add-apt-repository ppa:staticfloat/julia-deps -y
|
||||
- sudo add-apt-repository ppa:staticfloat/julianightlies -y
|
||||
- sudo apt-get update -qq -y
|
||||
- sudo apt-get install libpcre3-dev julia -y
|
||||
script:
|
||||
- julia -e 'Pkg.init(); run(`ln -s $(pwd()) $(Pkg.dir("AudioIO"))`); Pkg.pin("AudioIO"); Pkg.resolve(); Pkg.add("BinDeps"); Pkg.build("AudioIO")'
|
||||
- test/test.jl
|
||||
- julia -e 'Pkg.init(); run(`ln -s $(pwd()) $(Pkg.dir("AudioIO"))`); Pkg.pin("AudioIO"); Pkg.resolve(); Pkg.add("BinDeps"); Pkg.build("AudioIO"); Pkg.test("AudioIO")'
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
using FactCheck
|
||||
|
||||
test_regex = r"^test_.*\.jl$"
|
||||
test_dir = "test"
|
||||
test_dir = Pkg.dir("AudioIO", "test")
|
||||
|
||||
test_files = filter(n -> ismatch(test_regex, n), readdir(test_dir))
|
||||
if length(test_files) == 0
|
||||
|
|
|
@ -100,7 +100,7 @@ facts("AudioNode Stopping") do
|
|||
end
|
||||
|
||||
facts("WAV file write/read") do
|
||||
fname = "test/sinwave.wav"
|
||||
fname = Pkg.dir("AudioIO", "test", "sinwave.wav")
|
||||
|
||||
samplerate = 44100
|
||||
freq = 440
|
||||
|
|
Loading…
Reference in a new issue