Skip to content

Commit

Permalink
Pulling test data in script
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia-Kosenkov committed Jun 16, 2021
1 parent e919064 commit 44ec098
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/test-libs.ps1
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
param([string]$path)
if ((Get-ChildItem "$path/TestData" -ErrorAction SilentlyContinue | Measure-Object).Count -eq 0) {
New-Item -Type Directory -ErrorAction SilentlyContinue "$path/TestData"
Invoke-WebRequest https://fits.gsfc.nasa.gov/samples/UITfuv2582gc.fits -OutFile "$path/TestData/UITfuv2582gc.fits"
Invoke-WebRequest https://fits.gsfc.nasa.gov/nrao_data/tests/nost_headers/bitpix13.fits -OutFile "$path/TestData/unsupp_bitpix.fits"
}
dotnet test $path -c Release

0 comments on commit 44ec098

Please sign in to comment.