Skip to content

Update README.md

Update README.md #71

Workflow file for this run

# Run through a couple of tests toensure that the program is working as it should.
name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
Script:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Forget to specify a program or flag
run: |
./version || returnValue=$?
if [ $returnValue -ne 1 ]; then
exit 1
fi
- name: Display Help
run: |
./version -h
returnValue=$?
if [ $returnValue -ne 0 ]; then
exit 1
fi
- name: Display recognized program count
run: |
./version -c
returnValue=$?
if [ $returnValue -ne 0 ]; then
exit 1
fi
- name: Display version of version
run: |
./version -v
returnValue=$?
if [ $returnValue -ne 0 ]; then
exit 1
fi
- name: Display all the tools we know
run: |
./version -l
returnValue=$?
if [ $returnValue -ne 0 ]; then
exit 1
fi
- name: We don't know about this program
run: |
./version weflkfsdmlk || returnValue=$?
if [ $returnValue -ne 2 ]; then
exit 1
fi
- name: We know about this program but it is not installed
run: |
./version version || returnValue=$?
if [ $returnValue -ne 3 ]; then
exit 1
fi
- name: Displays the version of a known program (apt should be installed on ubuntu-latest)
run: |
./version apt
returnValue=$?
if [ $returnValue -ne 0 ]; then
exit 1
fi