Skip to content

Commit

Permalink
Add test for cylc-ref-graph.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjoliver committed Sep 5, 2019
1 parent 1820b1d commit c61579a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/cylc-graph-diff/00-simple.t
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Test cylc graph-diff for two suites.
. $(dirname $0)/test_header
#-------------------------------------------------------------------------------
set_test_number 24
set_test_number 27
#-------------------------------------------------------------------------------
install_suite $TEST_NAME_BASE-control $TEST_NAME_BASE-control
CONTROL_SUITE_NAME=$SUITE_NAME
Expand Down Expand Up @@ -160,6 +160,18 @@ node "foo.20140810T0000Z" "foo\n20140810T0000Z"
stop
__OUT__
cmp_ok "$TEST_NAME.stderr" </dev/null

#-------------------------------------------------------------------------------
# Check that the GTK-free "cylc ref-graph" command generates the same result as
# the original "cylc graph --reference" command.
TEST_NAME="${TEST_NAME_BASE}-ref1"
run_ok "${TEST_NAME}" cylc graph --reference "${CONTROL_SUITE_NAME}"
ref1="${TEST_NAME}.stdout"
TEST_NAME="${TEST_NAME_BASE}-ref2"
run_ok "${TEST_NAME}" cylc ref-graph "${CONTROL_SUITE_NAME}"
ref2="${TEST_NAME}.stdout"
cmp_ok "${ref1}" "${ref2}"

#-------------------------------------------------------------------------------
purge_suite $DIFF_SUITE_NAME
purge_suite $SAME_SUITE_NAME
Expand Down

0 comments on commit c61579a

Please sign in to comment.