1- import multiprocessing
21from typing import List
32import numpy
43import pytest
1211 log ,
1312 select_and_recv ,
1413 TIMEOUT ,
15- get_multiprocessing_context
14+ get_multiprocessing_context ,
15+ in_records ,
1616)
1717
1818from softioc import asyncio_dispatcher , builder , softioc
@@ -54,23 +54,15 @@ def record_func_names(fixture_value):
5454 builder .WaveformOut ,
5555 builder .longStringIn ,
5656 builder .longStringOut ,
57+ builder .int64In ,
58+ builder .int64Out ,
5759 ],
5860 ids = record_func_names ,
5961)
6062def record_func (request ):
6163 """The list of record creation functions"""
6264 return request .param
6365
64- # A list of all In records, used to filter out various tests
65- in_records = [
66- builder .aIn ,
67- builder .boolIn ,
68- builder .longIn ,
69- builder .mbbIn ,
70- builder .stringIn ,
71- builder .WaveformIn ,
72- builder .longStringIn ,
73- ]
7466
7567def record_values_names (fixture_value ):
7668 """Provide a nice name for the tests in the record_values fixture"""
@@ -96,6 +88,8 @@ def record_values_names(fixture_value):
9688 ("aOut_nan" , builder .aOut , nan , nan , float ),
9789 ("longIn_int" , builder .longIn , 5 , 5 , int ),
9890 ("longOut_int" , builder .longOut , 5 , 5 , int ),
91+ ("int64In_int" , builder .int64In , 65 , 65 , int ),
92+ ("int64Out_int" , builder .int64Out , 65 , 65 , int ),
9993 ("boolIn_int" , builder .boolIn , 1 , 1 , int ),
10094 ("boolOut_int" , builder .boolOut , 1 , 1 , int ),
10195 ("boolIn_true" , builder .boolIn , True , 1 , int ),
@@ -737,6 +731,8 @@ def test_value_post_init_caput(self):
737731 ("default_aIn" , builder .aIn , None , 0.0 , float ),
738732 ("default_longOut" , builder .longOut , None , 0 , int ),
739733 ("default_longIn" , builder .longIn , None , 0 , int ),
734+ ("default_int64Out" , builder .int64Out , None , 0 , int ),
735+ ("default_int64In" , builder .int64In , None , 0 , int ),
740736 ("default_boolOut" , builder .boolOut , None , 0 , int ),
741737 ("default_boolIn" , builder .boolIn , None , 0 , int ),
742738 ("default_Action" , builder .Action , None , 0 , int ),
@@ -761,6 +757,8 @@ class TestDefaultValue:
761757 (builder .aIn , 0.0 , float ),
762758 (builder .longOut , 0 , int ),
763759 (builder .longIn , 0 , int ),
760+ (builder .int64Out , 0 , int ),
761+ (builder .int64In , 0 , int ),
764762 (builder .boolOut , 0 , int ),
765763 (builder .boolIn , 0 , int ),
766764 (builder .Action , 0 , int ),
0 commit comments