Skip to content
Snippets Groups Projects
  1. Jan 05, 2023
  2. Dec 07, 2022
  3. Dec 02, 2022
  4. Nov 17, 2022
  5. Nov 15, 2022
  6. Oct 28, 2022
  7. Oct 27, 2022
  8. Oct 26, 2022
  9. Oct 11, 2022
  10. Oct 10, 2022
  11. Oct 06, 2022
    • Ludovico de Nittis's avatar
      capture-libs: Add exact-soname option · ba2c7f3f
      Ludovico de Nittis authored
      
      Add a stricter version of `soname:`, where a library is considered to be
      a match only if its DT_SONAME is exactly what capture-libs was asked to
      look into.
      
      This can be used as a protection against misconfigured systems where two
      incompatible libraries have been symlinked.
      
      E.g. if there is an unexpected symlink `libudev.so.0 -> libudev.so.1`,
      with `soname:libudev.so.0` we will import `libudev.so.0` inside the
      container even if its DT_SONAME is `libudev.so.1`.
      
      Signed-off-by: default avatarLudovico de Nittis <ludovico.denittis@collabora.com>
      ba2c7f3f
  12. Sep 27, 2022
    • Simon McVittie's avatar
      tests: Add a script to run the tests in a LD_LIBRARY_PATH environment · 64801765
      Simon McVittie authored
      
      This should not be expected to pass reliably yet, particularly if the
      version of steam-runtime-tools included in the LD_LIBRARY_PATH runtime
      is not in sync with the version that provided the tests.
      
      This doesn't use ginsttest-runner and its .test files, for two reasons:
      
      - the gnome-desktop-testing package isn't included in the
        LD_LIBRARY_PATH variant of the Steam Runtime;
      - the .test files are not relocatable (they name tests according to
        their absolute path), but to test a relocatable LD_LIBRARY_PATH
        runtime, we need relocatable tests
      
      Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
      64801765
  13. Sep 26, 2022
  14. Sep 22, 2022
  15. Sep 20, 2022
  16. Sep 19, 2022
  17. Sep 12, 2022
  18. Sep 08, 2022
    • Simon McVittie's avatar
      tests: Add a test for the libcurl compatibility shim · 3c2bd13d
      Simon McVittie authored
      
      This can either be run as an ordinary build-time test, in which case it
      uses the just-built mock libraries for the build architecture only, or
      as an integration test for the LD_LIBRARY_PATH Steam Runtime:
      
          ~/.steam/root/ubuntu12_32/steam-runtime/run.sh -- \
          ~/tmp/steam-runtime-tools-tests/libcurl-compat.py --verbose
      
      in which case it expects to be run on an x86_64 machine, tests the
      mock libraries for both x86_64 and i386, and also asserts that the
      Steam Runtime has been set up to use the shim to provide the real
      libcurl ABI.
      
      Helps: steamrt/tasks#119
      Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
      3c2bd13d
    • Simon McVittie's avatar
      libcurl-compat: Install mock libraries for testing · c93db56a
      Simon McVittie authored
      
      To test this mechanism, it's useful to have a set of libraries that
      implement a predictable interface between distributions. Use a small
      subset of the real libcurl API.
      
      Helps: steamrt/tasks#119
      Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
      c93db56a
  19. Sep 02, 2022
    • Simon McVittie's avatar
      tests: Pretty-print expected and actual JSON with the same libjson-glib · be540325
      Simon McVittie authored
      
      When we're running tests in the LD_LIBRARY_PATH Steam Runtime, the test
      will generally use the system copy of libjson-glib (if there is one), but
      steam-runtime-system-info will use the Steam Runtime copy of libjson-glib
      via its RPATH. This can result in them being pretty-printed differently:
      old versions of json-glib like the one in scout will consistently add
      a newline after the opening bracket or brace of an array or object,
      but newer versions fold the empty array or object into a single line.
      
      Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
      be540325
    • Simon McVittie's avatar
      tests: Write out JSON files so we can diff them nicely · ad877aae
      Simon McVittie authored
      
      Comparing two giant strings of JSON in g_assert_cmpstr() output is not
      straightforward, so let's try to write them out to files and run diff
      on them.
      
      The AUTOPKGTEST_ARTIFACTS variable set by Debian's autopkgtest
      framework is as good a mechanism as any for signalling where would be a
      good place; or if that's not set, use a temporary directory.
      
      Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
      ad877aae
Loading