-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #690 from mjuric/main
Packaging enhancements and fixes
- Loading branch information
Showing
5 changed files
with
31 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node: $Format:%H$ | ||
node-date: $Format:%cI$ | ||
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$ | ||
ref-names: $Format:%D$ |
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 |
---|---|---|
|
@@ -19,3 +19,4 @@ | |
# | ||
# png image files | ||
# *.png filter=lfs diff=lfs merge=lfs -text | ||
.git_archival.txt export-subst |
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 |
---|---|---|
|
@@ -168,3 +168,4 @@ checker.txt | |
ephemeris_output.csv | ||
data/out/ | ||
|
||
*~ |
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,24 @@ | ||
#!/bin/bash | ||
# | ||
# A quick test run to check the newly built code works as expected. | ||
# | ||
# It's lightweight and intented to be packaged with the binaries (e.g., in | ||
# conda packages) so it can be automatically run during package builds and | ||
# on the end-user's system (to test the install). | ||
# | ||
|
||
set -e | ||
|
||
test -d data || { echo "$0 must be run from the top-level source code directory"; exit -1; } | ||
|
||
rm -f quicktest-result.csv | ||
|
||
bootstrap_sorcha_data_files | ||
sorcha -c ./demo/sorcha_config_demo.ini -p ./demo/sspp_testset_colours.txt -ob ./demo/sspp_testset_orbits.des -pd ./demo/baseline_v2.0_1yr.db -o ./ -t quicktest-result | ||
|
||
# check that the output file size is larger than ~10k | ||
# (NOTE: this is just a rough check, we should test against known output here!) | ||
filesize=$(wc -c quicktest-result.csv | awk '{print $1}') | ||
test $filesize -gt 10000 | ||
|
||
echo "Quick test succesful!" |
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