Skip to content

Commit

Permalink
move pva only records to test_records_pva.db
Browse files Browse the repository at this point in the history
  • Loading branch information
jsouter committed Oct 30, 2024
1 parent c93b8bb commit c15507e
Show file tree
Hide file tree
Showing 3 changed files with 196 additions and 183 deletions.
178 changes: 0 additions & 178 deletions tests/epics/signal/test_records.db
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,6 @@ record(mbbo, "$(P)$(R)enum2") {
field(PINI, "YES")
}

record(waveform, "$(P)$(R)int8a") {
field(NELM, "3")
field(FTVL, "CHAR")
field(INP, {const:[-128, 127]})
field(PINI, "YES")
}

record(waveform, "$(P)$(R)uint8a") {
field(NELM, "3")
field(FTVL, "UCHAR")
Expand All @@ -117,42 +110,13 @@ record(waveform, "$(P)$(R)int16a") {
field(PINI, "YES")
}

record(waveform, "$(P)$(R)uint16a") {
field(NELM, "3")
field(FTVL, "USHORT")
field(INP, {const:[0, 65535]})
field(PINI, "YES")
}

record(waveform, "$(P)$(R)int32a") {
field(NELM, "3")
field(FTVL, "LONG")
field(INP, {const:[-2147483648, 2147483647]})
field(PINI, "YES")
}

record(waveform, "$(P)$(R)uint32a") {
field(NELM, "3")
field(FTVL, "ULONG")
field(INP, {const:[0, 4294967295]})
field(PINI, "YES")
}

record(waveform, "$(P)$(R)int64a") {
field(NELM, "3")
field(FTVL, "INT64")
# Can't do 64-bit int with JSON numbers in a const link...
field(INP, {const:[-2147483649, 2147483648]})
field(PINI, "YES")
}

record(waveform, "$(P)$(R)uint64a") {
field(NELM, "3")
field(FTVL, "UINT64")
field(INP, {const:[0, 4294967297]})
field(PINI, "YES")
}

record(waveform, "$(P)$(R)float32a") {
field(NELM, "3")
field(FTVL, "FLOAT")
Expand Down Expand Up @@ -186,145 +150,3 @@ record(lsi, "$(P)$(R)longstr2") {
field(INP, {const:"a string that is just longer than forty characters"})
field(PINI, "YES")
}

record(waveform, "$(P)$(R)table:labels") {
field(FTVL, "STRING")
field(NELM, "5")
field(INP, {const:["Bool", "Int", "Float", "Str", "Enum"]})
field(PINI, "YES")
info(Q:group, {
"$(P)$(R)table": {
"+id": "epics:nt/NTTable:1.0",
"labels": {
"+type": "plain",
"+channel": "VAL"
}
}
})
}

record(waveform, "$(P)$(R)table:bool")
{
field(FTVL, "UCHAR")
field(NELM, "4096")
field(INP, {const:[false, false, true, true]})
field(PINI, "YES")
info(Q:group, {
"$(P)$(R)table": {
"value.bool": {
"+type": "plain",
"+channel": "VAL",
"+putorder": 1
}
}
})
}

record(waveform, "$(P)$(R)table:int")
{
field(FTVL, "LONG")
field(NELM, "4096")
field(INP, {const:[1, 8, -9, 32]})
field(PINI, "YES")
info(Q:group, {
"$(P)$(R)table": {
"value.int": {
"+type": "plain",
"+channel": "VAL",
"+putorder": 2
}
}
})
}

record(waveform, "$(P)$(R)table:float")
{
field(FTVL, "DOUBLE")
field(NELM, "4096")
field(INP, {const:[1.8, 8.2, -6, 32.9887]})
field(PINI, "YES")
info(Q:group, {
"$(P)$(R)table": {
"value.float": {
"+type": "plain",
"+channel": "VAL",
"+putorder": 3
}
}
})
}

record(waveform, "$(P)$(R)table:str")
{
field(FTVL, "STRING")
field(NELM, "4096")
field(INP, {const:["Hello", "World", "Foo", "Bar"]})
field(PINI, "YES")
info(Q:group, {
"$(P)$(R)table": {
"value.str": {
"+type": "plain",
"+channel": "VAL",
"+putorder": 4
}
}
})
}

record(waveform, "$(P)$(R)table:enum")
{
field(FTVL, "STRING")
field(NELM, "4096")
field(INP, {const:["Aaa", "Bbb", "Aaa", "Ccc"]})
field(PINI, "YES")
info(Q:group, {
"$(P)$(R)table": {
"value.enum": {
"+type": "plain",
"+channel": "VAL",
"+putorder": 5,
"+trigger": "*",
},
"": {"+type": "meta", "+channel": "VAL"}
}
})
}

record(longout, "$(P)$(R)ntndarray:ArraySize0_RBV") {
field(VAL, "3")
field(PINI, "YES")
info(Q:group, {
"$(P)$(R)ntndarray":{
"dimension[0].size":{+channel:"VAL", +type:"plain", +putorder:0}
}
})
}

record(longout, "$(P)$(R)ntndarray:ArraySize1_RBV") {
field(VAL, "2")
field(PINI, "YES")
info(Q:group, {
"$(P)$(R)ntndarray":{
"dimension[1].size":{+channel:"VAL", +type:"plain", +putorder:0}
}
})
}

record(waveform, "$(P)$(R)ntndarray:data")
{
field(FTVL, "INT64")
field(NELM, "6")
field(INP, {const:[0, 0, 0, 0, 0, 0]})
field(PINI, "YES")
info(Q:group, {
"$(P)$(R)ntndarray":{
+id:"epics:nt/NTNDArray:1.0",
"value":{
+type:"any",
+channel:"VAL",
+trigger:"*",
},
"": {+type:"meta", +channel:"SEVR"}
}
})
}
184 changes: 184 additions & 0 deletions tests/epics/signal/test_records_pva.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
record(waveform, "$(P)$(R)int8a") {
field(NELM, "3")
field(FTVL, "CHAR")
field(INP, {const:[-128, 127]})
field(PINI, "YES")
}

record(waveform, "$(P)$(R)int16a") {
field(NELM, "3")
field(FTVL, "SHORT")
field(INP, {const:[-32768, 32767]})
field(PINI, "YES")
}

record(waveform, "$(P)$(R)uint16a") {
field(NELM, "3")
field(FTVL, "USHORT")
field(INP, {const:[0, 65535]})
field(PINI, "YES")
}

record(waveform, "$(P)$(R)uint32a") {
field(NELM, "3")
field(FTVL, "ULONG")
field(INP, {const:[0, 4294967295]})
field(PINI, "YES")
}

record(waveform, "$(P)$(R)int64a") {
field(NELM, "3")
field(FTVL, "INT64")
# Can't do 64-bit int with JSON numbers in a const link...
field(INP, {const:[-2147483649, 2147483648]})
field(PINI, "YES")
}

record(waveform, "$(P)$(R)uint64a") {
field(NELM, "3")
field(FTVL, "UINT64")
field(INP, {const:[0, 4294967297]})
field(PINI, "YES")
}

record(waveform, "$(P)$(R)table:labels") {
field(FTVL, "STRING")
field(NELM, "5")
field(INP, {const:["Bool", "Int", "Float", "Str", "Enum"]})
field(PINI, "YES")
info(Q:group, {
"$(P)$(R)table": {
"+id": "epics:nt/NTTable:1.0",
"labels": {
"+type": "plain",
"+channel": "VAL"
}
}
})
}

record(waveform, "$(P)$(R)table:bool")
{
field(FTVL, "UCHAR")
field(NELM, "4096")
field(INP, {const:[false, false, true, true]})
field(PINI, "YES")
info(Q:group, {
"$(P)$(R)table": {
"value.bool": {
"+type": "plain",
"+channel": "VAL",
"+putorder": 1
}
}
})
}

record(waveform, "$(P)$(R)table:int")
{
field(FTVL, "LONG")
field(NELM, "4096")
field(INP, {const:[1, 8, -9, 32]})
field(PINI, "YES")
info(Q:group, {
"$(P)$(R)table": {
"value.int": {
"+type": "plain",
"+channel": "VAL",
"+putorder": 2
}
}
})
}

record(waveform, "$(P)$(R)table:float")
{
field(FTVL, "DOUBLE")
field(NELM, "4096")
field(INP, {const:[1.8, 8.2, -6, 32.9887]})
field(PINI, "YES")
info(Q:group, {
"$(P)$(R)table": {
"value.float": {
"+type": "plain",
"+channel": "VAL",
"+putorder": 3
}
}
})
}

record(waveform, "$(P)$(R)table:str")
{
field(FTVL, "STRING")
field(NELM, "4096")
field(INP, {const:["Hello", "World", "Foo", "Bar"]})
field(PINI, "YES")
info(Q:group, {
"$(P)$(R)table": {
"value.str": {
"+type": "plain",
"+channel": "VAL",
"+putorder": 4
}
}
})
}

record(waveform, "$(P)$(R)table:enum")
{
field(FTVL, "STRING")
field(NELM, "4096")
field(INP, {const:["Aaa", "Bbb", "Aaa", "Ccc"]})
field(PINI, "YES")
info(Q:group, {
"$(P)$(R)table": {
"value.enum": {
"+type": "plain",
"+channel": "VAL",
"+putorder": 5,
"+trigger": "*",
},
"": {"+type": "meta", "+channel": "VAL"}
}
})
}

record(longout, "$(P)$(R)ntndarray:ArraySize0_RBV") {
field(VAL, "3")
field(PINI, "YES")
info(Q:group, {
"$(P)$(R)ntndarray":{
"dimension[0].size":{+channel:"VAL", +type:"plain", +putorder:0}
}
})
}

record(longout, "$(P)$(R)ntndarray:ArraySize1_RBV") {
field(VAL, "2")
field(PINI, "YES")
info(Q:group, {
"$(P)$(R)ntndarray":{
"dimension[1].size":{+channel:"VAL", +type:"plain", +putorder:0}
}
})
}

record(waveform, "$(P)$(R)ntndarray:data")
{
field(FTVL, "INT64")
field(NELM, "6")
field(INP, {const:[0, 0, 0, 0, 0, 0]})
field(PINI, "YES")
info(Q:group, {
"$(P)$(R)ntndarray":{
+id:"epics:nt/NTNDArray:1.0",
"value":{
+type:"any",
+channel:"VAL",
+trigger:"*",
},
"": {+type:"meta", +channel:"SEVR"}
}
})
}
Loading

0 comments on commit c15507e

Please sign in to comment.