-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test that docker container can resolve all supported files
- Loading branch information
1 parent
087dbc9
commit 5f10b45
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
GREEN='\033[0;32m' | ||
RED='\033[0;31m' | ||
|
||
# This script checks if all files in the current directory exist | ||
function check_files_exist() { | ||
isOk=true | ||
for file in "$@"; do | ||
if test -f "$file"; then | ||
echo -e "${GREEN}File $file OK${GREEN}" | ||
else | ||
echo -e "${RED}File $file does not exist!${RED}" | ||
isOk=false | ||
fi | ||
done | ||
|
||
if [ "$isOk" = false ]; then | ||
exit 1 | ||
fi | ||
|
||
} | ||
|
||
check_files_exist "test/resolve/testdata/npm/yarn.lock" \ | ||
"test/resolve/testdata/pip/requirements.txt.pip.debricked.lock" \ | ||
"test/resolve/testdata/nuget/packagesconfig/packages.config.nuget.debricked.lock" \ | ||
"test/resolve/testdata/nuget/csproj/packages.lock.json" \ | ||
"test/resolve/testdata/gradle/gradle.debricked.lock" \ | ||
"test/resolve/testdata/gomod/gomod.debricked.lock" |