openssl/test/generate_buildtest.pl
Richard Levitte bffb149054 Generate simple build test files
Generate small test programs to check that external programs can be
built with our stuff at a very basic level.

For now, they check that each of our header files can be included
individually without compile failure.

Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-06-04 01:22:08 +02:00

27 lines
637 B
Perl

#! /usr/bin/env perl
# Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the OpenSSL license (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
# in the file LICENSE in the source distribution or at
# https://www.openssl.org/source/license.html
use strict;
use warnings;
# First argument is name;
my $name = shift @ARGV;
# All other arguments are ignored for now
print <<"_____";
/*
* Generated with test/generate_buildtest.pl, to check that such a simple
* program builds.
*/
#include <openssl/$name.h>
int main()
{
return 0;
}
_____