Import LinuxCNC source tree

This commit is contained in:
Wang Dequan
2026-08-20 06:17:39 +08:00
commit 2c814634c3
9429 changed files with 10556013 additions and 0 deletions

3
tests/save.0/README Normal file
View File

@@ -0,0 +1,3 @@
Checks that 'halcmd save' produces the expected output, including
loadable module parameters, parameter settings, linked pins, and thread
functions.

30
tests/save.0/expected Normal file
View File

@@ -0,0 +1,30 @@
# components
loadrt threads name1=fast period1=100000
#loadrt __fast (not loaded by loadrt, no args saved)
loadrt stepgen step_type=0
loadrt sampler cfg=bb depth=4096
# pin aliases
# param aliases
# signals
newsig unlinked bit
# nets
net dir stepgen.0.dir => sampler.0.pin.0
net step stepgen.0.step => sampler.0.pin.1
# parameter values
setp fast.tmax 0
setp sampler.0.tmax 0
setp stepgen.0.dirhold 0x00000001
setp stepgen.0.dirsetup 0x00000001
setp stepgen.0.maxaccel 2
setp stepgen.0.maxvel 0.15
setp stepgen.0.position-scale 32000
setp stepgen.0.steplen 0x00000001
setp stepgen.0.stepspace 0x00000001
setp stepgen.capture-position.tmax 0
setp stepgen.make-pulses.tmax 0
setp stepgen.update-freq.tmax 0
# realtime thread/function links
addf stepgen.update-freq fast
addf stepgen.make-pulses fast
addf stepgen.capture-position fast
addf sampler.0 fast

6
tests/save.0/test.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
$REALTIME start
halcmd -f expected
halcmd save
halcmd unload all
$REALTIME stop