-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run test utils on Compy for v2.5.0rc2 (#586)
- Loading branch information
Showing
8 changed files
with
77 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/integration/generated/update_bash_generation_expected_files_compy.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Run this script to update expected files for test_bash_generation.py | ||
# Run from the top level of the zppy repo | ||
# Run as `./tests/integration/generated/update_bash_generation_expected_files.sh` | ||
|
||
rm -rf /compyfs/www/zppy_test_resources/expected_bash_files | ||
# Your output will now become the new expectation. | ||
# You can just move (i.e., not copy) the output since re-running this test will re-generate the output. | ||
mv test_bash_generation_output/post/scripts /compyfs/www/zppy_test_resources/expected_bash_files | ||
# Rerun test | ||
python -u -m unittest tests/integration/test_bash_generation.py |
20 changes: 20 additions & 0 deletions
20
tests/integration/generated/update_bundles_expected_files_compy.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Run this script to update expected files for test_bundles.py | ||
# Run from the top level of the zppy repo | ||
# Run as `./tests/integration/generated/update_bundles_expected_files.sh` | ||
|
||
# Remove old expected files. | ||
rm -rf /compyfs/www/zppy_test_resources/expected_bundles | ||
# Your output will now become the new expectation. | ||
# Copy output so you don't have to rerun zppy to generate the output. | ||
cp -r /compyfs/www/fors729/zppy_test_bundles_www/unique_id/v2.LR.historical_0201 /compyfs/www/zppy_test_resources/expected_bundles | ||
mkdir -p /compyfs/www/zppy_test_resources/expected_bundles/bundle_files | ||
cp -r /compyfs/fors729/zppy_test_bundles_output/unique_id/v2.LR.historical_0201/post/scripts/bundle*.bash /compyfs/www/zppy_test_resources/expected_bundles/bundle_files | ||
zppy_top_level=$(pwd) | ||
cd /compyfs/www/zppy_test_resources/expected_bundles | ||
# Remove the image check failures, so they don't end up in the expected files. | ||
rm -rf image_check_failures | ||
# This file will list all the expected images. | ||
find . -type f -name '*.png' > ../image_list_expected_bundles.txt | ||
cd ${zppy_top_level} | ||
# Rerun test | ||
python -u -m unittest tests/integration/test_bundles.py |
2 changes: 1 addition & 1 deletion
2
tests/integration/generated/update_campaign_expected_files_compy.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
tests/integration/generated/update_complete_run_expected_files_compy.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Run this script to update expected files for test_complete_run.py | ||
# Run from the top level of the zppy repo | ||
# Run as `./tests/integration/generated/update_complete_run_expected_files.sh` | ||
|
||
# Remove old expected files. | ||
rm -rf /compyfs/www/zppy_test_resources/expected_complete_run | ||
# Your output will now become the new expectation. | ||
# Copy output so you don't have to rerun zppy to generate the output. | ||
cp -r /compyfs/www/fors729/zppy_test_complete_run_www/unique_id/v2.LR.historical_0201 /compyfs/www/zppy_test_resources/expected_complete_run | ||
zppy_top_level=$(pwd) | ||
cd /compyfs/www/zppy_test_resources/expected_complete_run | ||
# Remove the image check failures, so they don't end up in the expected files. | ||
rm -rf image_check_failures | ||
# This file will list all the expected images. | ||
find . -type f -name '*.png' > ../image_list_expected_complete_run.txt | ||
cd ${zppy_top_level} | ||
# Rerun test | ||
python -u -m unittest tests/integration/test_complete_run.py |
11 changes: 11 additions & 0 deletions
11
tests/integration/generated/update_defaults_expected_files_compy.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Run this script to update expected files for test_defaults.py | ||
# Run from the top level of the zppy repo | ||
# Run as `./tests/integration/generated/update_defaults_expected_files.sh` | ||
|
||
rm -rf /compyfs/www/zppy_test_resources/test_defaults_expected_files | ||
mkdir -p /compyfs/www/zppy_test_resources/test_defaults_expected_files | ||
# Your output will now become the new expectation. | ||
# You can just move (i.e., not copy) the output since re-running this test will re-generate the output. | ||
mv test_defaults_output/post/scripts/*.settings /compyfs/www/zppy_test_resources/test_defaults_expected_files | ||
# Rerun test | ||
python -u -m unittest tests/integration/test_defaults.py |