Skip to content

Commit

Permalink
make kpsereadlink.test generic, instead of depending on libtool
Browse files Browse the repository at this point in the history
git-svn-id: svn://tug.org/texlive/trunk/Build/source@70081 c570f23f-e606-0410-a88d-b1316a301751
  • Loading branch information
kberry committed Feb 22, 2024
1 parent d1c6a40 commit 9c4aec9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
6 changes: 6 additions & 0 deletions texk/kpathsea/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2024-02-22 Karl Berry <karl@freefriends.org>

* tests/kpsereadlink.test: create and use our own test file and
symlink, instead of using libtool's, in case slibtool is in use.
From orbea, https://github.com/TeX-Live/texlive-source/pull/65.

2023-02-10 Karl Berry <karl@tug.org>

* texmf.cnf (TEXMFVAR, TEXMFCONFIG, doc): 2024.
Expand Down
17 changes: 13 additions & 4 deletions texk/kpathsea/tests/kpsereadlink.test
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
#! /bin/sh -vx
# $Id$
# Copyright 2017 Karl Berry <tex-live@tug.org>
# Copyright 2017-2024 Karl Berry <tex-live@tug.org>
# Copyright 2010 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

test -n "$LN_S" || LN_S="ln -s" # standalone testing

test "x$LN_S" = 'xln -s' || exit 77

./kpsereadlink $LT_OBJDIR/libkpathsea.lai && exit 1
rm -f readlink_test_file readlink_test_symlink

touch readlink_test_file

$LN_S readlink_test_file readlink_test_symlink || exit 1

./kpsereadlink readlink_test_file && exit 1

link=`./kpsereadlink $LT_OBJDIR/libkpathsea.la` || exit 1
link=`./kpsereadlink readlink_test_symlink` || exit 1

test "x$link" = x../libkpathsea.la || exit 1
test "x$link" = xreadlink_test_file || exit 1

rm -f readlink_test_file readlink_test_symlink

0 comments on commit 9c4aec9

Please sign in to comment.