Skip to content

Use JET's test functionality. #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
version:
- '1.10'
- '1.11'
- 'nightly'
os:
- ubuntu-latest
- macOS-latest
Expand Down
24 changes: 8 additions & 16 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,12 @@ SoapySDR.register_log_handler()
@test typeof(steprangedb) ==
Interval{Gain{Unitful.LogInfo{:Decibel,10,10},:?,Float64},Closed,Closed}
@test typeof(intervalrangehz) == Interval{hztype,Closed,Closed}
if VERSION >= v"1.7"
@test typeof(steprangehz) == StepRangeLen{
hztype,
Base.TwicePrecision{hztype},
Base.TwicePrecision{hztype},
Int64,
}
else
@test typeof(steprangehz) == StepRangeLen{
hztype,
Base.TwicePrecision{hztype},
Base.TwicePrecision{hztype},
}
end
@test typeof(steprangehz) == StepRangeLen{
hztype,
Base.TwicePrecision{hztype},
Base.TwicePrecision{hztype},
Int64,
}

@test sprint(sd.print_hz_range, intervalrangehz) == "00..0.001 kHz"
@test sprint(sd.print_hz_range, steprangehz) == "00 Hz:0.0001 kHz:0.001 kHz"
Expand Down Expand Up @@ -292,8 +284,8 @@ SoapySDR.register_log_handler()
Aqua.test_all(SoapySDR; ambiguities = false)
end

VERSION >= v"1.8" && @testset "JET" begin
isempty(VERSION.prerelease) && @testset "JET" begin
using JET
display(JET.report_package(SoapySDR))
JET.test_package(SoapySDR; target_modules=[SoapySDR])
end
end
Loading