cs252/lab3-src-final/test-shell
2018-10-25 14:45:56 -04:00
..
file1.cc Re-add files 2018-10-25 14:45:56 -04:00
README Re-add files 2018-10-25 14:45:56 -04:00
test0 Re-add files 2018-10-25 14:45:56 -04:00
test1 Re-add files 2018-10-25 14:45:56 -04:00
test2 Re-add files 2018-10-25 14:45:56 -04:00
test3 Re-add files 2018-10-25 14:45:56 -04:00
test4 Re-add files 2018-10-25 14:45:56 -04:00
test5 Re-add files 2018-10-25 14:45:56 -04:00
test6 Re-add files 2018-10-25 14:45:56 -04:00
test7 Re-add files 2018-10-25 14:45:56 -04:00
test8 Re-add files 2018-10-25 14:45:56 -04:00
test9 Re-add files 2018-10-25 14:45:56 -04:00
test10 Re-add files 2018-10-25 14:45:56 -04:00
test11 Re-add files 2018-10-25 14:45:56 -04:00
test_cd1 Re-add files 2018-10-25 14:45:56 -04:00
test_cd2 Re-add files 2018-10-25 14:45:56 -04:00
test_cd3 Re-add files 2018-10-25 14:45:56 -04:00
test_cd4 Re-add files 2018-10-25 14:45:56 -04:00
test_cd5 Re-add files 2018-10-25 14:45:56 -04:00
test_envExpand1 Re-add files 2018-10-25 14:45:56 -04:00
test_envExpand2 Re-add files 2018-10-25 14:45:56 -04:00
test_escape Re-add files 2018-10-25 14:45:56 -04:00
test_parsing1 Re-add files 2018-10-25 14:45:56 -04:00
test_parsing2 Re-add files 2018-10-25 14:45:56 -04:00
test_printenv Re-add files 2018-10-25 14:45:56 -04:00
test_quotes1 Re-add files 2018-10-25 14:45:56 -04:00
test_quotes2 Re-add files 2018-10-25 14:45:56 -04:00
test_quotes3 Re-add files 2018-10-25 14:45:56 -04:00
test_robustness Re-add files 2018-10-25 14:45:56 -04:00
test_setenv1 Re-add files 2018-10-25 14:45:56 -04:00
test_setenv2 Re-add files 2018-10-25 14:45:56 -04:00
test_source Re-add files 2018-10-25 14:45:56 -04:00
test_subshell Re-add files 2018-10-25 14:45:56 -04:00
test_tilde Re-add files 2018-10-25 14:45:56 -04:00
test_unsetenv Re-add files 2018-10-25 14:45:56 -04:00
test_wildcards1 Re-add files 2018-10-25 14:45:56 -04:00
test_wildcards2 Re-add files 2018-10-25 14:45:56 -04:00
test_wildcards3 Re-add files 2018-10-25 14:45:56 -04:00
test_wildcards4 Re-add files 2018-10-25 14:45:56 -04:00
test_wildcards5 Re-add files 2018-10-25 14:45:56 -04:00
test_wildcards6 Re-add files 2018-10-25 14:45:56 -04:00
test_wildcards7 Re-add files 2018-10-25 14:45:56 -04:00
test_zombie Re-add files 2018-10-25 14:45:56 -04:00
testall Re-add files 2018-10-25 14:45:56 -04:00
testall.out Re-add files 2018-10-25 14:45:56 -04:00

Shell Project Testing Script
----------------------------

1. Make sure that your shell project does not print
debug messages. The output will be compared with the one
of csh and the extra debug messages will cause the output
to be different.

2. Only print the shell prompt if the input is a terminal.
Use the function "isatty()" to know if the input is a terminal or not.
Add the following code to your shell in the prompt procedure:

if ( isatty(0) ) {
  Print prompt
}

3. The test script assumes that your shell executable is called "shell"
and "shell" is found one directory above the test directory.

4. To run all tests type "testall". You may also run each test
individually by typing test1 etc.

Good luck!