Import LinuxCNC source tree
This commit is contained in:
1
tests/halcompile/relative-header-user/.gitignore
vendored
Normal file
1
tests/halcompile/relative-header-user/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
relative_header
|
||||
2
tests/halcompile/relative-header-user/checkresult
Executable file
2
tests/halcompile/relative-header-user/checkresult
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
[ -e "$(dirname "$1")/relative_header" ]
|
||||
1
tests/halcompile/relative-header-user/control
Normal file
1
tests/halcompile/relative-header-user/control
Normal file
@@ -0,0 +1 @@
|
||||
Restrictions: sudo
|
||||
1
tests/halcompile/relative-header-user/local.h
Normal file
1
tests/halcompile/relative-header-user/local.h
Normal file
@@ -0,0 +1 @@
|
||||
#define X 1
|
||||
10
tests/halcompile/relative-header-user/relative_header.comp
Normal file
10
tests/halcompile/relative-header-user/relative_header.comp
Normal file
@@ -0,0 +1,10 @@
|
||||
component relative_header;
|
||||
pin out bit out;
|
||||
include "local.h";
|
||||
license "GPL";
|
||||
option userspace yes;
|
||||
;;
|
||||
void user_mainloop(void) {
|
||||
FOR_ALL_INSTS() { out = ! out; }
|
||||
rtapi_delay(100 * 1000 * 1000);
|
||||
}
|
||||
4
tests/halcompile/relative-header-user/test.sh
Executable file
4
tests/halcompile/relative-header-user/test.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
rm -f relative_header
|
||||
halcompile --compile relative_header.comp
|
||||
Reference in New Issue
Block a user