2 # Copyright (C) 2020 all contributors <meta@public-inbox.org>
3 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
6 use PublicInbox::TestCommon;
7 $PublicInbox::TestCommon::cached_scripts{'lei-oneshot'} //= do {
12 *exit = \&PublicInbox::TestCommon::run_script_exit;
14 # the below "line" directive is a magic comment, see perlsyn(1) manpage
15 # line 1 "lei-oneshot"
16 require PublicInbox::LEI;
17 PublicInbox::LEI::oneshot(__PACKAGE__);
22 LeiOneshot->can('main');
24 local $ENV{TEST_LEI_ONESHOT} = '1';