Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a collection of shell scripts that test the various implementations of the calculator program. All of this should be done on your Linux system,
Write a collection of shell scripts that test the various implementations of the calculator program. All of this should be done on your Linux system, and will later be submitted to GitLab. We have ways of knowing if you do not use Linux to write these tests. You may write as many scripts as you like, and may give them whatever names you like though we recommend intuitive names that say something about what the script checks Each script must work in the same way as basic arithmetic.sh: The script can be run at the command line with no arguments. The script may assume that the calc program has been compiled, is in the current directory, and isnamed calc. The script should test calc in some way by running it and checking its output. The script should communicate a successful test by returning and a failed test by returning something other than zero. When a test fails, it is helpful to print something that describes the error. The script must be stored in the tests directory
Write a collection of shell scripts that test the various implementations of the calculator program. All of this should be done on your Linux system, and will later be submitted to GitLab. We have ways of knowing if you do not use Linux to write these tests. You may write as many scripts as you like, and may give them whatever names you like though we recommend intuitive names that say something about what the script checks Each script must work in the same way as basic arithmetic.sh: The script can be run at the command line with no arguments. The script may assume that the calc program has been compiled, is in the current directory, and isnamed calc. The script should test calc in some way by running it and checking its output. The script should communicate a successful test by returning and a failed test by returning something other than zero. When a test fails, it is helpful to print something that describes the error. The script must be stored in the tests directory
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started