Files
linuxcncAllWasm/tests/halmodule.3/test.hal
2026-08-20 06:17:39 +08:00

25 lines
799 B
Plaintext

# The goal of this test is to run the 'halquerytest.py' script that will
# read all HAL internals via the query API. We only need a mapped HAL
# shared memory segment for that. It is rather unimportant what is
# loaded. We just need to ensure we have a working HAL system and some
# things we can look at.
loadrt threads name1=testthread period1=1000000
loadrt and2 count=1
loadrt or2 count=1
loadrt xor2 count=1
addf and2.0 testthread
addf or2.0 testthread
addf xor2.0 testthread
net net-input-a and2.0.in0 or2.0.in0
net net-input-b and2.0.in1 or2.0.in1
net net-xor-a and2.0.out xor2.0.in0
net net-xor-b or2.0.out xor2.0.in1
net net-output xor2.0.out
# We don't care whether the thread is running. We only want to extract
# the HAL information and show it.
loadusr -w ./halquerytest.py