i run them mostly from the cli:

    .snabbswitch test <testfile|dir>...

that works simply because `main()` executes `test` as a module.  specifying `.` as the dir runs all testfiles it founds.

recently I also made it easier to run from Lua, just passing the name of a testfile or a directory. as an example the `intel10g_app.selftest()` function finishes with `require ("test")('src/apps/intel/intel10g_t')`  (https://github.com/SnabbCo/snabbswitch/pull/150/files#diff-5498327d017e5e286ca09140b566c1d3R118)