-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
85 additions
and
18 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 |
---|---|---|
@@ -1 +1,10 @@ | ||
{ LinkVersion: { ID: "4.0.20"}, Settings: { fastLoad: 1, forceFilenames: 1, watch: "both", },} | ||
|
||
{ | ||
LinkVersion: { ID: "4.0.20"}, | ||
|
||
Settings: { | ||
fastLoad: 1, | ||
forceFilenames: 1, | ||
watch: "both", | ||
}, | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
R←Test_UC_200(stopFlag batchFlag);⎕TRAP;rc;msg;res;stop;ns;expected | ||
R←Test_UC_200(stopFlag batchFlag);⎕TRAP;rc;msg;res;stop | ||
⍝ Print contents of a .linkconfig file to the session | ||
⎕TRAP←(999 'C' '∘∘∘ ⍝ Deliberate error')(0 'N') | ||
R←T._Failed | ||
|
||
∘∘∘ | ||
stop←0 | ||
(rc msg res)←stop ∆UCMD'ListTatinDependencies' | ||
(rc msg res)←stop ∆UCMD'LinkConfig' | ||
Assert rc=0 | ||
ns←##.Cider.Get_JSON5 #.Cider.CiderConfig.HOME,'/cider.config' | ||
expected←FilesAndDirs.EnforceSlash∘FilesAndDirs.AddTrailingSep¨{⍵↑⍨¯1+⍵⍳'='}¨ns.CIDER.(dependencies dependencies_dev).tatin | ||
→T.PassesIf∧/expected∊res[;] | ||
→T.PassesIf ∨/'*** Link config file'⍷∊res | ||
|
||
⍝Done |
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,27 @@ | ||
R←Test_UC_201(stopFlag batchFlag);⎕TRAP;rc;msg;res;stop;ref;tempDir;json;ns | ||
⍝ Let the user edit a Link config file | ||
⎕TRAP←(999 'C' '∘∘∘ ⍝ Deliberate error')(0 'N') | ||
R←T._Failed | ||
|
||
:If ~batchFlag | ||
CommTools.Pause'This test needs you: when an edit window pops up, change "CiderTest" from 1 to 2, then close the window.' | ||
:EndIf | ||
|
||
tempDir←∆GetFolderInTempDir⊃⎕SI | ||
tempDir ⎕NCOPY ##.CiderConfig.HOME,'/TestData/Boo-Project' | ||
|
||
ref←∆GetRefToCommTools | ||
ref.AddAutomation'YesOrNo' 'SaveLinkConfigChanges@' 'y' | ||
|
||
stop←0 | ||
(rc msg res)←stop ∆UCMD'LinkConfig ',tempDir,'/Boo-Project -edit' | ||
Assert rc=0 | ||
→T.GoToTidyUp'Changes got saved, but are not reflected in the workspace!'≢res | ||
json←⊃⎕NGET tempDir,'/Boo-Project/APLSource/.linkconfig' | ||
ns←⎕JSON⍠('Dialect' 'JSON5')⊢json | ||
→T.GoToTidyUp 2≠ns.CiderTest | ||
|
||
∆TidyUp: | ||
ref.Cleanup | ||
{}FilesAndDirs.RmDirByForce tempDir | ||
⍝Done |
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,21 @@ | ||
R←Test_UC_202(stopFlag batchFlag);⎕TRAP;rc;msg;res;stop;tempDir;ref | ||
⍝ Let the user delete a Link config file | ||
⎕TRAP←(999 'C' '∘∘∘ ⍝ Deliberate error')(0 'N') | ||
R←T._Failed | ||
|
||
tempDir←∆GetFolderInTempDir⊃⎕SI | ||
tempDir ⎕NCOPY ##.CiderConfig.HOME,'/TestData/Boo-Project' | ||
Assert ⎕NEXISTS tempDir,'/Boo-Project/APLSource/.linkconfig' | ||
|
||
ref←∆GetRefToCommTools | ||
ref.AddAutomation'YesOrNo' 'DeleteLinkConfig@' 'y' | ||
|
||
stop←0 | ||
(rc msg res)←stop ∆UCMD'LinkConfig ',tempDir,'/Boo-Project -delete' | ||
Assert rc=0 | ||
→T.GoToTidyUp 0≠⎕NEXISTS tempDir,'/Boo-Project/APLSource/.linkconfig' | ||
|
||
∆TidyUp: | ||
ref.Cleanup | ||
{}FilesAndDirs.RmDirByForce tempDir | ||
⍝Done |
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,11 @@ | ||
|
||
{ | ||
LinkVersion: { ID: "4.0.20"}, | ||
|
||
Settings: { | ||
fastLoad: 1, | ||
forceFilenames: 1, | ||
watch: "both", | ||
}, | ||
CiderTest: 1, | ||
} |
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