aboutsummaryrefslogblamecommitdiff
path: root/test/dotnet/test.sh
blob: ebbdca83a26955e1bb20c77e8b263cc78f4654eb (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

check "ls /usr/local/dotnet" bash -c 'test "$(ls /usr/local/dotnet | wc -l)" -gt 0'

# Verify current symlink exists and works
check "current link dotnet" /usr/local/dotnet/current/dotnet --info
check "current link sdks" /usr/local/dotnet/current/dotnet --list-sdks
check "current link version" /usr/local/dotnet/current/dotnet --version

# Report result
reportResults