package Cpanel::Easy::Apache::MyTestXYZ;

our $easyconfig = {
    'name' => 'Add post restart tests for XYZ',
    'note' => 'This option does not alter anything with the build, it only adds tests to be run after a successful build and restart',
    'step'  => {
        '0' => {
            'name'    => 'Type A tests',
            'command' => sub {
                my ($easy) = @_;

                # see the post_httpd_restart_tests in Cpanel::Easy source for examples)
                push @{ $easy->{'_'}{'post_httpd_restart_tests'} }, 
                    {
                        'name'    => 'A2 support',
                        'command' => sub {
                            my ( $easy, $is_fatal_boolean_sr ) = @_;
                            
                            # do your tests for "A2 support" here
 
                            # if all is well:
                            return(1, 'ok');

                            # if not report it:
                            # return(0, q{maketest suitable error message [_1]}, 'here');

                            # to abort the build (YOU PROBABLY DO NOT WANT TO USE THIS)
                            # ${ $is_fatal_boolean_sr } = 1;
                            # return(0, q{maketest suitable error message [_1]}, 'here');
                        }, 
                    },
                    {
                        'name'  => 'A5 support',
                          ...
                    },
                ;
            },
        },
        '1' => {
            'name'    => 'Type B tests',
            'command' => sub {
                my ($easy) = @_;
                push @{ $easy->{'_'}{'post_httpd_restart_tests'} }, 
                ...
            },  
        },
    },

    # doesn't make much sense to add these tests unless we have the functionality
    ’depends’  => {
        ’optmods’ => {
            ’Cpanel::Easy::Apache::XYZ’ => 1, # This needs Apache's XYZ to be available
        },
    },
};

1;