Skip to content

Commit c0f787d

Browse files
committed
(failing) test for userspace components with headers
This is a test for #515.
1 parent e528e98 commit c0f787d

4 files changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
[ -e "`dirname "$1"`/relative_header" ]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#define X 1
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
component relative_header;
2+
pin out bit out;
3+
include "local.h";
4+
license "GPL";
5+
option userspace yes;
6+
;;
7+
void user_mainloop(void) {
8+
FOR_ALL_INSTS() { out = ! out; }
9+
rtapi_delay(100 * 1000 * 1000);
10+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
set -e
3+
rm -f relative_header
4+
halcompile --compile relative_header.comp

0 commit comments

Comments
 (0)