libtests: enable strict/warnings, fix formatting

This commit is contained in:
Viktor Szakats 2025-07-09 23:27:13 +02:00
parent 364c5442c5
commit 28957cb37c
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
6 changed files with 17 additions and 0 deletions

View file

@ -22,6 +22,8 @@
# SPDX-License-Identifier: curl
#
###########################################################################
use strict;
use warnings;
# Usage:
# perl mk-lib1521.pl < ../../include/curl/curl.h lib1521.c

View file

@ -22,6 +22,9 @@
# SPDX-License-Identifier: curl
#
###########################################################################
use strict;
use warnings;
# Determine if curl-config --protocols/--features matches the
# curl --version protocols/features
if($#ARGV != 2) {

View file

@ -22,6 +22,9 @@
# SPDX-License-Identifier: curl
#
###########################################################################
use strict;
use warnings;
# Determine if curl-config --version matches the curl --version
if($#ARGV != 2) {
print "Usage: $0 curl-config-script curl-version-output-file version|vernum\n";

View file

@ -22,6 +22,9 @@
# SPDX-License-Identifier: curl
#
###########################################################################
use strict;
use warnings;
# Determine if the given curl executable supports the 'openssl' SSL engine
if($#ARGV != 0) {
print "Usage: $0 curl-executable\n";

View file

@ -22,6 +22,9 @@
# SPDX-License-Identifier: curl
#
###########################################################################
use strict;
use warnings;
# Perform simple file and directory manipulation in a portable way
if($#ARGV <= 0) {
print "Usage: $0 mkdir|rmdir|rm|move|gone path1 [path2] [more commands...]\n";

View file

@ -22,6 +22,9 @@
# SPDX-License-Identifier: curl
#
###########################################################################
use strict;
use warnings;
# Prepare a directory with known files and clean up afterwards
use Time::Local;