WIP: testing #96
No reviewers
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
joke
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: bonsai/coreutils#96
Loading…
Reference in New Issue
No description provided.
Delete Branch "testing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I have some questions and concerns.
@ -0,0 +10,4 @@
. tests/bonsai/test_env
! false
! false -h
GNU false(1), a notoriously POSIX non-compliant implementation, would pass here, as (if I recall) it returns
EXIT_FAILURE
for improper usage. It shouldn't pass, though, because it prints a usage text to the standard output when usage help or version information are queried.I think another good test would be
false --help | wc -c | xargs test 0 =
, though you should double check the exit statuses here before adding it.Why would we test for GNU extensions in our implementation of
true(1)
?It's testing for bloat. It drives home the fact that we will not compromise on making good, simple tools. If we did our tests would fail us.
But if we changed our minds, we could just change our test, and if someone made a PR with changes like that, they would just change the test too.
That's true. I suppose such a test isn't necessary.
@ -0,0 +1,13 @@
#!/bin/sh
Why is this separate from
tests/posix-compat/true.sh
?This is
true(1)
from Bonsai and the one inposix-compat/true.sh
istrue(1p)
Our true(1) and false(1) implementations are POSIX without extensions and shouldn't be extended. Maybe it would be better to only have them in the POSIX compatibility section.
It makes sense to have them in both because the true(1p) test script leverages our script; however, I have just realized that I have implemented the POSIX test suite in a different way than I originally imagined and will make more changes before we can continue this conversation.
@ -0,0 +17,4 @@
exit 1
fi
printf "Starting Bonsai testing.\n\n"
This seems ineligant. Programmatically print the test suite name at
tests/$suite/Name
, falling back to the folder name itself.@ -0,0 +28,4 @@
printf '\n'
done
if ! ls Makefile >/dev/null 2>&1
This should go before the previous
for
loop as it will crash faster on incorrect invocation.Goodness, I just saw the
WIP:
. Sorry for prematurely reviewing. It makes sense then that it seemed that this was unfinished. I really like where this is headed though.I requested it.
Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Forgejo.