What does the test folder in \\sikuli-script\src deal with?

Asked by Yadish Khan

Can I use the test folder present in \\sikuli-script\src to create my own tests for image matching and OCR using the images present in \\src\test\native\testdata?
If yes, how to build the test framework present in \\sikuli-script\src\test?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

in
sikuli/sikuli-script/CMakeLists.txt

there are some build targets defined for testing - just try to understand and try it.

Revision history for this message
Yadish Khan (yadish-khan) said :
#2

The build targets in cmakelists.txt file are for java and python layers.

How do I build the native (c++) layer?
It has a makefile but it does not have rules for compilation. That is to say the *.o files are not generated and even the MakeFile.common doesn't exist.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

the cmakelist files are spread all over the place ;-)

- make a build folder
- go to the build folder
- run cmake ..

Then you get your distributed make files, that contain everything.

BTW: the directives for the native make targets are in src/main/native/cmakelist.txt

Revision history for this message
Yadish Khan (yadish-khan) said :
#4

There is a test folder inside \\sikuli-scripts\src folder parallel to the main folder.

That also has the same folder structure as main (java,native, python) the java folder has a CmakeLists.txt and also has a build target when the main MakeFile is generated after cmake.

But the native folder (inside the test directory) has its own MakeFile.

It has references to a TestFinderRunner.cpp file which I am not able to find.

Similarly, I am unable to find the *.o objects and MakeFile.common

Can you please help me out with this!
Is it possible to build the native test framework using that MakeFile?

Revision history for this message
RaiMan (raimund-hocke) said :
#5

Sorry, I have to leave you alone with that stuff.

Not my priority, since I am busy with the new version.

Can you help with this problem?

Provide an answer of your own, or ask Yadish Khan for more information if necessary.

To post a message you must log in.