xref: /openbmc/phosphor-event/test/README.md (revision 74c0963269a6828c42d282b97bffa1afafc1b7d0)
1Instructions on how to execute UTEST.
2
3* When using an SDK - make sure it has been built
4  for an x86 machine.
5
6- First generate the configure script with a call
7  to ./bootstrap.sh.
8- Once built, configure flags with
9  "./configure ${CONFIGURE_FLAGS} --enable-oe-sdk"
10- Be sure to include --enable-oe-sdk or the tests
11  will not run properly.
12- Lastly "make check" will build the application
13  source along with unit tests.  Make check also
14  runs the unit tests automatically.
15
16* WHEN RUNNING UTEST remember to take advantage
17  of the gtest capabilities. "./utest --help"
18  - --gtest_repeat=[COUNT]
19  - --gtest_shuffle
20  - --gtest_random_seed=[NUMBER]
21