Skip to content

PS5 - Test Rep

Latest

Choose a tag to compare

@Brawun Brawun released this 06 Dec 04:45
1cc3b05

Test Report: My Simple Shell

Overview

This repository contains a simple test report for the SimpleShell project, which is a basic interactive shell written in C++. The SimpleShell allows users to execute standard commands, supports input/output redirection, and handles command piping.

The test report details the testing performed on SimpleShell to verify its functionality, including command execution, error handling, and exit conditions. The goal was to ensure that the shell operates as expected under normal use and provides proper feedback for invalid operations.

Contents

  • test_report.txt: A text file summarizing the tests conducted on the SimpleShell program. It includes details about the test environment, test cases, results, and recommendations for future enhancements.

How to Use

  1. Review the Test Report: The test_report.txt file contains a comprehensive summary of each test case, including the commands tested, expected outcomes, actual results, and whether the tests passed or failed.

  2. Test Environment: The tests were conducted on Ubuntu 20.04 using g++ 9.3.0 as the compiler. If you wish to reproduce the tests, ensure your environment matches or is compatible.

  3. Future Enhancements: Recommendations are included in the report for extending the shell's functionality, such as adding command history and improved signal handling.

Summary of Results

  • Total Test Cases: 10
  • Passed: 10
  • Failed: 0

The SimpleShell project has passed all the test cases outlined in the report. The report also includes additional suggestions to enhance the shell's usability and robustness.

Recommendations

  • Implement signal handling to manage commands like Ctrl+C without exiting the shell entirely.
  • Add a command history feature to enhance user experience by allowing previously executed commands to be recalled easily.

Conclusion

The SimpleShell performed as expected for all test cases, confirming its robustness for basic shell operations. It is now well-positioned for future feature enhancements and improvements.