#!/bin/sh # # Copyright (c) 2010 Ævar Arnfjörð Bjarmason # global test_description := ''Perl gettext interface (Git::I18N)'' source ./lib-gettext.sh if ! test_have_prereq PERL { global skip_all := ''skipping perl interface tests, perl not available'' test_done } perl -MTest::More -e 0 !2 >/dev/null || do { global skip_all := '"Perl Test::More unavailable, skipping test'" test_done } # The external test will outputs its own plan global test_external_has_tap := '1' test_external_without_stderr \ 'Perl Git::I18N API' \ perl "$TEST_DIRECTORY"/t0202/test.pl test_done (CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:test_description) op: Equal rhs: {(SQ <"Perl gettext interface (Git::I18N)">)} spids: [13] ) ] spids: [13] ) (C {(.)} {(./lib-gettext.sh)}) (If arms: [ (if_arm cond: [ (Sentence child: (Pipeline children:[(C {(test_have_prereq)} {(PERL)})] negated:True) terminator: ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:skip_all) op: Equal rhs: {(SQ <"skipping perl interface tests, perl not available">)} spids: [36] ) ] spids: [36] ) (C {(test_done)}) ] spids: [-1 33] ) ] spids: [-1 44] ) (AndOr children: [ (SimpleCommand words: [{(perl)} {(-MTest) (Lit_Other ":") (Lit_Other ":") (More)} {(-e)} {(0)}] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[58])] ) (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:skip_all) op: Equal rhs: {(DQ ("Perl Test::More unavailable, skipping test"))} spids: [66] ) ] spids: [66] ) (C {(test_done)}) ] spids: [63] ) ] op_id: Op_DPipe ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:test_external_has_tap) op:Equal rhs:{(1)} spids:[80])] spids: [80] ) (C {(test_external_without_stderr)} {(SQ <"Perl Git::I18N API">)} {(perl)} {(DQ ($ VSub_Name "$TEST_DIRECTORY")) (/t0202/test.pl)} ) (C {(test_done)}) ] )