File: shell_config_generate__echo_off.t

package info (click to toggle)
libshell-config-generate-perl 0.34-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 268 kB
  • sloc: perl: 595; sh: 3; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use Test2::V0 -no_srand => 1;
use Shell::Guess;
use Shell::Config::Generate;

is eval { Shell::Config::Generate->new->echo_off->generate(Shell::Guess->bourne_shell) }, "", "echo off = ''";
diag $@ if $@;

is eval { Shell::Config::Generate->new->echo_off->generate(Shell::Guess->cmd_shell) }, "\@echo off\n", 'echo off = @echo off';
diag $@ if $@;

is eval { Shell::Config::Generate->new->echo_off->echo_on->generate(Shell::Guess->cmd_shell) }, "", 'echo off = ""';
diag $@ if $@;

done_testing;