| 1 |
#! /bin/sh -vx |
| 2 |
# $Id: kpsereadlink.test 70081 2024-02-22 23:41:54Z karl $ |
| 3 |
# Copyright 2017-2024 Karl Berry <[email protected]> |
| 4 |
# Copyright 2010 Peter Breitenlohner <[email protected]> |
| 5 |
# You may freely use, modify and/or distribute this file. |
| 6 |
|
| 7 |
test -n "$LN_S" || LN_S="ln -s" # standalone testing |
| 8 |
|
| 9 |
test "x$LN_S" = 'xln -s' || exit 77 |
| 10 |
|
| 11 |
rm -f readlink_test_file readlink_test_symlink |
| 12 |
|
| 13 |
touch readlink_test_file |
| 14 |
|
| 15 |
$LN_S readlink_test_file readlink_test_symlink || exit 1 |
| 16 |
|
| 17 |
./kpsereadlink readlink_test_file && exit 1 |
| 18 |
|
| 19 |
link=`./kpsereadlink readlink_test_symlink` || exit 1 |
| 20 |
|
| 21 |
test "x$link" = xreadlink_test_file || exit 1 |
| 22 |
|
| 23 |
rm -f readlink_test_file readlink_test_symlink |