Import LinuxCNC source tree
This commit is contained in:
1
tests/hal-stream/README
Normal file
1
tests/hal-stream/README
Normal file
@@ -0,0 +1 @@
|
||||
Creating a hal stream should fail if the cfg string is invalid.
|
||||
1
tests/hal-stream/expected
Normal file
1
tests/hal-stream/expected
Normal file
@@ -0,0 +1 @@
|
||||
pass
|
||||
13
tests/hal-stream/streamtest.py
Executable file
13
tests/hal-stream/streamtest.py
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
import hal
|
||||
|
||||
c = hal.component("stream_test")
|
||||
try:
|
||||
writer = hal.stream(c, hal.streamer_base, 10, "xx")
|
||||
except:
|
||||
pass
|
||||
else:
|
||||
assert False, "hal.stream should fail with invalid cfg arg"
|
||||
|
||||
c.ready()
|
||||
print("pass")
|
||||
1
tests/hal-stream/test.hal
Normal file
1
tests/hal-stream/test.hal
Normal file
@@ -0,0 +1 @@
|
||||
loadusr -w ./streamtest.py
|
||||
Reference in New Issue
Block a user