-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reverted fetch-cobolcheck and fetch-cobolcheck.ps1 scripts. (#158)
* Reverted fetch-cobolcheck and fetch-cobolcheck.ps1 scripts. * fetch-cobolcheck-fixes: - Renamed bin/sync-fetch-cobolcheck-files to bin/sync-exercise-files and added synchronization for test.sh and test.ps1 files. - Added bin/exercise_test.sh and bin/exercise_test.ps1 as templates for test.sh and test.ps1 respectively. - Changed cobolcheck location to $HOME/cobolcheck/cobolcheck{,exe}. * fetch-cobolcheck-fixes: Restored the previous file permissions. * fetch-cobolcheck-fixes: Added command for the /home/simadovakin/cobolcheck/ creation in the fetch-cobolcheck,ps1
- Loading branch information
1 parent
f2095c6
commit 6c52fb9
Showing
189 changed files
with
743 additions
and
808 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
$slug=Split-Path $PSScriptRoot -Leaf | ||
$cobolcheck = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" | ||
|
||
if (![System.IO.File]::Exists("$cobolcheck")){ | ||
$fetchCobolcheckPath = Join-Path -Path "${PSScriptRoot}" "bin" "fetch-cobolcheck.ps1" | ||
echo $fetchCobolcheckPath | ||
Write-Output "Cobolcheck not found. Trying to fetch it." | ||
& "${fetchCobolcheckPath}" | ||
} | ||
|
||
Write-Output "Run cobolcheck." | ||
Set-Location $PSScriptRoot | ||
|
||
Invoke-Expression "$cobolcheck -p $slug" | ||
Invoke-Expression "cobc -xj test.cob" | ||
|
||
if ($Lastexitcode -ne 0) { | ||
exit $Lastexitcode | ||
} |
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,16 @@ | ||
#!/usr/bin/env bash | ||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )/ | ||
SLUG=${1:-$(basename "${SCRIPT_DIR}")} | ||
COBOLCHECK="${HOME}/cobolcheck/cobolcheck" | ||
|
||
if [ ! -f "${COBOLCHECK}" ]; then | ||
echo "Cobolcheck not found, try to fetch it." | ||
cd $SCRIPT_DIR/bin/ | ||
bash fetch-cobolcheck | ||
fi | ||
cd $SCRIPT_DIR | ||
$COBOLCHECK -p $SLUG | ||
|
||
# compile and run | ||
echo "COMPILE AND RUN TEST" | ||
cobc -xj test.cob |
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.