ARM-software / synchronization-benchmarks

Collection of synchronization micro-benchmarks and traces from infrastructure applications
Other
38 stars 36 forks source link

Add python unittest script to test lockhammer automatically #22

Closed zoybai closed 6 years ago

zoybai commented 6 years ago

May add other unittests furthermore with other parameters. Currently will run only with default lockhammer parameters.

geoffreyblake commented 6 years ago

Can one of the admins verify this patch?

zoybai commented 6 years ago

Draft version of lockhammer unittest. By default, unittest is enabled and sweeptest is disabled. lh_test.py will parse lh_cfg.yaml and run these automatically generated tests. If all of them are passed, the return value of lh_test.py will be 0. Otherwise, a non-zero value will be returned and error messages are printed to standard output.

rpgolshan commented 6 years ago

Please change the name of your main test script to start with "test". e.g. test_lh.py

This will trigger jenkins to run this file.

Also, is there a way to delete the first commit from this pull request?

zoybai commented 6 years ago

I have changed the filename to test_lh.py, but I don't know how to delete the first commit. Should we closed this pull-request and recreate a new (cleaner) one?

zoybai commented 6 years ago

Close this pull and recreate a newer cleaner one.