test.sh 419 B

12345678910111213141516171819
  1. #!/bin/bash
  2. gcc bpi.c -o bpi
  3. echo testing no command
  4. ./bpi
  5. echo testing wrong command
  6. ./bpi -k
  7. echo testing command without value
  8. ./bpi -p
  9. echo testing missing required command
  10. ./bpi -v -e 1
  11. echo testing wrong edge
  12. ./bpi -p 10 -v -e 3
  13. echo testing command with value no edge
  14. ./bpi -p 10
  15. echo testing command with value and edge
  16. ./bpi -p 10 -e 1
  17. echo testing command with value and edge and verbose
  18. ./bpi -p 10 -e 1 -v