Age | Commit message (Collapse) | Author |
|
|
|
Simplify build.zig
|
|
It was added in commit 879eeb6 (Execution of test exercises added.).
|
|
Update test case 3 to check all exercises with an hint.
|
|
They are no longer used.
|
|
Add the Mode enum, so that ZiglingStep can detect if it was called in
normal mode or in named mode.
Update the help method to print the correct message based on the current
build mode.
|
|
Remove the `Exercise.addExecutable` method and the `SkipStep` struct, since
they are no longer used.
|
|
When running `zig build -Dn=n`, ensure that the logo is printed.
Update the tests.
Closes #214
|
|
Remove the following steps, since they are rarely (if never) used and
only increase the complexity of the `build.zig` file:
- install step (zig build -Dn=n install)
- test step (zig build -Dn=n test)
- start step (zig build -Dn=n start)
The only remaining step is the default zigling step (zig build -Dn=n),
where the user can choose the exercise to solve.
Update the tests. Additionally, update CheckNamedStep and CheckStep so
that they can share the same functions.
Closes #299
|
|
Removing the install step will simplify the current code.
Copying the exercise executable to the zig-out directory can be done in
`ZiglingStep.
Closes #298
|
|
The special eowyn mode was added in order to improve the performance of
the Eowyn Github workflow.
Remove it, since it adds unnecessary complexity to the `build.zig` file.
Closes #297
|
|
Added new flag 'run_test' to support test steps for test exercises
|
|
|
|
|
|
More improvements to build.zig and test/tests.zig
|
|
Commit dbd42bb (Cleaning up zig build output) broke the unit test.
Always use exit code 2, instead of 0. This is the exit code used by the
build runner to notify the compiler to not report any further
diagnostics.
Move the Ziglings logo from the `build` function scope to the global
scope, and make it public so that tests.zig can use it to find the
number of lines to skip, instead of using an hard coded value.
Fixes #295
|
|
Use fs.path.sep_str instead of a slash, in literal paths.
|
|
Use directly the RunStep.addCheck method, instead.
|
|
Avoid too long lines or too many line breaks.
|
|
Use it in Zigling.compile, in order to reduce code duplication.
|
|
Some functions and custom build steps incorrectly used a normal comment.
Use a doc-comment instead.
Additionally, use a present tense verb to describe the action of a
function or custom build step.
|
|
Instead of marking a parameter as unused inside the function body.
|
|
Update PrintStep and SkipStep to use the `self` variable when getting
the parent pointer from Step.
This convention is used in `std.Build`.
|
|
Update the code in `zig build install` and `zig build -Dn=n install`, so
that exercises that must be skipped are not installed, since it will
cause an error. Ensure that a skip message is printed.
|
|
The command fails because the path to the exercises directory was
incorrectly set to "exercises" instead of `work_path`.
The bug was introduced in commit b56bb7b
(build: enable full parallelism when -Dhealed is set).
Remove the comment about not using multi-object loop, since it is
confusing.
|
|
|
|
* Only show actual Zig compiler errors, not build internals to
confused and dismay.
* Remove advanced usage instructions not needed in normal
operation.
|
|
|
|
Add missing word "a"
|
|
Improve wording in some comments
|
|
Fix reference to slice_ptr in example code
|
|
Remove repeated word "with"
|
|
Add missing word "of"
|
|
Add missing word "to"
|
|
fix typo well -> will
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Improve instructions.
|
|
|
|
|
|
|
|
Improve Exercise type more
|
|
Replace the file_path variable with path.
|
|
Update the output and hint fields in the `exercises` slice to use a
multiline string literal when the string have multiple lines or use the
`"` character. This will greatly improve readability.
Additionally, remove the trailing whitespace on each line and check it
in the validate_exercises function.
Update the output comparison logic in ZiglingStep, since the current
code assumes that the string has only one line.
Update test/tests.zig to use the new `CheckNamedStep` in test case 1,
since RunStep.StdIo.Check is no longer able to correctly check the
output.
Fixes #283
|