diff options
author | Denis Bitouzé <dbitouze@wanadoo.fr> | 2021-02-25 18:23:07 +0000 |
---|---|---|
committer | Denis Bitouzé <dbitouze@wanadoo.fr> | 2021-02-25 18:23:07 +0000 |
commit | c6101f91d071883b48b1b4b51e5eba0f36d9a78d (patch) | |
tree | 1bf7f5a881d7a4f5c5bf59d0b2821943dd822372 /Build/source/texk/kpathsea/tests | |
parent | 07ee7222e389b0777456b427a55c22d0e6ffd267 (diff) |
French translation for tlmgr updated
git-svn-id: svn://tug.org/texlive/trunk@57912 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/tests')
-rwxr-xr-x | Build/source/texk/kpathsea/tests/cnfline.test | 27 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/tests/cnfline/texmf.cnf | 5 | ||||
-rwxr-xr-x | Build/source/texk/kpathsea/tests/cnfnewline.test | 18 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/tests/cnfnewline/texmf.cnf | 1 | ||||
-rwxr-xr-x | Build/source/texk/kpathsea/tests/cnfnull.test | 23 | ||||
-rwxr-xr-x | Build/source/texk/kpathsea/tests/cnfprog.test | 23 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/tests/cnfprog/texmf.cnf | 13 | ||||
-rwxr-xr-x | Build/source/texk/kpathsea/tests/kpseaccess.test | 51 | ||||
-rwxr-xr-x | Build/source/texk/kpathsea/tests/kpsereadlink.test | 14 | ||||
-rwxr-xr-x | Build/source/texk/kpathsea/tests/kpsestat.test | 20 | ||||
-rwxr-xr-x | Build/source/texk/kpathsea/tests/kpsewhich.test | 35 |
11 files changed, 0 insertions, 230 deletions
diff --git a/Build/source/texk/kpathsea/tests/cnfline.test b/Build/source/texk/kpathsea/tests/cnfline.test deleted file mode 100755 index bffe8808b9d..00000000000 --- a/Build/source/texk/kpathsea/tests/cnfline.test +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh -vx -# $Id$ -# Copyright 2019 Karl Berry <tex-live@tug.org> -# You may freely use, modify and/or distribute this file. - -cnf_dir=$srcdir/tests/cnfline - -# Just for fun, let's first try the --cnf-line feature to set TEXMFCNF. -val=`./kpsewhich "--cnf-line=TEXMFCNF=$cnf_dir" --var-value=othervar` -test x"$val" = x300 || exit 1 - -# But for the rest, just use the environment, to keep things simpler. -TEXMFCNF=$cnf_dir; export TEXMFCNF - -# Make sure we get expected values from the test texmf.cnf. -val=`./kpsewhich --var-value=maxpr` -test x"$val" = x200 || exit 1 -# -val=`./kpsewhich --progname=foo --var-value=maxpr` -test x"$val" = x100 || exit 1 -# -val=`./kpsewhich --var-value=othervar` -test x"$val" = x300 || exit 1 - -# Now override on cmd line -- both texmf.cnf values should get overridden. -val=`./kpsewhich --cnf-line=maxpr=99 --var-value=maxpr` -test x"$val" = x99 || exit 1 diff --git a/Build/source/texk/kpathsea/tests/cnfline/texmf.cnf b/Build/source/texk/kpathsea/tests/cnfline/texmf.cnf deleted file mode 100644 index 164f25744f5..00000000000 --- a/Build/source/texk/kpathsea/tests/cnfline/texmf.cnf +++ /dev/null @@ -1,5 +0,0 @@ -# $Id$ -# Public domain. This tiny texmf.cnf is for kpathsea/tests/cnfline.test. -maxpr=100 -maxpr.kpsewhich=200 -othervar=300 diff --git a/Build/source/texk/kpathsea/tests/cnfnewline.test b/Build/source/texk/kpathsea/tests/cnfnewline.test deleted file mode 100755 index 9d93984d8f5..00000000000 --- a/Build/source/texk/kpathsea/tests/cnfnewline.test +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -vx -# $Id$ -# Copyright 2017 Karl Berry <tex-live@tug.org> -# Copyright 2013 Peter Breitenlohner <tex-live@tug.org> -# You may freely use, modify and/or distribute this file. - -TEXMFCNF=$srcdir/tests/cnfnewline; export TEXMFCNF - -val=`./kpsewhich --debug=-1 --var-value=lastvar` -test x"$val" = xlastval || exit 1 - -# verbose for testing. -#if test x"$val" = xlastval; then -# echo "$0: ok" -#else -# echo "$0: bad, got \`$val'" -# exit 1 -#fi diff --git a/Build/source/texk/kpathsea/tests/cnfnewline/texmf.cnf b/Build/source/texk/kpathsea/tests/cnfnewline/texmf.cnf deleted file mode 100644 index a3a189023f4..00000000000 --- a/Build/source/texk/kpathsea/tests/cnfnewline/texmf.cnf +++ /dev/null @@ -1 +0,0 @@ -lastvar = lastval # with comment, but no final newline
\ No newline at end of file diff --git a/Build/source/texk/kpathsea/tests/cnfnull.test b/Build/source/texk/kpathsea/tests/cnfnull.test deleted file mode 100755 index e80d931394c..00000000000 --- a/Build/source/texk/kpathsea/tests/cnfnull.test +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -vx -# $Id$ -# Copyright 2020 Karl Berry <tex-live@tug.org> -# You may freely use, modify and/or distribute this file. -# -# Test nul (zero) bytes in texmf.cnf. - -cnf_dir=cnfnull -cnf_file=$cnf_dir/texmf.cnf - -# Create the texmf.cnf dynamically so we don't have to check in a file -# containing nul bytes. -rm -rf $cnf_dir -mkdir $cnf_dir -test -d $cnf_dir || exit 1 -printf 'x\0=1\n\0' >$cnf_file || exit 1 - -val=`./kpsewhich "--cnf-line=TEXMFCNF=$cnf_dir" --var-value=x` -test x"$val" = x1 || exit 1 - -# Before we dropped nul bytes in 2020, kpse gave a warning: -# warning: cnfnull/texmf.cnf:1: (kpathsea) No cnf value on line: x. -# and did not assign anything (since the string ended with the x). diff --git a/Build/source/texk/kpathsea/tests/cnfprog.test b/Build/source/texk/kpathsea/tests/cnfprog.test deleted file mode 100755 index 08f472e2b34..00000000000 --- a/Build/source/texk/kpathsea/tests/cnfprog.test +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -vx -# $Id$ -# Copyright 2019 Karl Berry <tex-live@tug.org> -# You may freely use, modify and/or distribute this file. -# Test strange program name qualifiers which should give warnings. - -cnf_dir=$srcdir/tests/cnfprog - -# But for the rest, just use the environment, to keep things simpler. -TEXMFCNF=$cnf_dir; export TEXMFCNF - -# Make sure we get expected values from the test texmf.cnf. -errfile=cnfprog.err -val=`./kpsewhich --var-value=noequals 2>$errfile` - -# the vaiable should not have any value. -test -z "$val" || exit 1 - -grep 'Empty program name qualifier' $errfile || exit 1 -grep 'Unlikely character ;' $errfile || exit 1 -grep 'Unlikely character \$' $errfile || exit 1 - -exit 0 diff --git a/Build/source/texk/kpathsea/tests/cnfprog/texmf.cnf b/Build/source/texk/kpathsea/tests/cnfprog/texmf.cnf deleted file mode 100644 index 9b7bd3c6219..00000000000 --- a/Build/source/texk/kpathsea/tests/cnfprog/texmf.cnf +++ /dev/null @@ -1,13 +0,0 @@ -# $Id$ -# Public domain. This tiny texmf.cnf is for kpathsea/tests/cnfprog.test. - -# An empty program name is warned about (as of August 2019). -justdot. = dval - -# Contrary to appearances, this is interpreted as a program name ";val", -# with no value. A warning is issued. -noequals .;qval - -# Similarly, the "${var}" is a literal string here, not expanded. -# Again, a warning is issued. -braceprog.${var} = bval diff --git a/Build/source/texk/kpathsea/tests/kpseaccess.test b/Build/source/texk/kpathsea/tests/kpseaccess.test deleted file mode 100755 index a1630e6ec8e..00000000000 --- a/Build/source/texk/kpathsea/tests/kpseaccess.test +++ /dev/null @@ -1,51 +0,0 @@ -#! /bin/sh -vx -# $Id$ -# Copyright 2017 Karl Berry <tex-live@tug.org> -# Copyright 2010 Peter Breitenlohner <tex-live@tug.org> -# You may freely use, modify and/or distribute this file. - -ret=0 - -pass () { - echo "***** unexpected success of './kpseaccess $@'" - ret=77 -} - -fail () { - echo "***** unexpected failure of './kpseaccess $@'" - ret=77 -} - -./kpseaccess '' nonesuch && exit 1 -./kpseaccess - nonesuch && exit 1 -./kpseaccess r nonesuch && exit 1 -./kpseaccess w nonesuch && exit 1 -./kpseaccess x nonesuch && exit 1 - -./kpseaccess '' access.o || exit 1 -./kpseaccess - access.o || exit 1 -./kpseaccess rw access.o || exit 1 -# From the access(3p) POSIX manpage: -# If the process has appropriate privileges, an implementation may indicate -# success for X_OK even if none of the execute file permission bits are set. -./kpseaccess x access.o && pass x access.o - -# Testing write access to kpseaccess itself might fail with ETXTBSY. -./kpseaccess rwx kpsewhich || { - fail rwx kpsewhich - ./kpseaccess r kpsewhich || fail r kpsewhich - ./kpseaccess w kpsewhich || fail w kpsewhich - ./kpseaccess x kpsewhich || fail x kpsewhich -} - -./kpseaccess r $srcdir/access.c || exit 1 -./kpseaccess x $srcdir/access.c && pass x $srcdir/access.c - -if ./kpseaccess w $srcdir/access.c; then - echo 'file "$srcdir/access.c" is writable' -else - echo 'file "$srcdir/access.c" is not writable' -fi - -exit $ret - diff --git a/Build/source/texk/kpathsea/tests/kpsereadlink.test b/Build/source/texk/kpathsea/tests/kpsereadlink.test deleted file mode 100755 index 3b3570aa8d2..00000000000 --- a/Build/source/texk/kpathsea/tests/kpsereadlink.test +++ /dev/null @@ -1,14 +0,0 @@ -#! /bin/sh -vx -# $Id$ -# Copyright 2017 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 "x$LN_S" = 'xln -s' || exit 77 - -./kpsereadlink $LT_OBJDIR/libkpathsea.lai && exit 1 - -link=`./kpsereadlink $LT_OBJDIR/libkpathsea.la` || exit 1 - -test "x$link" = x../libkpathsea.la || exit 1 - diff --git a/Build/source/texk/kpathsea/tests/kpsestat.test b/Build/source/texk/kpathsea/tests/kpsestat.test deleted file mode 100755 index fa25f5a5968..00000000000 --- a/Build/source/texk/kpathsea/tests/kpsestat.test +++ /dev/null @@ -1,20 +0,0 @@ -#! /bin/sh -vx -# $Id$ -# Copyright 2017 Karl Berry <tex-live@tug.org> -# Copyright 2010 Peter Breitenlohner <tex-live@tug.org> -# You may freely use, modify and/or distribute this file. - -./kpsestat = nonesuch 2>/dev/null && exit 1 - -for f in . kpsestat kpsestat.o; do - echo "kpsestat = $f => `./kpsestat = $f`" -done - -for m in -rw g-r u-w o+x -rw,u+s -rw,g+s -rw,o+t; do - echo "kpsestat $m kpsestat.o => `./kpsestat $m kpsestat.o`" -done - -echo "kpsestat = \$srcdir => `./kpsestat = $srcdir`" -echo "kpsestat = \$srcdir/ => `./kpsestat = $srcdir/`" -echo "kpsestat = \$srcdir/kpsestat.c => `./kpsestat = $srcdir/kpsestat.c`" - diff --git a/Build/source/texk/kpathsea/tests/kpsewhich.test b/Build/source/texk/kpathsea/tests/kpsewhich.test deleted file mode 100755 index 261bf1b17f3..00000000000 --- a/Build/source/texk/kpathsea/tests/kpsewhich.test +++ /dev/null @@ -1,35 +0,0 @@ -#! /bin/sh -vx -# $Id$ -# Copyright 2018 Karl Berry <tex-live@tug.org> -# Copyright 2010-2013 Peter Breitenlohner <tex-live@tug.org> -# You may freely use, modify and/or distribute this file. - -TEXMFCNF=$srcdir -export TEXMFCNF - -./kpsewhich --var-value=TEXMFCNF || exit 1 # environment variable -./kpsewhich --var-value=TEXMFMAIN || exit 1 -./kpsewhich --expand-var=\$TEXMFMAIN || exit 1 - -# It turns out --all and no --all go through rather different code -# in pathsearch.c, so try them both. -TEXINPUTS=$srcdir/../tests/texmf \ - ./kpsewhich --casefold-search --all Plain.TeX || exit 1 -TEXINPUTS=$srcdir/../tests/texmf \ - ./kpsewhich --casefold-search Plain.TeX || exit 1 -# -# These runs will succeed on case-insensitive (file)systems, so don't -# run them. -#TEXINPUTS=$srcdir/../tests/texmf \ -# ./kpsewhich --no-casefold-search --all Plain.TeX && exit 1 -#TEXINPUTS=$srcdir/../tests/texmf \ -# ./kpsewhich --no-casefold-search Plain.TeX && exit 1 - -TEXINPUTS=$srcdir/../tests/texmf \ - ./kpsewhich --all plain || exit 1 - -AFMFONTS=$srcdir/../tests/texmf \ - ./kpsewhich afmtest.afm || exit 1 - -BSTINPUTS=$srcdir/../tests/texmf \ - ./kpsewhich plain.bst || exit 1 |