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






                                      
         
 




                                                                                     


               
#!/bin/bash

set -e

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

./test.sh

check "version 6.0.405 installed" bash -c 'dotnet --list-sdks | grep 6.0.405'
check "version 3.1.416 installed" bash -c 'dotnet --list-sdks | grep 3.1.416'

# primary version plus 2 additional versions
check "latest version installed" bash -c 'test "$(dotnet --list-sdks | wc -l)" -eq 3'

# Report result
reportResults