Git Product home page Git Product logo

runsuite's Introduction

runSuite

Contributer: Ding Zhan Chia

Description

It is a Bash script for program testing. As to fix bugs and refine code, it will be very often to rerun old tests, to check that existing bugs have been fixed, and to ensure that no new bugs have been introduced.

How to use it

The command is as followed: ./runSuite suite-file program

The argument suite-file is the name of a file containing a list of filename stems (more details below), and the argument program is the name of the program to be run.

The suite-file contains a list of stems, from which we construct the names of les containing the input and expected output of each test. Stems will not contain spaces. For example, suppose our suite le is called suite.txt and contains the following entries:

test1
test2
test3
...

The test will use the file test1.in to hold its input, and test2.out to store its expected output. It will do the same jobs for the tests listed in suite-file.

The sample run of runSuite is as follows: ./runSuite suite.txt ./myprogram

Output

If the output of a given test case differs from the expected output, print the following to standard output (assuming test test2 failed):

Test failed: test2
Input:
(contents of test2.in)
Expected:
(contents of test2.out)
Actual:
(contents of the actual program output)

with the (contents ...) lines replaced with actual file contents, as described.

runsuite's People

Contributors

zhankit avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.