1. 12 Nov, 2016 2 commits
    • Bernhard Nortmann's avatar
      tests: Improve on testing fexc · cd5a0a33
      Bernhard Nortmann authored
      
      
      After all .fex files can be successfully compiled, let's also
      test the opposite direction by decompiling the resulting .bin.
      The output then has to pass an automated diff against the source
      .fex (transformed via some preprocessing with "unify-fex").
      Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
      cd5a0a33
    • Bernhard Nortmann's avatar
      tests: Introduce a basic testing framework · 5cbb0c91
      Bernhard Nortmann authored
      
      
      All tests should go into the new "tests" subdirectory. The idea is
      that the separate Makefile in that directory will get invoked via
      a top-level "make check".
      
      The tests/Makefile should then take care of running all available
      tests, returning an appropriate exit status. Future tests may be
      functional, examine code metrics (coverage analysis), or both.
      
      For a start, I'd simply like to check that sunxi-fexc is able to
      properly compile all the .fex files from linux-sunxi/sunxi-boards.
      
      (Note: This currently FAILS and will probably require adjustments
      to both sunxi-tools and the .fex repository. To work around this,
      for now I'm applying patches to fix sunxi-boards.)
      Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
      5cbb0c91