SeattleTestbed / utf

Unit Test Framework for SeattleTestbed
MIT License
1 stars 9 forks source link

Need support added to choose layers when running utf tests... #34

Closed choksi81 closed 10 years ago

choksi81 commented 10 years ago

In repyV2, one can easily interpose security layers, shims, models from CheckAPI, etc. into any program. We need to add support to utf to allow unit tests to be run with different modules.

For example, here is how I run the allpairspingv2 program with the check_api portability verification.

python repy.py restrictions.full encasementlib.repy check_api.repy dylink.repy librepy.repy allpairspingv2.repy 12345

Without check_api verification, it looks like this:

python repy.py restrictions.full encasementlib.repy dylink.repy librepy.repy allpairspingv2.repy 12345

Note: more than one security layer can be used at a time. I believe that all security layers will need to be loaded between the encasementlib and dylink. I'm not sure if this is true for shims. (Monzur: please chime in)

choksi81 commented 10 years ago

Author: monzum When you implement a shim in your app, you have to declare the shims inside the application and initialize the shim with the names of the shim that will be used. You don't need to add anything to the command line. At least that is how it was in repy V1, and I assume its going to be the same in repy V2.

choksi81 commented 10 years ago

Author: mkaplan Support added for security layers in r5151.