home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-01-03 | 1.3 KB | 67 lines | [TEXT/ttxt] |
- #!/bin/csh
- # pretty_test ... to test command "pretty"
- #
- #set verbose = 1
- set usage = "Usage: pretty_test [compiler]"
- echo -n "Testing pretty ."
- cd ${SmallEiffel}/bin
- /bin/rm -fr pretty_test_tmp
- echo -n "."
- mkdir pretty_test_tmp
- echo -n "."
- cd pretty_test_tmp
- echo -n "."
- cp ../../lib_se/*.e .
- echo -n "."
- cp ../../lib_std/*.e .
- echo -n "."
- foreach flag (-default -zen -end -parano)
- echo -n "."
- echo -n "."
- foreach file (*.e)
- ../pretty ${flag} ${file}
- if ($status) then
- echo "Bad pretty_test (step 1)."
- echo flag is ${flag}
- exit 1
- endif
- echo -n "."
- cp ${file} ${file}.step1.${flag}
- end
- echo -n "."
- foreach file (*.e)
- ../pretty ${flag} ${file}
- if ($status) then
- echo "Bad pretty_test (step 2)."
- echo flag is ${flag}
- exit 1
- endif
- diff ${file} ${file}.step1.${flag}
- if ($status) then
- echo File ${file} is changing with ${flag}
- exit 1
- endif
- echo -n "."
- end
- echo -n "."
- ../pretty ${flag} *.e
- if ($status) then
- echo "Bad pretty_test (step 3)."
- echo flag is ${flag}
- exit 1
- endif
- echo "."
- /bin/rm -f pretty
- echo "."
- ../compile_to_c -boost pretty make
- ../compile_to_c compile make
- ../compile_to_c compile_to_c make
- ../pretty ${flag} *.e
- if ($status) then
- echo flag is ${flag}
- echo "Bad pretty_test (step 4)."
- exit 1
- endif
- end
- echo "pretty_test DONE."
-