shtest-output-printing.py 984 B

12345678910111213141516171819202122232425262728293031
  1. # Check the various features of the ShTest format.
  2. #
  3. # RUN: not %{lit} -j 1 -v %{inputs}/shtest-output-printing > %t.out
  4. # RUN: FileCheck --input-file %t.out %s
  5. #
  6. # END.
  7. # CHECK: -- Testing:
  8. # CHECK: FAIL: shtest-output-printing :: basic.txt
  9. # CHECK-NEXT: *** TEST 'shtest-output-printing :: basic.txt' FAILED ***
  10. # CHECK-NEXT: Script:
  11. # CHECK-NEXT: --
  12. # CHECK: --
  13. # CHECK-NEXT: Exit Code: 1
  14. #
  15. # CHECK: Command Output
  16. # CHECK-NEXT: --
  17. # CHECK-NEXT: $ ":" "RUN: at line 1"
  18. # CHECK-NEXT: $ "true"
  19. # CHECK-NEXT: $ ":" "RUN: at line 2"
  20. # CHECK-NEXT: $ "echo" "hi"
  21. # CHECK-NEXT: # command output:
  22. # CHECK-NEXT: hi
  23. #
  24. # CHECK: $ ":" "RUN: at line 3"
  25. # CHECK-NEXT: $ "not" "not" "wc" "missing-file"
  26. # CHECK-NEXT: # redirected output from '{{.*(/|\\\\)}}basic.txt.tmp.out':
  27. # CHECK-NEXT: {{cannot open missing-file|missing-file.* No such file or directory}}
  28. # CHECK: note: command had no output on stdout or stderr
  29. # CHECK-NEXT: error: command failed with exit status: 1