Replies: 7 comments 1 reply
-
Hi, It seems that you did not link against Criterion If I'm not mistaken, you're using plain makefiles for your tests.
For example:
|
Beta Was this translation helpful? Give feedback.
-
Sorry, I just noticed that you're on Ubuntu. Have you tried installing it from source or through PPA? |
Beta Was this translation helpful? Give feedback.
-
Hi. Thanks for your response! Yep, before trying with |
Beta Was this translation helpful? Give feedback.
-
If all else fails, you can try grabbing the latest static release: https://github.com/Snaipe/Criterion/releases/download/v2.3.3/criterion-v2.3.3-linux-x86_64.tar.bz2 Extract it somewhere and use the right combination of -L, -I, and -Wl,-rpath to properly link against it. |
Beta Was this translation helpful? Give feedback.
-
@mlbonniec I also had some minor troubles for getiing it to work, but I can see that you're not compiling your project correctly. You should add your ld_flags and include flags after the object files. Apparently order matters. |
Beta Was this translation helpful? Give feedback.
-
So my makefile rule is as follows in the unit test makefile:
Pay attention to first adding .o files and only then your libraries and inclusions. For macos you should also watch out for including stuff that isnt used. Below an example of my workflow output:
|
Beta Was this translation helpful? Give feedback.
-
I would also suggest to use apt or apt-get.
|
Beta Was this translation helpful? Give feedback.
-
Hi,
I would like to run Criterion on Github action.
I didn't succeed to install it with apt-get, so I tried with Homebrew, which worked. However, after installing, the criterion path is not find.
Here is my yml file.
As you can see, the installation works.
And, here is the "Build Unit Tests" log message.
Could you help me? Thanks 😉
Beta Was this translation helpful? Give feedback.
All reactions