asar icon indicating copy to clipboard operation
asar copied to clipboard

Tests for DLL functions

Open trillllian opened this issue 7 years ago • 2 comments
trafficstars

We should have some tests that, instead of testing the functionality of Asar, test the functionality of the functions in the DLL. For the C/C++ binding, this could be achieved by adding some code to the end of test.cpp that only runs when testing the DLL. For the Python and C# bindings we could have a small separate program written the respective language. The Python and C/C++ binding tests should run on both Linux and Windows, but the C# binding test should only run on Windows (it's possible to compile C# programs using Mono on Linux, but to run them you'd need Wine since Mono can't use the non-C# asar.dll).

  • [ ] C/C++ binding tests
  • [ ] Python binding tests
  • [ ] C# binding tests

trillllian avatar Jun 16 '18 10:06 trillllian

Just tested and apparently Mono assemblies can load libasar.so just fine, so I guess if we get Mono set up on Travis then we could also test the C# binding on Linux.

trillllian avatar Jun 16 '18 10:06 trillllian

At this point I have a "framework" for testing the DLL functions in every language on every platform. Now all that remains is to actually write the tests.

trillllian avatar Jun 20 '18 06:06 trillllian

better 5.5 years late than never i guess

currently tests cover every API function to what i would call a reasonable degree, so considering this done

trillllian avatar Feb 01 '24 15:02 trillllian