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