summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-09-25 21:58:50 +0100
committerDave Hibberd <hibby@debian.org>2025-09-25 21:58:50 +0100
commitdff1a610625ebe7841fca01e20ca6d86b65ee4d0 (patch)
tree97c0482e33cbbd110ac648db8a32ea8e09638134 /tests
parentf6b2e6e7159906b8b3204dca3a9e58e42c36ccbb (diff)
New upstream version 20250912upstream/20250912
Diffstat (limited to 'tests')
-rw-r--r--tests/__init__.py3
-rw-r--r--tests/__pycache__/__init__.cpython-310.pycbin4271 -> 4507 bytes
-rw-r--r--tests/__pycache__/test_clone.cpython-310-pytest-7.1.3.pycbin5388 -> 5451 bytes
-rw-r--r--tests/__pycache__/test_edges.cpython-310-pytest-7.1.3.pycbin7719 -> 8248 bytes
-rw-r--r--tests/images/Baofeng_K6.imgbin0 -> 33965 bytes
-rw-r--r--tests/images/Baofeng_UV-5G_Pro.imgbin0 -> 6665 bytes
-rw-r--r--tests/images/Baofeng_UV-5R_Mini.imgbin0 -> 33537 bytes
-rw-r--r--tests/images/Icom_IC-T10.imgbin0 -> 6065 bytes
-rw-r--r--tests/images/Kenwood_TK-278.imgbin0 -> 1213 bytes
-rw-r--r--tests/images/QYT_KT-5000.imgbin0 -> 16569 bytes
-rw-r--r--tests/images/Radioddity_GM-30.imgbin0 -> 41149 bytes
-rw-r--r--tests/images/Retevis_H777_V4.imgbin0 -> 423 bytes
-rw-r--r--tests/images/Retevis_RA25.imgbin0 -> 20164 bytes
-rw-r--r--tests/images/Retevis_RA86.imgbin0 -> 3785 bytes
-rw-r--r--tests/images/Retevis_RT86S.imgbin0 -> 1049 bytes
-rw-r--r--tests/images/TIDRADIO_TD-H3.imgbin8369 -> 8389 bytes
-rw-r--r--tests/images/Wouxun_KG-805G.imgbin0 -> 8373 bytes
-rw-r--r--tests/images/Wouxun_KG-935H.imgbin0 -> 32949 bytes
-rw-r--r--tests/py3-untested-drivers.txt10
-rw-r--r--tests/py3_driver_testers.txt1
-rw-r--r--tests/test_clone.py3
-rw-r--r--tests/test_edges.py17
-rw-r--r--tests/unit/__pycache__/test_bitwise.cpython-310-pytest-7.1.3.pycbin18507 -> 18843 bytes
-rw-r--r--tests/unit/__pycache__/test_chirp_common.cpython-310-pytest-7.1.3.pycbin31643 -> 33055 bytes
-rw-r--r--tests/unit/__pycache__/test_csv.cpython-310-pytest-7.1.3.pycbin10108 -> 11526 bytes
-rw-r--r--tests/unit/__pycache__/test_serialtrace.cpython-310-pytest-7.1.3.pycbin0 -> 2863 bytes
-rw-r--r--tests/unit/test_bitwise.py16
-rw-r--r--tests/unit/test_chirp_common.py10
-rw-r--r--tests/unit/test_csv.py21
-rw-r--r--tests/unit/test_serialtrace.py79
30 files changed, 145 insertions, 15 deletions
diff --git a/tests/__init__.py b/tests/__init__.py
index b2563b8..55640b0 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -76,11 +76,12 @@ def _load_tests(loader, tests, pattern, suite=None):
images = os.environ['CHIRP_TESTIMG'].split()
else:
images = glob.glob("tests/images/*.img")
+ images = [os.path.basename(img) for img in images]
tests = [os.path.splitext(os.path.basename(img))[0] for img in images]
base = os.path.dirname(os.path.abspath(__file__))
base = os.path.join(base, 'images')
- images = glob.glob(os.path.join(base, "*"))
+ images = [os.path.join(base, img) for img in images]
tests = {img: os.path.splitext(os.path.basename(img))[0] for img in images}
if pattern == 'test*.py':
diff --git a/tests/__pycache__/__init__.cpython-310.pyc b/tests/__pycache__/__init__.cpython-310.pyc
index e5edb17..f98eee7 100644
--- a/tests/__pycache__/__init__.cpython-310.pyc
+++ b/tests/__pycache__/__init__.cpython-310.pyc
Binary files differ
diff --git a/tests/__pycache__/test_clone.cpython-310-pytest-7.1.3.pyc b/tests/__pycache__/test_clone.cpython-310-pytest-7.1.3.pyc
index e682551..4f44f20 100644
--- a/tests/__pycache__/test_clone.cpython-310-pytest-7.1.3.pyc
+++ b/tests/__pycache__/test_clone.cpython-310-pytest-7.1.3.pyc
Binary files differ
diff --git a/tests/__pycache__/test_edges.cpython-310-pytest-7.1.3.pyc b/tests/__pycache__/test_edges.cpython-310-pytest-7.1.3.pyc
index 47421f6..ff627da 100644
--- a/tests/__pycache__/test_edges.cpython-310-pytest-7.1.3.pyc
+++ b/tests/__pycache__/test_edges.cpython-310-pytest-7.1.3.pyc
Binary files differ
diff --git a/tests/images/Baofeng_K6.img b/tests/images/Baofeng_K6.img
new file mode 100644
index 0000000..3309aec
--- /dev/null
+++ b/tests/images/Baofeng_K6.img
Binary files differ
diff --git a/tests/images/Baofeng_UV-5G_Pro.img b/tests/images/Baofeng_UV-5G_Pro.img
new file mode 100644
index 0000000..324157f
--- /dev/null
+++ b/tests/images/Baofeng_UV-5G_Pro.img
Binary files differ
diff --git a/tests/images/Baofeng_UV-5R_Mini.img b/tests/images/Baofeng_UV-5R_Mini.img
new file mode 100644
index 0000000..4f9f268
--- /dev/null
+++ b/tests/images/Baofeng_UV-5R_Mini.img
Binary files differ
diff --git a/tests/images/Icom_IC-T10.img b/tests/images/Icom_IC-T10.img
new file mode 100644
index 0000000..23abac2
--- /dev/null
+++ b/tests/images/Icom_IC-T10.img
Binary files differ
diff --git a/tests/images/Kenwood_TK-278.img b/tests/images/Kenwood_TK-278.img
new file mode 100644
index 0000000..c7abbaf
--- /dev/null
+++ b/tests/images/Kenwood_TK-278.img
Binary files differ
diff --git a/tests/images/QYT_KT-5000.img b/tests/images/QYT_KT-5000.img
new file mode 100644
index 0000000..2fc7b1c
--- /dev/null
+++ b/tests/images/QYT_KT-5000.img
Binary files differ
diff --git a/tests/images/Radioddity_GM-30.img b/tests/images/Radioddity_GM-30.img
new file mode 100644
index 0000000..98e810c
--- /dev/null
+++ b/tests/images/Radioddity_GM-30.img
Binary files differ
diff --git a/tests/images/Retevis_H777_V4.img b/tests/images/Retevis_H777_V4.img
new file mode 100644
index 0000000..38f479a
--- /dev/null
+++ b/tests/images/Retevis_H777_V4.img
Binary files differ
diff --git a/tests/images/Retevis_RA25.img b/tests/images/Retevis_RA25.img
new file mode 100644
index 0000000..723ca6e
--- /dev/null
+++ b/tests/images/Retevis_RA25.img
Binary files differ
diff --git a/tests/images/Retevis_RA86.img b/tests/images/Retevis_RA86.img
new file mode 100644
index 0000000..579046a
--- /dev/null
+++ b/tests/images/Retevis_RA86.img
Binary files differ
diff --git a/tests/images/Retevis_RT86S.img b/tests/images/Retevis_RT86S.img
new file mode 100644
index 0000000..b6a26dc
--- /dev/null
+++ b/tests/images/Retevis_RT86S.img
Binary files differ
diff --git a/tests/images/TIDRADIO_TD-H3.img b/tests/images/TIDRADIO_TD-H3.img
index e891793..bfb305d 100644
--- a/tests/images/TIDRADIO_TD-H3.img
+++ b/tests/images/TIDRADIO_TD-H3.img
Binary files differ
diff --git a/tests/images/Wouxun_KG-805G.img b/tests/images/Wouxun_KG-805G.img
new file mode 100644
index 0000000..967bde5
--- /dev/null
+++ b/tests/images/Wouxun_KG-805G.img
Binary files differ
diff --git a/tests/images/Wouxun_KG-935H.img b/tests/images/Wouxun_KG-935H.img
new file mode 100644
index 0000000..01cfbbd
--- /dev/null
+++ b/tests/images/Wouxun_KG-935H.img
Binary files differ
diff --git a/tests/py3-untested-drivers.txt b/tests/py3-untested-drivers.txt
index ae81485..7a8ae4b 100644
--- a/tests/py3-untested-drivers.txt
+++ b/tests/py3-untested-drivers.txt
@@ -1,6 +1,5 @@
# These drivers have not been converted (or confirmed working) for python3
ARRL_Travel_Plus
-Baofeng_K5-Plus
Baojie_BJ-9900
Baojie_BJ-UV55
Boblov_X3Plus
@@ -18,14 +17,6 @@ KSUN_M6
KYD_IP-620
KYD_NC-630A
Kenwood_ITM
-Kenwood_TK-260
-Kenwood_TK-270
-Kenwood_TK-272
-Kenwood_TK-278
-Kenwood_TK-360
-Kenwood_TK-370
-Kenwood_TK-372
-Kenwood_TK-378
Kenwood_TM-D710_CloneMode
Kenwood_TS-480_CloneMode
Kenwood_TS-480_LiveMode
@@ -36,7 +27,6 @@ Kenwood_TS-850
Puxing_PX-2R
RT_Systems_CSV
Sainsonic_AP510
-TYT_TH-350
TYT_TH-7800_File
TYT_TH-9800_File
TYT_TH-UV3R
diff --git a/tests/py3_driver_testers.txt b/tests/py3_driver_testers.txt
index 2925741..53bee81 100644
--- a/tests/py3_driver_testers.txt
+++ b/tests/py3_driver_testers.txt
@@ -375,6 +375,7 @@ Wouxun_KG-UV9G_Pro,@mrtjr1,25-Apr-2023
Wouxun_KG-UV9K,@mrtjr1,14-Apr-2023
Wouxun_KG-935G,@mrtjr1,4-Jan-2022
Wouxun_KG-935G_Plus,@mrtjr1,7-Feb-2023
+Wouxun_KG-935H,@mrtjr1,14-Mar-2025
Yaesu_FT-1500M,@f3sty,05-Dec-2022
Yaesu_FT-2800M,#10616,05-Jun-2023
Yaesu_FT-2900R_1900R,#10274,14-Jan-2023
diff --git a/tests/test_clone.py b/tests/test_clone.py
index 1723942..cb41bfb 100644
--- a/tests/test_clone.py
+++ b/tests/test_clone.py
@@ -5,6 +5,7 @@ from unittest import mock
from chirp import chirp_common
from chirp import errors
+from chirp.wxui import serialtrace
from tests import base
LOG = logging.getLogger(__name__)
@@ -14,7 +15,7 @@ class SerialException(Exception):
pass
-class SerialNone:
+class SerialNone(serialtrace.SerialTrace):
def flush(self):
pass
diff --git a/tests/test_edges.py b/tests/test_edges.py
index c5c0775..d41970a 100644
--- a/tests/test_edges.py
+++ b/tests/test_edges.py
@@ -3,11 +3,20 @@ from unittest import mock
from chirp import bitwise
from chirp import chirp_common
+from chirp import directory
from chirp import errors
from tests import base
class TestCaseEdges(base.DriverTest):
+ def test_inherits_from_registered(self):
+ if self.rf.has_sub_devices:
+ devs = self.radio.get_sub_devices()
+ else:
+ devs = [self.radio]
+ for dev in devs:
+ directory.registered_class(dev.__class__)
+
def test_longname(self):
m = self.get_mem()
m.name = ("X" * 256) # Should be longer than any radio can handle
@@ -133,6 +142,11 @@ class TestCaseEdges(base.DriverTest):
# radios have empty in the immutable set.
if m1.empty:
m1.empty = False
+
+ self.assertIsInstance(m1.number, int,
+ ('Special memory %s number %r is not an '
+ 'integer') % (name, m1.number))
+
try:
del m1.extra
except AttributeError:
@@ -165,6 +179,9 @@ class TestCaseEdges(base.DriverTest):
self.assertEqual('', m.extd_number,
'Non-special memory %i should not have '
'extd_number set to %r' % (i, m.extd_number))
+ self.assertIsInstance(m.number, int,
+ 'Memory number %r is not an integer' %
+ m.number)
def test_get_memory_name_trailing_whitespace(self):
if self.radio.MODEL == 'KG-UV8E':
diff --git a/tests/unit/__pycache__/test_bitwise.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_bitwise.cpython-310-pytest-7.1.3.pyc
index b65e7cd..bdb9f73 100644
--- a/tests/unit/__pycache__/test_bitwise.cpython-310-pytest-7.1.3.pyc
+++ b/tests/unit/__pycache__/test_bitwise.cpython-310-pytest-7.1.3.pyc
Binary files differ
diff --git a/tests/unit/__pycache__/test_chirp_common.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_chirp_common.cpython-310-pytest-7.1.3.pyc
index 43d12a0..95787cc 100644
--- a/tests/unit/__pycache__/test_chirp_common.cpython-310-pytest-7.1.3.pyc
+++ b/tests/unit/__pycache__/test_chirp_common.cpython-310-pytest-7.1.3.pyc
Binary files differ
diff --git a/tests/unit/__pycache__/test_csv.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_csv.cpython-310-pytest-7.1.3.pyc
index 3ba6d7a..64c8587 100644
--- a/tests/unit/__pycache__/test_csv.cpython-310-pytest-7.1.3.pyc
+++ b/tests/unit/__pycache__/test_csv.cpython-310-pytest-7.1.3.pyc
Binary files differ
diff --git a/tests/unit/__pycache__/test_serialtrace.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_serialtrace.cpython-310-pytest-7.1.3.pyc
new file mode 100644
index 0000000..16f0c98
--- /dev/null
+++ b/tests/unit/__pycache__/test_serialtrace.cpython-310-pytest-7.1.3.pyc
Binary files differ
diff --git a/tests/unit/test_bitwise.py b/tests/unit/test_bitwise.py
index dc38cb6..c50c3fc 100644
--- a/tests/unit/test_bitwise.py
+++ b/tests/unit/test_bitwise.py
@@ -248,6 +248,22 @@ class TestBitwiseBCDTypes(BaseTest):
def test_lbcd_array(self):
self._test_def("lbcd foo[2];", "foo", b"\x12\x34", 3412)
+ def test_bbcd_array_leading_bits(self):
+ data = memmap.MemoryMapBytes(bytes(b"\xc7\x54"))
+ obj = bitwise.parse("bbcd foo[2];", data)
+ # This is what we interpret a leading 0xC000 as
+ self.assertEqual(int(obj.foo), 754 + 12000)
+
+ # Ignore the top nibble and we expect just the bottom three
+ obj.foo[0].ignore_bits(0xF0)
+ self.assertEqual(int(obj.foo), 754)
+
+ # If wet try to set something in the ignored nibble it should be
+ # ignored but preserved
+ obj.foo = 1754
+ self.assertEqual(int(obj.foo), 754)
+ self.assertEqual(data[0][0], 0xC7)
+
class TestBitwiseCharTypes(BaseTest):
def test_char(self):
diff --git a/tests/unit/test_chirp_common.py b/tests/unit/test_chirp_common.py
index facdbed..0edce51 100644
--- a/tests/unit/test_chirp_common.py
+++ b/tests/unit/test_chirp_common.py
@@ -504,7 +504,7 @@ class TestStepFunctions(base.BaseTest):
6.25: self._625,
12.5: self._125,
}
- allowed = [6.25, 12.5]
+ allowed = [12.5, 6.25]
for step, freqs in list(steps.items()):
for freq in freqs:
# We don't support 5.0, so any of the frequencies in that
@@ -520,7 +520,7 @@ class TestStepFunctions(base.BaseTest):
def test_required_step_finds_suitable(self):
# If we support 5.0, we should get it as the step for those
self.assertEqual(5.0, chirp_common.required_step(self._005[0],
- allowed=[2.5, 5.0]))
+ allowed=[5.0, 2.5]))
# If we support 2.5 and not 5.0, then we should find 2.5 as a suitable
# alternative
self.assertEqual(2.5, chirp_common.required_step(self._005[0],
@@ -534,7 +534,7 @@ class TestStepFunctions(base.BaseTest):
def test_required_step_fail(self):
self.assertRaises(errors.InvalidDataError,
chirp_common.required_step,
- 146520500)
+ 146520500, allowed=[5.0, 10.0, 12.5])
def test_fix_rounded_step_250(self):
self.assertEqual(146106250,
@@ -548,6 +548,10 @@ class TestStepFunctions(base.BaseTest):
self.assertEqual(146118750,
chirp_common.fix_rounded_step(146118000))
+ def test_fix_rounded_step_no_change(self):
+ self.assertEqual(146520000,
+ chirp_common.fix_rounded_step(146520000))
+
class TestImageMetadata(base.BaseTest):
def test_make_metadata(self):
diff --git a/tests/unit/test_csv.py b/tests/unit/test_csv.py
index 60ee8cc..7974cec 100644
--- a/tests/unit/test_csv.py
+++ b/tests/unit/test_csv.py
@@ -28,6 +28,16 @@ CHIRP_CSV_MODERN_QUOTED_HEADER = (
0,Nat Simplex,146.520000,,0.600000,TSQL,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,This is the national calling frequency on 2m,,,,
1,"National Simp",446.000000,-,5.000000,DTCS,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,5.0W,This is NOT the UHF calling frequency,,,,
""") # noqa
+CHIRP_TSV = (
+ """Location Name Frequency Duplex Offset Tone rToneFreq cToneFreq DtcsCode DtcsPolarity RxDtcsCode CrossMode Mode TStep Skip Power Comment URCALL RPT1CALL RPT2CALL DVCODE
+8 Mt Scott 147.280000 + 0.600000 TSQL 88.5 167.9 023 NN 023 Tone->Tone FM 5.00 50W TayDan Emergency Step #2\t\t\t\t
+9 Mt Tabor 145.390000 - 0.600000 TSQL 88.5 100.0 023 NN 023 Tone->Tone FM 5.00 50W TayDan Emergency Step #1\t\t\t\t
+10 Timberline V 147.120000 + 0.600000 TSQL 103.5 100.0 023 NN 023 Tone->Tone FM 5.00 50W TayDan Emergency Step #4\t\t\t\t
+11 Timberline U 444.225000 + 5.000000 TSQL 88.5 100.0 023 NN 023 Tone->Tone FM 5.00 50W K7RPT Timberline, Linked to VHF side, AC7QE-R echolink\t\t\t\t
+12 GovtCamp 443.875000 + 5.000000 TSQL 88.5 103.5 023 NN 023 Tone->Tone FM 5.00 50W\t\t\t\t
+13 GoatMtn 443.700000 + 5.000000 TSQL 88.5 103.5 023 NN 023 Tone->Tone FM 5.00 50W SW Corner of Clackamas, Co.\t\t\t\t
+14 TyghRdge 147.260000 + 0.600000 TSQL 103.5 82.5 023 NN 023 Tone->Tone FM 5.00 50W\t\t\t\t
+""") # noqa
class TestCSV(unittest.TestCase):
@@ -182,6 +192,7 @@ class TestCSV(unittest.TestCase):
def test_escaped_string_chars(self):
m = chirp_common.Memory()
+ m.freq = 146520000
m.number = 1
m.name = 'This is "The one"'
m.comment = 'Wow, a \nMulti-line comment!'
@@ -191,6 +202,7 @@ class TestCSV(unittest.TestCase):
def test_unicode_comment_chars(self):
m = chirp_common.Memory()
+ m.freq = 146520000
m.number = 1
m.name = 'This is "The one"'
m.comment = b'This is b\xc9\x90d news'.decode()
@@ -200,6 +212,7 @@ class TestCSV(unittest.TestCase):
def test_cross_dtcs(self):
m = chirp_common.Memory()
+ m.freq = 146520000
m.number = 1
m.tmode = 'Cross'
m.cross_mode = 'DTCS->DTCS'
@@ -231,3 +244,11 @@ class RTCSV(unittest.TestCase):
@ddt.data('ft3d', 'ftm400', 'ftm500')
def test_sample_file(self, arg):
self._test_open('rtcsv_%s.csv' % arg)
+
+
+class TestTSV(unittest.TestCase):
+ def test_parse_tsv(self):
+ radio = generic_csv.TSVRadio(None)
+ radio.load_from(CHIRP_TSV)
+ m = radio.get_memory(8)
+ self.assertEqual('Mt Scott', m.name)
diff --git a/tests/unit/test_serialtrace.py b/tests/unit/test_serialtrace.py
new file mode 100644
index 0000000..22e8403
--- /dev/null
+++ b/tests/unit/test_serialtrace.py
@@ -0,0 +1,79 @@
+import unittest
+from unittest import mock
+
+from chirp.wxui import serialtrace
+
+
+class TestSerialTrace(unittest.TestCase):
+ @mock.patch('serial.Serial.open')
+ def test_open(self, mock_open):
+ trace = serialtrace.SerialTrace()
+ self.assertIsNone(trace._SerialTrace__tracef)
+ trace.open()
+ self.assertIsNotNone(trace._SerialTrace__tracef)
+ self.assertTrue(trace._SerialTrace__tracef.name.endswith('.txt'))
+ mock_open.assert_called_once()
+
+ @mock.patch('os.remove')
+ def test_purge_trace_files(self, mock_remove):
+ from chirp.wxui import serialtrace
+
+ for i in range(15):
+ serialtrace.TRACEFILES.append('test_trace_%i.txt' % i)
+ files = serialtrace.TRACEFILES[:]
+
+ # Purge to 10 files keeps the last 10
+ serialtrace.purge_trace_files(10)
+ self.assertEqual(len(serialtrace.TRACEFILES), 10)
+ self.assertEqual(['test_trace_%i.txt' % (i + 5) for i in range(10)],
+ serialtrace.TRACEFILES)
+
+ # Purge to 20 does not change anything since only 10 stored
+ serialtrace.purge_trace_files(20)
+ self.assertEqual(10, len(serialtrace.TRACEFILES))
+
+ # Purge to zero removes all files
+ serialtrace.purge_trace_files(0)
+ self.assertEqual(0, len(serialtrace.TRACEFILES))
+
+ # Make sure we ended up removing all the files
+ mock_remove.assert_has_calls([mock.call(fn) for fn in files],
+ any_order=True)
+
+ @mock.patch('serial.Serial.open')
+ @mock.patch('serial.Serial.write')
+ @mock.patch('serial.Serial.read')
+ def test_log_write(self, mock_read, mock_write, mock_open):
+ mock_read.side_effect = [b'123', b'']
+ trace = serialtrace.SerialTrace()
+ trace.open()
+ fn = serialtrace.TRACEFILES[-1]
+ trace.write(b'foo')
+ trace.read(3)
+ trace.read(5)
+ trace.close()
+ with open(fn, 'r') as f:
+ content = f.read()
+ self.assertIn('# Serial trace', content)
+ self.assertIn('foo...', content)
+ self.assertIn('R # timeout', content)
+
+ @mock.patch('tempfile.NamedTemporaryFile')
+ @mock.patch('serial.Serial.open')
+ @mock.patch('serial.Serial.write')
+ @mock.patch('serial.Serial.read')
+ def test_log_write_fail(self, mock_read, mock_write, mock_open, mock_tf):
+ mock_tf.return_value.writelines.side_effect = [
+ None, Exception("Write error")]
+ trace = serialtrace.SerialTrace()
+ trace.open()
+ # This should generate a write failure
+ trace.read(3)
+
+ # Make sure we don't interrupt further communication
+ trace.write(b'foo')
+ trace.read()
+ trace.write(b'bar')
+
+ # Before we are closed, the trace file should have been abandoned
+ self.assertIsNone(trace._SerialTrace__tracef)