preset.in 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #! /bin/sh
  2. # Set the testing environment.
  3. # This file is part of GNU tar testsuite.
  4. # Copyright (C) 2004 Free Software Foundation, Inc.
  5. #
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  19. # 02111-1307, USA.
  20. PACKAGE=@PACKAGE@
  21. VERSION=@VERSION@
  22. top_srcdir=@abs_top_srcdir@
  23. srcdir=@abs_srcdir@
  24. PATH=@abs_builddir@:@abs_top_builddir@/src:$top_srcdir:$srcdir:$PATH
  25. export LANGUAGE
  26. LANGUAGE=
  27. export LC_ALL
  28. LC_ALL="C"
  29. skiptest() {
  30. exit 77
  31. }
  32. star_prereq() {
  33. test -z "$STAR_TESTSCRIPTS" && skiptest
  34. test -r "$STAR_TESTSCRIPTS/$1" || skiptest
  35. }