Skip to content
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README
phase-1.tests
run-tests.sh
stef-config
test-001.mysh
test-001.sh
test-002.mysh
test-002.sh
test-003.mysh
test-003.sh
test-004.mysh
test-004.sh
test-005.mysh
test-005.sh
test-006.mysh
test-006.sh
test-007.mysh
test-007.sh
test-008.mysh
test-008.sh
test-009.mysh
test-009.sh
test-010.mysh
test-010.sh
test-011.mysh
test-011.sh
test-012.mysh
test-012.sh
test-013.mysh
test-013.sh
test-014.mysh
test-014.sh
test-015.mysh
test-015.sh
test-016.mysh
test-016.sh
test-017.mysh
test-017.sh
test-018.mysh
test-018.sh
test-019.mysh
test-019.sh
test-020.sh
test-021.mysh
test-021.sh
test-022.mysh
test-022.sh
test-023.mysh
test-023.sh
test-024.mysh
test-024.sh
test-025.mysh
test-025.sh
test-026.sh
test-028.sh
test-029.sh
test-030.sh
test-031.mysh
test-031.sh
test-032.mysh
test-032.sh
test-033.mysh
test-033.sh
test-034.mysh
test-034.sh
test-035.mysh
test-035.sh
test-config
test-output-001.txt
test-output-002.txt
test-output-003.txt
test-output-004.txt
test-output-005.txt
test-output-006.txt
test-output-007.txt
test-output-008.txt
test-output-009.txt
test-output-010.txt
test-output-011.txt
test-output-012.txt
test-output-013.txt
test-output-014.txt
test-output-015.txt
test-output-016.txt
test-output-017.txt
test-output-018.txt
test-output-019.txt
test-output-025.txt
test-output-026.txt
test-output-028.txt
test-output-029.txt
test-output-031.txt
test-output-032.txt
test-output-033.txt
test-output-034.txt
test-output-035.txt

README

# These tests are for verifying correctness of the shell assignment
# implementation for NSWI015.
#
# If you find a bug in your implementation that is not covered in these tests,
# let us know and we can add a new test.  Ideally, send us a pull request.

Make sure variables in ./test-config are correctly defined, then run the
following.

# For phase 1
./run-tests.sh $( cat phase-1.tests )

Expected output is something like the following (the number of tests may
change):

$ ./run-tests.sh $( cat phase-1.tests )
=== [ NSWI015 mysh shell unit tests ] ===

001	PASS
002	PASS
003	PASS
004	PASS
005	PASS
006	PASS
007	PASS
008	PASS
010	PASS
011	PASS
021	PASS
022	PASS
034	PASS
035	PASS

============

TESTS PASSED

# For phase 2
./run-tests.sh

Expected output is something like the following (the number of tests may
change):

$ ./run-tests.sh
=== [ NSWI015 mysh shell unit tests ] ===

001	PASS
002	PASS
003	PASS
004	PASS
005	PASS
006	PASS
007	PASS
008	PASS
009	PASS
010	PASS
011	PASS
012	PASS
013	PASS
014	PASS
015	PASS
016	PASS
017	PASS
018	PASS
019	PASS
020	PASS
021	PASS
022	PASS
023	PASS
024	PASS
025	PASS
026	PASS
028	PASS
029	PASS
030	PASS
031	PASS
032	PASS
033	PASS
034	PASS
035	PASS

============

TESTS PASSED
You can’t perform that action at this time.