Skip to content
  • Steve Beattie's avatar
    Subject: libapparmor - add python bindings tests based on C tests · a1bf63db
    Steve Beattie authored
    
    
    This patch adds tests for the swig generated python library bindings
    that reuse the C language tests.
    
    Fitting it into autotools was a bit of a trick, and is likely pretty
    brittle, as before the test script runs, it needs to know the location
    of the built libapparmor.so library, the built _LibAppArmor.so library
    and the python wrapper bits (thankfully, the latter two are the same
    directory). It's also unclear how to get autotools to emit the output of
    the test_python.py script when building, rather than just summarizing it
    as one test run.
    
    Also note that test_python.py is doing a bit of magic to automatically
    generate test case methods based on the contents of the test_multi/
    directory. This has the disadvantage of breaking tools like nosetests
    and other external tools that try to automatically detect testcases.
    
    Signed-off-by: default avatarSteve Beattie <steve@nxnw.org>
    Acked-by: default avatarTyler Hicks <tyhicks@canonical.com>
    a1bf63db