diff --git a/tests/bats-test-scripts/man/man.bats b/tests/bats-test-scripts/man/man.bats index 933c6f1..e59dbe3 100644 --- a/tests/bats-test-scripts/man/man.bats +++ b/tests/bats-test-scripts/man/man.bats @@ -5,84 +5,84 @@ setup(){ save-man(){ section=$1 page_name=$2 - expected_output=$3 + expected_output="man-${section}-${page_name}" run bash -c "MANWIDTH=120 man -s $section --pager=cat $page_name> $BATS_TEST_DIRNAME/${expected_output}.expected.new" } run-man-test(){ section=$1 page_name=$2 - expected_output=$3 + expected_output="man-${section}-${page_name}" run bash -c "MANWIDTH=120 man -s $section --pager=cat $page_name" cat_expected "$expected_output" | assert_output - } @test "man shed-config.yaml" { - run-man-test 5 shed-config.yaml man-5-shed-config.yaml + run-man-test 5 shed-config.yaml } @test "man shed-aliases" { - run-man-test 1 shed-aliases man-1-shed-aliases + run-man-test 1 shed-aliases } @test "man shed-config-edit" { - run-man-test 1 shed-config-edit man-1-shed-config-edit + run-man-test 1 shed-config-edit } @test "man shed-config-get" { - run-man-test 1 shed-config-get man-1-shed-config-get + run-man-test 1 shed-config-get } @test "man shed-config" { - run-man-test 1 shed-config man-1-shed-config + run-man-test 1 shed-config } @test "man shed-env" { - run-man-test 1 shed-env man-1-shed-env + run-man-test 1 shed-env } @test "man shed-helm" { - run-man-test 1 shed-helm man-1-shed-helm + run-man-test 1 shed-helm } @test "man shed-istioctl" { - run-man-test 1 shed-istioctl man-1-shed-istioctl + run-man-test 1 shed-istioctl } @test "man shed-kubeconfig-use" { - run-man-test 1 shed-kubeconfig-use man-1-shed-kubeconfig-use + run-man-test 1 shed-kubeconfig-use } @test "man shed-kubectl-exec-bash" { - run-man-test 1 shed-kubectl-exec-bash man-1-shed-kubectl-exec-bash + run-man-test 1 shed-kubectl-exec-bash } @test "man shed-kubectl-exec-sh" { - run-man-test 1 shed-kubectl-exec-sh man-1-shed-kubectl-exec-sh + run-man-test 1 shed-kubectl-exec-sh } @test "man shed-kubectl-logs-follow" { - run-man-test 1 shed-kubectl-logs-follow man-1-shed-kubectl-logs-follow + run-man-test 1 shed-kubectl-logs-follow } @test "man shed-kubectl-logs-previous" { - run-man-test 1 shed-kubectl-logs-previous man-1-shed-kubectl-logs-previous + run-man-test 1 shed-kubectl-logs-previous } @test "man shed-kubectl-scale" { - run-man-test 1 shed-kubectl-scale man-1-shed-kubectl-scale + run-man-test 1 shed-kubectl-scale } @test "man shed-kubectl" { - run-man-test 1 shed-kubectl man-1-shed-kubectl + run-man-test 1 shed-kubectl } @test "man shed-list-code" { - run-man-test 1 shed-list-code man-1-shed-list-code + run-man-test 1 shed-list-code } @test "man shed-list" { - run-man-test 1 shed-list man-1-shed-list + run-man-test 1 shed-list } @test "man shed-use" { - run-man-test 1 shed-use man-1-shed-use + run-man-test 1 shed-use } @test "man shed-value-key-list" { - run-man-test 1 shed-value-key-list man-1-shed-value-key-list + run-man-test 1 shed-value-key-list } @test "man shed-value" { - run-man-test 1 shed-value man-1-shed-value + run-man-test 1 shed-value } @test "man shed-values" { - run-man-test 1 shed-values man-1-shed-values + run-man-test 1 shed-values } @test "man shed-kubectl-resources" { - run-man-test 1 shed-kubectl-resources man-1-shed-kubectl-resources + run-man-test 1 shed-kubectl-resources } @test "man shed" { - run-man-test 1 shed man-1-shed + run-man-test 1 shed } @test "shed" { run bash -c "MANWIDTH=120 PAGER=cat shed"