2014-06-30 21:24:29 -04:00
|
|
|
#!/usr/bin/env julia
|
|
|
|
|
2016-03-20 00:28:56 -04:00
|
|
|
using PortAudio
|
2019-09-08 18:59:37 -05:00
|
|
|
using Test
|
2016-03-19 21:56:42 -04:00
|
|
|
|
2018-08-15 23:18:44 -04:00
|
|
|
@testset "PortAudio Tests" begin
|
2016-08-16 18:10:03 -04:00
|
|
|
@testset "Reports version" begin
|
|
|
|
io = IOBuffer()
|
|
|
|
PortAudio.versioninfo(io)
|
2017-05-11 00:58:49 -04:00
|
|
|
result = split(String(take!((io))), "\n")
|
2016-08-16 18:10:03 -04:00
|
|
|
# make sure this is the same version I tested with
|
2017-05-17 00:32:19 -04:00
|
|
|
@test startswith(result[1], "PortAudio V19")
|
2017-05-18 12:38:13 -04:00
|
|
|
end
|
|
|
|
|
2020-01-30 15:25:08 -05:00
|
|
|
@testset "Can list devices without crashing" begin
|
|
|
|
PortAudio.devices()
|
2016-08-16 18:10:03 -04:00
|
|
|
end
|
2016-03-20 05:09:56 -04:00
|
|
|
end
|