summaryrefslogtreecommitdiff
path: root/Build/source/texk/tetex/tests/updmap-cmdline-test.pl
blob: 1fd6f4d21fead1cf6d92120f682dd67bd82d7e63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env perl
# $Id: bibtex-openout-test.pl 17384 2010-03-08 18:49:47Z karl $
# Public domain.  Originally written 2011, Karl Berry.
# Check that updmap can parse various cmdline invocations.

# srcdir = tetex (in the source tree)
BEGIN { chomp ($srcdir = $ENV{"srcdir"} || `cd \`dirname $0\`/.. && pwd`); }
require "$srcdir/../tests/common-test.pl";

exit (&main ());

sub main {
  my $ret = &test_run ("$srcdir/updmap.pl", "-n", "--quiet",
                       #"--enable", "Map=foo"
                       );

  # The test fails if the program succeeded.  Could also check the output.
  my $bad = ($ret == 0);
  return $bad;
}