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

17
tests/blendmath/test.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
set -e
# RIP layout: $HEADERS is $TOPDIR/include
TOPDIR=$(dirname "$HEADERS")
# blendmath.c references the rest of the TP (tc.c, spherical_arc.c,
# sp_scurve.c, motion globals). Only the tested functions are used here, so
# build with function sections and let the linker garbage-collect the rest
# instead of linking the whole trajectory planner.
gcc -O2 -Wall -ffunction-sections -fdata-sections -DULAPI -DUNIT_TEST \
-I"$HEADERS" -I"$TOPDIR/src" -I"$TOPDIR/src/emc" \
-o test_blendmath test_blendmath.c "$TOPDIR/src/emc/tp/blendmath.c" \
-L"$LIBDIR" -Wl,-rpath,"$LIBDIR" -Wl,--gc-sections -lposemath -lm
./test_blendmath
rm -f test_blendmath