mirror of
https://gitlab.cern.ch/wotsubo/PSBoardDataBase.git
synced 2025-06-08 05:55:42 +09:00
add: test for SlaveLogParser.AsdtpResult
This commit is contained in:
parent
3b490cd28c
commit
ccbcac3c16
1 changed files with 2 additions and 29 deletions
|
@ -51,31 +51,6 @@ true || include("../src/PSBoardDataBase.jl")
|
||||||
Iterators.drop(eachline("./input/slavelogs/main/430_100.txt"), 2280),
|
Iterators.drop(eachline("./input/slavelogs/main/430_100.txt"), 2280),
|
||||||
)
|
)
|
||||||
result_asdtp = PSBoardDataBase.SlaveLogParser.parse_asdtp_section!(lines)
|
result_asdtp = PSBoardDataBase.SlaveLogParser.parse_asdtp_section!(lines)
|
||||||
# target = PSBoardDataBase.SlaveLogParser.AsdtpResult(
|
|
||||||
# 1,
|
|
||||||
# 0,
|
|
||||||
# true,
|
|
||||||
# fill(PSBoardDataBase.SlaveLogParser.AsdtpMeasurement.(fill((0, 1, 0), 32)), 8),
|
|
||||||
# 0,
|
|
||||||
# 1,
|
|
||||||
# 1,
|
|
||||||
# 0,
|
|
||||||
# 0x1,
|
|
||||||
# 0x1,
|
|
||||||
# 0xff,
|
|
||||||
# 0x0,
|
|
||||||
# 0x0,
|
|
||||||
# 0x0,
|
|
||||||
# MVector((0x1001, 0x2001, 0x3001, 0x4001, 0x5001, 0x6001, 0x7001, 0x8001)),
|
|
||||||
# )
|
|
||||||
# @info "" target == result_asdtp zip(result_asdtp.pp_pllds, target.pp_pllds) |>
|
|
||||||
# collect result_asdtp.pp_pllds == target.pp_pllds Iterators.filter(
|
|
||||||
# x -> x[1] != x[2],
|
|
||||||
# zip(result_asdtp.pp_pllds, target.pp_pllds),
|
|
||||||
# ) |> collect
|
|
||||||
# @info "" map(fieldnames(typeof(result_asdtp))) do field
|
|
||||||
# (; field, diff = getfield(result_asdtp, field) == getfield(target, field))
|
|
||||||
# end
|
|
||||||
|
|
||||||
@test result_asdtp == PSBoardDataBase.SlaveLogParser.AsdtpResult(
|
@test result_asdtp == PSBoardDataBase.SlaveLogParser.AsdtpResult(
|
||||||
1,
|
1,
|
||||||
|
@ -98,10 +73,8 @@ true || include("../src/PSBoardDataBase.jl")
|
||||||
lines = Iterators.Stateful(
|
lines = Iterators.Stateful(
|
||||||
Iterators.drop(eachline("./input/slavelogs/main/525_244.txt"), 2280),
|
Iterators.drop(eachline("./input/slavelogs/main/525_244.txt"), 2280),
|
||||||
)
|
)
|
||||||
PSBoardDataBase.SlaveLogParser.parse_asdtp_section!(lines)
|
result_asdtp = PSBoardDataBase.SlaveLogParser.parse_asdtp_section!(lines)
|
||||||
# PSBoardDataBase.SlaveLogParser.parse_slavelog_file(
|
@test result_asdtp.reconfig_done == 0
|
||||||
# "./input/slavelogs/main/525_244.txt",
|
|
||||||
# )
|
|
||||||
end
|
end
|
||||||
|
|
||||||
@testset "Download data csv" begin
|
@testset "Download data csv" begin
|
||||||
|
|
Loading…
Add table
Reference in a new issue