tests-env.in 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/sh
  2. # Disarchive
  3. #
  4. # This file was adapted from:
  5. #
  6. # GNU Guix --- Functional package management for GNU
  7. # Copyright © 2012, 2013, 2014, 2015, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
  8. # Copyright © 2017 Eric Bavier <bavier@cray.com>
  9. #
  10. # This file is part of Disarchive.
  11. #
  12. # Disarchive is free software: you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation, either version 3 of the License, or
  15. # (at your option) any later version.
  16. #
  17. # Disarchive is distributed in the hope that it will be useful,
  18. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. # GNU General Public License for more details.
  21. #
  22. # You should have received a copy of the GNU General Public License
  23. # along with Disarchive. If not, see <https://www.gnu.org/licenses/>.
  24. abs_top_srcdir="`cd "@abs_top_srcdir@" > /dev/null; pwd -P`"
  25. abs_top_builddir="`cd "@abs_top_builddir@" > /dev/null; pwd -P`"
  26. GUILE_LOAD_COMPILED_PATH="$abs_top_builddir${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
  27. GUILE_LOAD_PATH="$abs_top_builddir:$abs_top_srcdir${GUILE_LOAD_PATH:+:}$GUILE_LOAD_PATH"
  28. PATH="$abs_top_builddir/scripts:$abs_top_srcdir/scripts${PATH:+:}$PATH"
  29. DISARCHIVE_ZGZ="$abs_top_builddir/libexec/disarchive-zgz"
  30. DISARCHIVE_TEST_DATA="$abs_top_srcdir/tests/data"
  31. export GUILE_LOAD_COMPILED_PATH GUILE_LOAD_PATH PATH DISARCHIVE_ZGZ \
  32. DISARCHIVE_TEST_DATA