Import LinuxCNC source tree
This commit is contained in:
1
tests/halcompile/extralib/.gitignore
vendored
Normal file
1
tests/halcompile/extralib/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
extralib_test
|
||||
2
tests/halcompile/extralib/checkresult
Executable file
2
tests/halcompile/extralib/checkresult
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
[ -x "$(dirname "$1")/extralib_test" ]
|
||||
13
tests/halcompile/extralib/extralib_test.comp
Normal file
13
tests/halcompile/extralib/extralib_test.comp
Normal file
@@ -0,0 +1,13 @@
|
||||
component extralib_test;
|
||||
pin in float theta;
|
||||
pin out float sin_;
|
||||
license "GPL";
|
||||
option userspace;
|
||||
option extra_link_args "-lm";
|
||||
;;
|
||||
#include <math.h>
|
||||
void user_mainloop(void) {
|
||||
while(1) {
|
||||
FOR_ALL_INSTS() sin_ = sin(theta);
|
||||
}
|
||||
}
|
||||
3
tests/halcompile/extralib/test.sh
Executable file
3
tests/halcompile/extralib/test.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
halcompile --compile extralib_test.comp
|
||||
Reference in New Issue
Block a user