[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

test[x11] index

SwikiCodeRobot @> #testX11Index

Code

"Check X11 is actually included in the image"
self require: #FFIDynamicLibrary in: #(
	'build/node/library/node-ffi/node-ffi.st.js'
	'u8:aleReimondo/node-ffi/node-ffi.st.js'
); require: #X11 in: #(
	'build/node/library/RaspberryPi/X11.st.js'
	'u8:aleReimondo/RaspberryPi/X11.st.js'
).!

X11 current isNil ifTrue: [
	self print: '// Missing X11 library'.
	^self abort
].
self print: 'Ok - X11 API installed and loaded'


References