From 87840f958af165e0d8ac65446c3d9a3a5266902e Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 28 Oct 2024 13:24:27 -0400 Subject: Add rt_generic_based_on.sh * Tests the "based_on" key --- tests/rt_generic_based_on.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tests/rt_generic_based_on.sh (limited to 'tests/rt_generic_based_on.sh') diff --git a/tests/rt_generic_based_on.sh b/tests/rt_generic_based_on.sh new file mode 100644 index 0000000..7ca11ce --- /dev/null +++ b/tests/rt_generic_based_on.sh @@ -0,0 +1,29 @@ +here="$(dirname ${BASH_SOURCE[0]})" +source $here/setup.sh + +TEST_NAME=generic_based_on +PYTHON_VERSIONS=( + 3.11 +) +setup_workspace "$TEST_NAME" +install_stasis + +ln -s "$TOPDIR"/"$TEST_NAME".yml +for py_version in "${PYTHON_VERSIONS[@]}"; do + run_stasis --python "$py_version" \ + --no-docker \ + --no-artifactory \ + "$TOPDIR"/"$TEST_NAME".ini +done + +check_output_add "(null)" +check_output_stasis_dir stasis/*/output +check_output_reset + +# NOTE: indexer default output directory is "output" +check_output_add "(null)" +run_stasis_indexer stasis +check_output_indexed_dir output +check_output_reset + +teardown_workspace "$TEST_NAME" -- cgit From 5f29a25a76f9dfb06a97e921f1d428c683970831 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 30 Oct 2024 09:37:37 -0400 Subject: Update RT tests to use run_command function --- tests/rt_generic_based_on.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'tests/rt_generic_based_on.sh') diff --git a/tests/rt_generic_based_on.sh b/tests/rt_generic_based_on.sh index 7ca11ce..7d78399 100644 --- a/tests/rt_generic_based_on.sh +++ b/tests/rt_generic_based_on.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash here="$(dirname ${BASH_SOURCE[0]})" source $here/setup.sh @@ -6,24 +7,24 @@ PYTHON_VERSIONS=( 3.11 ) setup_workspace "$TEST_NAME" -install_stasis +run_command install_stasis -ln -s "$TOPDIR"/"$TEST_NAME".yml +ln -s "$TEST_DATA"/"$TEST_NAME".yml for py_version in "${PYTHON_VERSIONS[@]}"; do - run_stasis --python "$py_version" \ + run_command run_stasis --python "$py_version" \ --no-docker \ --no-artifactory \ - "$TOPDIR"/"$TEST_NAME".ini + "$TEST_DATA"/"$TEST_NAME".ini done check_output_add "(null)" -check_output_stasis_dir stasis/*/output +run_command check_output_stasis_dir stasis/*/output check_output_reset # NOTE: indexer default output directory is "output" check_output_add "(null)" -run_stasis_indexer stasis -check_output_indexed_dir output +run_command run_stasis_indexer stasis +run_command check_output_indexed_dir output check_output_reset teardown_workspace "$TEST_NAME" -- cgit