aboutsummaryrefslogblamecommitdiff
path: root/test/dotnet/test.sh
blob: a16f91df33b6d5d8dabcda628dd2257b1f08ca40 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



           

                                      



                               
                                
 
                                             
                                                                                                
 

               
#!/bin/bash

set -e

# Optional: Import test library
source dev-container-features-test-lib

# Definition specific tests
check "dotnet" dotnet --info
check "sdks" dotnet --list-sdks
check "version" dotnet --version

echo "Validating expected version present..."
check "some major version of dotnet 6 is installed" dotnet --version |  grep '6\.[0-9]*\.[0-9]*'

# Report result
reportResults