- This is a set of testing scripts for all simple shell tasks except betty and memory checks with valgrind.
- This suite is tested on Ubuntu 20.04 WSL.
- Runs a checker on your compiled code and displays
OK
if you have the expected output. - Displays command to be executed before it starts.
- Displays number of
OK
outputs at the end and total number of commands run. - Check only specific tasks instead of whole suite at once.
DISCLAIMER: Currently cannot check for valgrind errors so you must do that manually. If you get OK and also no memory leaks then expect GREEN on the Intranet. If you get OK and you have memory errors you will get RED in the intranet.
git clone
clone this repo into your simple_shell directorycd simple_shell_project
- Navigate to simple_shell_projectchmod +x checker.bash runchecker.bash
- make them executablemv runchecker.bash ../runchecker.bash
- move runchecker.bash to your simple_shell directory.cd ..
- Navigate back to simple_shell- Create a
.gitignore
file in your repo if you don't already have one and add these lines inside it
simple_shell_project
allowed_functions
./runchecker.bash
- to run the whole suite from task 1 - 16 at once.
--- OPTIONS ---
./runchecker.bash #
replace # with a number from 1- 16 to only run checks from a specific task e.g. to check task 3 only, do ./runchecker.bash 3
We welcome any feedback, suggestions, or bug reports related to the test cases in this repository. If you encounter any issues or have ideas for improvement, please open an issue on the repository's issue tracker. We appreciate your contributions in making this repository a valuable resource for students engaged in pair programming projects.
git clone https://github.com/Fuzzworth/alx_test_suite.git
then,
cd alx_test_suite/simple_shell_project
git checkout -b enhancement/<local_branch_name>
or
git branch enhancement/<local_branch_name>
git checkout enhancement/<local_branch_name>
- DO NOT MODIFY ANY OF THE FILES IN THE DIRECTORIES NAMED FROM 1 - 16
- DO NOT MODIFY checker.bash
Follow instructions for template here: Original post
An easy way to get this config using a single command:
printf "# Title: Summary, imperative, start upper case, don't end with a period\n# No more than 50 chars. #### 50 chars is here: #\n\n# Remember blank line between title and body.\n\n# Body: Explain *what* and *why* (not *how*). Include task ID (Jira issue).\n# Wrap at 72 chars. ################################## which is here: #\n\n\n# At the end: Include Co-authored-by for all contributors. \n# Include at least one empty line before it. Format: \n# Co-authored-by: name <user@users.noreply.github.com>\n#\n# How to Write a Git Commit Message:\n# https://chris.beams.io/posts/git-commit/\n#\n# 1. Separate subject from body with a blank line\n# 2. Limit the subject line to 50 characters\n# 3. Capitalize the subject line\n# 4. Do not end the subject line with a period\n# 5. Use the imperative mood in the subject line\n# 6. Wrap the body at 72 characters\n# 7. Use the body to explain what and why vs. how\n" > ~/.gitmessage && git config --global commit.template ~/.gitmessage
then,
git config commit.template ~/.gitmessage
then,
git commit
Do not use!!!
git commit -m "message"
Remove "#" from start of line to uncomment line
Title: Summary, imperative, start upper case, don't end with a period
# No more than 50 chars. #### 50 chars is here: #
# Remember blank line between title and body.
Body: Explain *what* and *why* (not *how*). Include task ID (Jira issue).
# Wrap at 72 chars. ################################## which is here: #
# At the end: Include Co-authored-by for all contributors.
# Include at least one empty line before it. Format:
Co-authored-by: name <user@users.noreply.github.com>
#
# How to Write a Git Commit Message:
# https://chris.beams.io/posts/git-commit/
#
# 1. Separate subject from body with a blank line
# 2. Limit the subject line to 50 characters
# 3. Capitalize the subject line
# 4. Do not end the subject line with a period
# 5. Use the imperative mood in the subject line
# 6. Wrap the body at 72 characters
# 7. Use the body to explain what and why vs. how
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch master
# Your branch is up to date with 'origin/main'.
#
# Changes to be committed:
# new file: installation.md
#
git push --set-upstream origin enhancement/<local_branch_name>
Currently Three Approvals are required to merge a branch in a pull request to main... God Speed everyone!
Before Approving a Pull request check to see it doesn't break our hard work.
If all is well Approve the request but if it is not Well leave a comment... links below