aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJP Ungaretti <git@jungaretti.com>2023-03-01 10:33:44 +0300
committerJP Ungaretti <git@jungaretti.com>2023-03-01 10:33:44 +0300
commit7d4845e677edd34f036f99279864e72da78d2bab (patch)
tree20219c602023f3b04392a5c76fbbfcae80268125 /test
parentd432ed1d6d7be4d45f6f9f5327118103075ad3ca (diff)
Use ls to check install directory
Diffstat (limited to 'test')
-rwxr-xr-xtest/dotnet/test.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/dotnet/test.sh b/test/dotnet/test.sh
index bb3d430..ebbdca8 100755
--- a/test/dotnet/test.sh
+++ b/test/dotnet/test.sh
@@ -10,9 +10,12 @@ 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 sdk" ls -l /usr/local/dotnet/current/sdk
+check "current link sdks" /usr/local/dotnet/current/dotnet --list-sdks
+check "current link version" /usr/local/dotnet/current/dotnet --version
# Report result
reportResults