forked from openssl/openssl
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test/recipes] Split test_fuzz into separate recipes
When using `HARNESS_JOBS` to run the tests in parallel, no matter the level of parallelism that can be used, the monolithic `test_fuzz` takes a long time to run, conditioning the duration of the whole build. This commit splits the single `test_fuzz` recipe into separate recipes for each fuzzer. The previous mechanism to select individual fuzz tests using the `FUZZ_TESTS` environment variable is also dropped (and documentation updated). Reviewed-by: Richard Levitte <[email protected]> (Merged from openssl#13307)
- Loading branch information
Showing
16 changed files
with
287 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env perl | ||
# Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License 2.0 (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; | ||
|
||
use OpenSSL::Test qw/:DEFAULT srctop_file/; | ||
use OpenSSL::Test::Utils; | ||
|
||
my $fuzzer = "asn1"; | ||
setup("test_fuzz_${fuzzer}"); | ||
|
||
plan tests => 2; # one more due to below require_ok(...) | ||
|
||
require_ok(srctop_file('test','recipes','fuzz.pl')); | ||
|
||
fuzz_ok($fuzzer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env perl | ||
# Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License 2.0 (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; | ||
|
||
use OpenSSL::Test qw/:DEFAULT srctop_file/; | ||
use OpenSSL::Test::Utils; | ||
|
||
my $fuzzer = "asn1parse"; | ||
setup("test_fuzz_${fuzzer}"); | ||
|
||
plan tests => 2; # one more due to below require_ok(...) | ||
|
||
require_ok(srctop_file('test','recipes','fuzz.pl')); | ||
|
||
fuzz_ok($fuzzer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env perl | ||
# Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License 2.0 (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; | ||
|
||
use OpenSSL::Test qw/:DEFAULT srctop_file/; | ||
use OpenSSL::Test::Utils; | ||
|
||
my $fuzzer = "bignum"; | ||
setup("test_fuzz_${fuzzer}"); | ||
|
||
plan tests => 2; # one more due to below require_ok(...) | ||
|
||
require_ok(srctop_file('test','recipes','fuzz.pl')); | ||
|
||
fuzz_ok($fuzzer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env perl | ||
# Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License 2.0 (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; | ||
|
||
use OpenSSL::Test qw/:DEFAULT srctop_file/; | ||
use OpenSSL::Test::Utils; | ||
|
||
my $fuzzer = "bndiv"; | ||
setup("test_fuzz_${fuzzer}"); | ||
|
||
plan tests => 2; # one more due to below require_ok(...) | ||
|
||
require_ok(srctop_file('test','recipes','fuzz.pl')); | ||
|
||
fuzz_ok($fuzzer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env perl | ||
# Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License 2.0 (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; | ||
|
||
use OpenSSL::Test qw/:DEFAULT srctop_file/; | ||
use OpenSSL::Test::Utils; | ||
|
||
my $fuzzer = "client"; | ||
setup("test_fuzz_${fuzzer}"); | ||
|
||
plan tests => 2; # one more due to below require_ok(...) | ||
|
||
require_ok(srctop_file('test','recipes','fuzz.pl')); | ||
|
||
fuzz_ok($fuzzer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env perl | ||
# Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License 2.0 (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; | ||
|
||
use OpenSSL::Test qw/:DEFAULT srctop_file/; | ||
use OpenSSL::Test::Utils; | ||
|
||
my $fuzzer = "cmp"; | ||
setup("test_fuzz_${fuzzer}"); | ||
|
||
plan skip_all => "This test requires $fuzzer support" | ||
if disabled($fuzzer); | ||
|
||
plan tests => 2; # one more due to below require_ok(...) | ||
|
||
require_ok(srctop_file('test','recipes','fuzz.pl')); | ||
|
||
fuzz_ok($fuzzer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env perl | ||
# Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License 2.0 (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; | ||
|
||
use OpenSSL::Test qw/:DEFAULT srctop_file/; | ||
use OpenSSL::Test::Utils; | ||
|
||
my $fuzzer = "cms"; | ||
setup("test_fuzz_${fuzzer}"); | ||
|
||
plan skip_all => "This test requires $fuzzer support" | ||
if disabled($fuzzer); | ||
|
||
plan tests => 2; # one more due to below require_ok(...) | ||
|
||
require_ok(srctop_file('test','recipes','fuzz.pl')); | ||
|
||
fuzz_ok($fuzzer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env perl | ||
# Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License 2.0 (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; | ||
|
||
use OpenSSL::Test qw/:DEFAULT srctop_file/; | ||
use OpenSSL::Test::Utils; | ||
|
||
my $fuzzer = "conf"; | ||
setup("test_fuzz_${fuzzer}"); | ||
|
||
plan tests => 2; # one more due to below require_ok(...) | ||
|
||
require_ok(srctop_file('test','recipes','fuzz.pl')); | ||
|
||
fuzz_ok($fuzzer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env perl | ||
# Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License 2.0 (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; | ||
|
||
use OpenSSL::Test qw/:DEFAULT srctop_file/; | ||
use OpenSSL::Test::Utils; | ||
|
||
my $fuzzer = "crl"; | ||
setup("test_fuzz_${fuzzer}"); | ||
|
||
plan tests => 2; # one more due to below require_ok(...) | ||
|
||
require_ok(srctop_file('test','recipes','fuzz.pl')); | ||
|
||
fuzz_ok($fuzzer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env perl | ||
# Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License 2.0 (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; | ||
|
||
use OpenSSL::Test qw/:DEFAULT srctop_file/; | ||
use OpenSSL::Test::Utils; | ||
|
||
my $fuzzer = "ct"; | ||
setup("test_fuzz_${fuzzer}"); | ||
|
||
plan skip_all => "This test requires $fuzzer support" | ||
if disabled($fuzzer); | ||
|
||
plan tests => 2; # one more due to below require_ok(...) | ||
|
||
require_ok(srctop_file('test','recipes','fuzz.pl')); | ||
|
||
fuzz_ok($fuzzer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env perl | ||
# Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License 2.0 (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; | ||
|
||
use OpenSSL::Test qw/:DEFAULT srctop_file/; | ||
use OpenSSL::Test::Utils; | ||
|
||
my $fuzzer = "server"; | ||
setup("test_fuzz_${fuzzer}"); | ||
|
||
plan tests => 2; # one more due to below require_ok(...) | ||
|
||
require_ok(srctop_file('test','recipes','fuzz.pl')); | ||
|
||
fuzz_ok($fuzzer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env perl | ||
# Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License 2.0 (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; | ||
|
||
use OpenSSL::Test qw/:DEFAULT srctop_file/; | ||
use OpenSSL::Test::Utils; | ||
|
||
my $fuzzer = "x509"; | ||
setup("test_fuzz_${fuzzer}"); | ||
|
||
plan tests => 2; # one more due to below require_ok(...) | ||
|
||
require_ok(srctop_file('test','recipes','fuzz.pl')); | ||
|
||
fuzz_ok($fuzzer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters