Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo "---Cat tests---"
- echo "->common tests"
- ./s21_cat test.txt >1
- cat test.txt >2
- diff -s 1 2
- ./s21_cat -n test.txt >1
- cat -n test.txt >2
- diff -s 1 2
- ./s21_cat -n test.txt test_cat.c >1
- cat -n test.txt test_cat.c >2
- diff -s 1 2
- ./s21_cat -v test.txt >1
- cat -v test.txt >2
- diff -s 1 2
- ./s21_cat -t test.txt >1
- cat -t test.txt >2
- diff -s 1 2
- ./s21_cat -b test.txt >1
- cat -b test.txt >2
- diff -s 1 2
- ./s21_cat -e test.txt >1
- cat -e test.txt >2
- diff -s 1 2
- ./s21_cat -s test.txt >1
- cat -s test.txt >2
- diff -s 1 2
- ./s21_cat -z test.txt >1
- cat -z test.txt >2
- diff -s 1 2
- ./s21_cat -s test.txt1 test_cat.c >1
- cat -s test.txt1 test_cat.c >2
- diff -s 1 2
- echo "end->common"
- echo "->GNU tests"
- ./s21_cat --number-nonblank test.txt >1
- cat --number-nonblank test.txt >2
- diff -s 1 2
- ./s21_cat --number test.txt >1
- cat --number test.txt >2
- diff -s 1 2
- ./s21_cat --squeeze-blank test.txt >1
- cat --squeeze-blank test.txt >2
- diff -s 1 2
- ./s21_cat -T test.txt >1
- cat -T test.txt >2
- diff -s 1 2
- ./s21_cat -E test.txt >1
- cat -E test.txt >2
- diff -s 1 2
- echo "end->GNU"
- echo "->bin tests"
- ./s21_cat s21_cat >1
- cat s21_cat >2
- diff -s 1 2
- ./s21_cat -n s21_cat >1
- cat -n s21_cat >2
- diff -s 1 2
- ./s21_cat -v s21_cat >1
- cat -v s21_cat >2
- diff -s 1 2
- ./s21_cat -t s21_cat >1
- cat -t s21_cat >2
- diff -s 1 2
- ./s21_cat -b s21_cat >1
- cat -b s21_cat >2
- diff -s 1 2
- ./s21_cat -e s21_cat >1
- cat -e s21_cat >2
- diff -s 1 2
- ./s21_cat -s s21_cat >1
- cat -s s21_cat >2
- diff -s 1 2
- echo "end->bin"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement