Ticket #12 (new enhancement)

Opened 6 years ago

Last modified 6 years ago

Port the result-writing functionality from the perl script to lhc-regress

Reported by: SamB Owned by:
Priority: normal Milestone:
Component: test suite Version:
Keywords: Cc:
Test Case:

Description (last modified by SamB) (diff)

This feature writes results for each regression test run into a directory named regress/results/<timestamp> and creates a symlink to it called regress/results/latest, and the previous latest/ is renamed to last/.

The results directory holds, for each test:

  • whatever auxiliary output files LHC writes (depending on the flags), including .grin, .c, and executable files
  • a .lhc_out file into which lhc's stdout is redirected
  • .stdout and .stderr files of execution output

Optionally, the .ho files for the test suite are stored in the ho subdirectory of the results directory. (The other choice is that they are stored in results/ho.)

There is also top-level log.txt file containing a copy of the output of regress.pl: basically, whether each test passed or how it failed, it's compile time, and it's run time. (Haven't seen it lately, though.)

Attachments

log.txt (13.4 kB) - added by SamB 6 years ago.
regress/results/20090203222654/log.txt

Change History

Changed 6 years ago by SamB

  • priority changed from major to normal

Changed 6 years ago by SamB

  • description modified (diff)

Changed 6 years ago by SamB

  • component changed from unspecified to test suite

Changed 6 years ago by SamB

Hmm, I got the perl script working for me again.

naesten@hydrogen:~/hacking/haskell/lhc% ls regress/results/ -l    
total 20
drwxr-xr-x 2 naesten naesten 4096 2009-02-03 20:45 20090203204553
drwxr-xr-x 2 naesten naesten 4096 2009-02-03 21:05 20090203205517
drwxr-xr-x 2 naesten naesten 4096 2009-02-04 03:58 20090203222654
lrwxrwxrwx 1 naesten naesten   14 2009-02-03 22:26 current -> 20090203222654
drwxr-xr-x 2 naesten naesten 4096 2009-02-03 20:46 ho
drwxr-xr-x 2 naesten naesten 4096 2009-02-04 03:58 ho_l
lrwxrwxrwx 1 naesten naesten   14 2009-02-03 22:20 last -> 20090203205517
lrwxrwxrwx 1 naesten naesten   14 2009-02-04 04:31 latest -> 20090203222654
naesten@hydrogen:~/hacking/haskell/lhc% ls -l regress/results/latest/
total 756
-rw-r--r-- 1 naesten naesten  13718 2009-02-04 04:31 log.txt
-rwxr-xr-x 1 naesten naesten  11111 2009-02-04 03:54 tests.bugs.Exceptions1
-rw-r--r-- 1 naesten naesten    191 2009-02-04 03:54 tests.bugs.Exceptions1.lhc_out
-rw-r--r-- 1 naesten naesten      0 2009-02-04 03:54 tests.bugs.Exceptions1.stdout
-rw-r--r-- 1 naesten naesten     86 2009-02-04 03:54 tests.bugs.ImportZeal.lhc_out
[...]

Changed 6 years ago by SamB

regress/results/20090203222654/log.txt

Note: See TracTickets for help on using tickets.