Skip to content

Commit

Permalink
Remove most help file tests.
Browse files Browse the repository at this point in the history
Keep cli help tests for message, broadcast and tui.
  • Loading branch information
wxtim committed Jan 18, 2024
1 parent c32206d commit ad27da3
Show file tree
Hide file tree
Showing 48 changed files with 10 additions and 3,005 deletions.
21 changes: 10 additions & 11 deletions tests/functional/cli/04-kgo.t
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,20 @@
#-------------------------------------------------------------------------------
# Test "cylc set-verbosity"
. "$(dirname "$0")/test_header"
set_test_number 47
set_test_number 3

KGO="/net/home/h02/tpilling/metomi/cylc-flow/tests/functional/cli/04-kgo/"

# Get scripts described by cylc.flow entrypoints.
SCRIPTS=$(python -c "import cylc.flow as cf; print(' '.join(i.name for i in cf.iter_entry_points('cylc.command') if i.module_name.startswith('cylc.flow')))")
# List of sample scripts to test help documentation.
# broadcast - we want to keep this script consistent.
# message - we want to keep this script consistent. This script has two
# valid arg groups.
# tui - slightly non-standard script.
SCRIPTS="broadcast message tui"

for script in $SCRIPTS; do
# Generate KGO
# cylc $script --help > $KGO/$script.help 2>&1

# These three scripts can change the order of items printed:
if [[ $script != "vip" && $script != "scan" && $script != "vr" ]]; then
cylc "$script" --help > "$script.help" 2>&1
cmp_ok "$script.help" "$KGO/$script.help"
fi

done
cylc "$script" --help > "$script.help" 2>&1
cmp_ok "$script.help" "$KGO/$script.help"
done
93 changes: 0 additions & 93 deletions tests/functional/cli/04-kgo/cat-log.help

This file was deleted.

57 changes: 0 additions & 57 deletions tests/functional/cli/04-kgo/check-versions.help

This file was deleted.

81 changes: 0 additions & 81 deletions tests/functional/cli/04-kgo/clean.help

This file was deleted.

26 changes: 0 additions & 26 deletions tests/functional/cli/04-kgo/client.help

This file was deleted.

23 changes: 0 additions & 23 deletions tests/functional/cli/04-kgo/completion-server.help

This file was deleted.

Loading

0 comments on commit ad27da3

Please sign in to comment.