diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-02 12:16:38 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-02 12:16:38 -0500 |
| commit | b10cba594db836c0747066addad48bda4d30cd02 (patch) | |
| tree | 063119a623fa3f7139feda4ef302896d8f5f934c /dotfiles/common/.zsh/modules/Test/A07control.ztst | |
| parent | 49c2ba9c4510bf6e1acd306687473bc8ba9ad8dd (diff) | |
| download | archsetup-b10cba594db836c0747066addad48bda4d30cd02.tar.gz archsetup-b10cba594db836c0747066addad48bda4d30cd02.zip | |
refactor: drop in-repo dotfiles/, move stow tooling to the dotfiles repo
Since the installer clones DOTFILES_REPO into ~/.dotfiles and stows from there, the in-repo dotfiles/ tree was dead weight. Nothing reads it at install time. I removed it (831 files) now that both machines are migrated.
The Makefile's stow / restow / reset / unstow / import targets and the dotfile-script unit suites moved to the dotfiles repo. They sit alongside the scripts they manage and run standalone (cd ~/.dotfiles && make ...). This Makefile keeps the VM-integration targets and the installer-helper suite (safe-rm-rf).
I updated CLAUDE.md and README.md so stow operations run from ~/.dotfiles, and the dotfile-management, theme, and unit-test sections point at the standalone repo. The README was already describing the old in-repo model from before the installer switched to cloning. This brings it in line.
Diffstat (limited to 'dotfiles/common/.zsh/modules/Test/A07control.ztst')
| -rw-r--r-- | dotfiles/common/.zsh/modules/Test/A07control.ztst | 165 |
1 files changed, 0 insertions, 165 deletions
diff --git a/dotfiles/common/.zsh/modules/Test/A07control.ztst b/dotfiles/common/.zsh/modules/Test/A07control.ztst deleted file mode 100644 index b1a2487..0000000 --- a/dotfiles/common/.zsh/modules/Test/A07control.ztst +++ /dev/null @@ -1,165 +0,0 @@ -# Test control commands for loops and functions. - -%test - - fn3() { return $1; print Error } - fn2() { fn3 $1 } - fn() { - print start $1 - fn2 $1 - return - print Error - } - for val in -1 0 1 255; do - fn $val; print $? - done -0:Passing of return values back through functions ->start -1 ->-1 ->start 0 ->0 ->start 1 ->1 ->start 255 ->255 - - $ZTST_testdir/../Src/zsh -fc 'fn() { - continue - } - fn' -1:continue outside loop -?fn:continue:1: not in while, until, select, or repeat loop - - for outer in 0 1 2 3; do - print outer $outer - for inner in 0 1 2 3; do - print inner $inner - continue $(( (outer & 1) ? 2 : 1 )) - print error - done - print outer end - done -0:continue with valid argument ->outer 0 ->inner 0 ->inner 1 ->inner 2 ->inner 3 ->outer end ->outer 1 ->inner 0 ->outer 2 ->inner 0 ->inner 1 ->inner 2 ->inner 3 ->outer end ->outer 3 ->inner 0 - - for outer in 0 1; do - continue 0 - print -- $outer got here, status $? - done -1:continue error case 0 -?(eval):continue:2: argument is not positive: 0 - - for outer in 0 1; do - continue -1 - print -- $outer got here, status $? - done -1:continue error case -1 -?(eval):continue:2: argument is not positive: -1 - - fn() { - break - } - for outer in 0 1; do - print $outer - fn - done -0:break from within function (this is a feature, I disovered) ->0 - - for outer in 0 1 2 3; do - print outer $outer - for inner in 0 1 2 3; do - print inner $inner - break $(( (outer & 1) ? 2 : 1 )) - print error - done - print outer end - done -0:break with valid argument ->outer 0 ->inner 0 ->outer end ->outer 1 ->inner 0 - - for outer in 0 1; do - break 0 - print -- $outer got here, status $? - done -1:break error case 0 -?(eval):break:2: argument is not positive: 0 - - for outer in 0 1; do - break -1 - print -- $outer got here, status $? - done -1:break error case -1 -?(eval):break:2: argument is not positive: -1 - - false - for x in; do - print nothing executed - done -0:Status 0 from for with explicit empty list - - set -- - false - for x; do - print nothing executed - done -0:Status 0 from for with implicit empty list - - (exit 2) - for x in 1 2; do - print $? - done -0:Status from previous command propagated into for loop ->2 ->0 - - false - for x in $(echo 1 2; (exit 3)); do - print $? - done -0:Status from expansion propagated into for loop ->3 ->0 - - false - for x in $(exit 4); do - print not executed - done -0:Status from expansion not propagated after unexecuted for loop - - false - for x in NonExistentFilePrefix*(N); do - print not executed, either - done -0:Status from before for loop not propagated if empty after expansion - - for x in $(echo 1; false); do - done -0:Status reset by empty list in for loop - - false - for x in $(echo 1; false); do - echo $? - (exit 4) - done -4:Last status from loop body is kept even with other funny business going on ->1 |
