summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipsk/afm2tfm-test.pl
blob: 69704ae0f0d8c05d07a21930a7278e537fd171e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env perl
# $Id$
# Public domain.  Originally written 2010, Karl Berry.
# Check that afm2tfm functions at all.

BEGIN { chomp ($srcdir = $ENV{"srcdir"} || `dirname $0`); }
require "$srcdir/../tests/common-test.pl";

exit (&main ());

sub main
{
  my $outfile = "afmtest.tfm";
  my @args = ("afmtest.afm", $outfile);  # should be found via kpse
  my $ret = &test_run ("./afm2tfm", @args);

  my $bad = ! -f $outfile;  # tfm should have been created
  return $bad;
}