wget/tests/Test--post-file.px
Tim Rühsen 79be99aff4 Add . to perl path for all perl tests
* tests/*.px: Add -I . to the shebang

This allows perl test to be run from tests/ directory, e.g. via
  ./Test--post-file.px
2018-09-07 10:48:14 +02:00

23 lines
511 B
Perl
Executable File

#!/usr/bin/env -S perl -I .
use strict;
use warnings;
use HTTPTest;
###############################################################################
my $cmdline = $WgetTest::WGETPATH . " --post-file=nofile http://localhost:{{port}}/";
my $expected_error_code = 3;
###############################################################################
my $the_test = HTTPTest->new (cmdline => $cmdline,
errcode => $expected_error_code);
exit $the_test->run();
# vim: et ts=4 sw=4