use strict; use warnings; use Test::More; unless ( $ENV{RELEASE_TESTING} ) { plan( skip_all => "Author tests not required for installation" ); } my $min_tcm = 0.9; eval "use Test::CheckManifest $min_tcm"; plan skip_all => "Test::CheckManifest $min_tcm required" if $@; ok_manifest(); #### Testing Environment Variable List Here's the contents of my /etc/environment file, setting the various testing environment variables for the full test platform. For LCD, the last two digits (4, 20) are for four row, 20 column units. If you only have a two row by 16 column unit, leave those last two digits off. PI_BOARD=1 RPI_ARDUINO=1 RPI_ADC=1 RPI_MCP3008=1 RPI_MCP4922=1 RPI_SHIFTREG=1 RPI_LCD=1 RPI_SERIAL=1 RPI_HCSR04=1 BB_RPI_LCD=5,6,4,17,27,22,4,20 RPI_RTC=1 RPI_MCP23017=1 RELEASE_TESTING=1 #### BEGIN { if (! $ENV{RPI_ARDUINO}){ plan skip_all => "RPI_ARDUINO environment variable not set\n"; } if (! $ENV{PI_BOARD}){ $ENV{NO_BOARD} = 1; plan skip_all => "Not on a Pi board\n"; } } #### PERL_DL_NONLAZY=1 "/home/pi/perl5/perlbrew/perls/perl-5.28.0/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load.t ....................... ok t/01-identification_and_label.t ... skipped: Not on a Pi board t/05-pin.t ........................ skipped: Not on a Pi board t/10-register.t ................... skipped: Not on a Pi board t/15-pwm_spi_adc.t ................ skipped: RPI_ADC environment variable not set t/20-cleanup.t .................... skipped: Not on a Pi board t/25-sig_die.t .................... skipped: Not on a Pi board t/35-pin_map.t .................... skipped: Not on a Pi board t/40-interrupt_rising_and_pud.t ... skipped: Not on a Pi board t/41-interrupt_falling_and_pud.t .. skipped: Not on a Pi board t/42-interrupt_both_and_pud.t ..... skipped: Not on a Pi board t/45-shift_reg_adc.t .............. skipped: RPI_SHIFTREG environment variable not set t/55-dac.t ........................ skipped: RPI_MCP4922 environment variable not set t/60-lcd.t ........................ skipped: RPI_LCD environment variable not set t/64-i2c_exceptions.t ............. skipped: RPI_ARUDINO environment variable not set t/65-i2c.t ........................ skipped: RPI_ARDUINO environment variable not set t/67-rtc.t ........................ skipped: RPI_RTC environment variable not set t/70-alt_modes.t .................. skipped: Not on a Pi board t/75-serial.t ..................... skipped: RPI_SERIAL environment variable not set t/80-mode_state_all_pins.t ........ skipped: Not on a Pi board t/85-pwm_hw_mods.t ................ skipped: Not on a Pi board t/90-servo.t ...................... skipped: Not on a Pi board t/92-mcp23017.t ................... skipped: RPI_MCP23017 environment variable not set t/95-pod_linkcheck.t .............. skipped: Test::Pod::LinkCheck required for testing POD links t/manifest.t ...................... skipped: Author tests not required for installation t/pod-coverage.t .................. skipped: Author tests not required for installation #### use strict; use warnings; use Test::More; eval "use Test::Pod::LinkCheck"; if ($@) { plan skip_all => 'Test::Pod::LinkCheck required for testing POD'; } if (! $ENV{RELEASE_TESTING}){ plan skip_all => 'Test::POD::LinkCheck tests not required for install.'; } Test::Pod::LinkCheck->new->all_pod_ok;