darcs

Patch 1108 Issue 2348

Title Issue 2348
Superseder Nosy List ganesh, rdesfo
Related Issues Please use the new testing interface instead
View: 2348
Status accepted Assigned To rdesfo
Milestone

Created on 2013-11-26.09:15:41 by rdesfo, last changed 2014-03-25.18:25:50 by darcswatch. Tracked on DarcsWatch.

Files
File name Status Uploaded Type Edit Remove
issue2348.dpatch dead rdesfo, 2013-11-26.09:15:41 text/plain
resolve-issue2348_-switch-to-cabal_s-test-framework.dpatch ganesh, 2013-12-01.20:59:48 application/octet-stream
See mailing list archives for discussion on individual patches.
Messages
msg17092 (view) Author: rdesfo Date: 2013-11-26.09:15:41
Hello,

I've attached a patch for issue 2348, which is to implement cabal's
test-suite.

Ryan
Attachments
msg17094 (view) Author: ganesh Date: 2013-11-26.23:34:50
Thanks for working on this!

I realised after we discussed it on IRC that a bit more cleanup is needed to switch:

 - The "test" flag should be removed from the earlier bits of the cabal file (the
cabal option --enable-tests is the replacement for -ftest)

 - remove the custom hook from Setup.lhs - it's doing a bit of work there but I think the 
default behaviour of the darcs-test executable is probably adequate.

Would you be able to look at those?

In terms of what you've done so far, I have a couple of comments:

 - Did you have to remove the build-tools line? I think it is valid in a test-suite, though I'm 
not sure if it buys us anything given that there's another copy in the main section of the cabal 
file.

 - Also your patch description should be a bit more descriptive of what the patch does. If you 
start it with "resolve issue2348: .." then the bug tracker will recognise that automatically. So 
perhaps something like "resolve issue2348: switch to cabal's test framework".

You can use darcs amend-record to edit the patch description and to add further changes to it.
msg17096 (view) Author: rdesfo Date: 2013-11-27.00:58:10
Hello Ganesh,

I've done the following:

* pulled changes from last night
* removed test flag from darcs.cabal  (test pass as normal)
* removed runtest from Setup.lhs 
   - cabal-test had a different output
      ...
      Linking dist/build/darcs-test/darcs-test ...
      Running 1 test suites...
      Test suite darcs-test: RUNNING...
      Test suite darcs-test: PASS
      Test suite logged to: dist/test/darcs-2.9.8-darcs-test.log
      1 of 1 test suites (1 of 1 test cases) passed.

* cleaned up Setup.lhs based off hlint suggestions
* working on adding runTest to harness/test.hs

I'll also amend the record so that it's more descriptive.  I can roll
these other changes into the record as well, right?

Ryan

On 11/26/2013 06:34 PM, Ganesh Sittampalam wrote:
> Ganesh Sittampalam <ganesh@earth.li> added the comment:
>
> Thanks for working on this!
>
> I realised after we discussed it on IRC that a bit more cleanup is needed to switch:
>
>  - The "test" flag should be removed from the earlier bits of the cabal file (the
> cabal option --enable-tests is the replacement for -ftest)
>
>  - remove the custom hook from Setup.lhs - it's doing a bit of work there but I think the 
> default behaviour of the darcs-test executable is probably adequate.
>
> Would you be able to look at those?
>
> In terms of what you've done so far, I have a couple of comments:
>
>  - Did you have to remove the build-tools line? I think it is valid in a test-suite, though I'm 
> not sure if it buys us anything given that there's another copy in the main section of the cabal 
> file.
>
>  - Also your patch description should be a bit more descriptive of what the patch does. If you 
> start it with "resolve issue2348: .." then the bug tracker will recognise that automatically. So 
> perhaps something like "resolve issue2348: switch to cabal's test framework".
>
> You can use darcs amend-record to edit the patch description and to add further changes to it.
>
> ----------
> assignedto:  -> rdesfo
> issues: +Please use the new testing interface instead
> nosy: +ganesh
> status: needs-screening -> followup-requested
>
> __________________________________
> Darcs bug tracker <bugs@darcs.net>
> <http://bugs.darcs.net/patch1108>
> __________________________________
>
msg17097 (view) Author: ganesh Date: 2013-11-27.06:13:51
Hi Ryan,

That's great, thanks.

Yes, you can both update the description and add more contents using
amend-record, and it makes sense to do so here.

Cheers,

Ganesh

On 27/11/2013 00:52, Ryan wrote:
> Hello Ganesh,
> 
> I've done the following:
> 
> * pulled changes from last night
> * removed test flag from darcs.cabal  (test pass as normal)
> * removed runtest from Setup.lhs 
>    - cabal-test had a different output
>       ...
>       Linking dist/build/darcs-test/darcs-test ...
>       Running 1 test suites...
>       Test suite darcs-test: RUNNING...
>       Test suite darcs-test: PASS
>       Test suite logged to: dist/test/darcs-2.9.8-darcs-test.log
>       1 of 1 test suites (1 of 1 test cases) passed.
> 
> * cleaned up Setup.lhs based off hlint suggestions
> * working on adding runTest to harness/test.hs
> 
> I'll also amend the record so that it's more descriptive.  I can roll
> these other changes into the record as well, right?
> 
> Ryan
> 
> On 11/26/2013 06:34 PM, Ganesh Sittampalam wrote:
>> Ganesh Sittampalam <ganesh@earth.li> added the comment:
>>
>> Thanks for working on this!
>>
>> I realised after we discussed it on IRC that a bit more cleanup is needed to switch:
>>
>>  - The "test" flag should be removed from the earlier bits of the cabal file (the
>> cabal option --enable-tests is the replacement for -ftest)
>>
>>  - remove the custom hook from Setup.lhs - it's doing a bit of work there but I think the 
>> default behaviour of the darcs-test executable is probably adequate.
>>
>> Would you be able to look at those?
>>
>> In terms of what you've done so far, I have a couple of comments:
>>
>>  - Did you have to remove the build-tools line? I think it is valid in a test-suite, though I'm 
>> not sure if it buys us anything given that there's another copy in the main section of the cabal 
>> file.
>>
>>  - Also your patch description should be a bit more descriptive of what the patch does. If you 
>> start it with "resolve issue2348: .." then the bug tracker will recognise that automatically. So 
>> perhaps something like "resolve issue2348: switch to cabal's test framework".
>>
>> You can use darcs amend-record to edit the patch description and to add further changes to it.
>>
>> ----------
>> assignedto:  -> rdesfo
>> issues: +Please use the new testing interface instead
>> nosy: +ganesh
>> status: needs-screening -> followup-requested
>>
>> __________________________________
>> Darcs bug tracker <bugs@darcs.net>
>> <http://bugs.darcs.net/patch1108>
>> __________________________________
>>
> 
>
msg17098 (view) Author: ganesh Date: 2013-12-01.20:59:48
Thanks for the updated patch - looks good.

The use of default-language prompts a cabal warning saying we should 
require Cabal-Version >= 1.10 ; I made an attempt to make that change 
but found a swamp of changes to do with how we declare our language 
extensions, so have held off on that for now. I'll send a followup to 
comment out default-language for not, unless there's a strong reason we 
need to keep it.
Attachments
msg17099 (view) Author: darcswatch Date: 2013-12-01.21:30:29
This patch bundle (with 1 patches) was just applied to the repository http://darcs.net/screened.
This message was brought to you by DarcsWatch
http://darcswatch.nomeata.de/repo_http:__darcs.net_screened.html#bundle-86ece657805c80ea203376ab61225920907d1337
msg17128 (view) Author: gh Date: 2014-01-20.18:59:13
I think we can unstuck this from the pipeline, and we fix the
default-language bug later.
msg17134 (view) Author: darcswatch Date: 2014-01-20.19:05:52
This patch bundle (with 1 patches) was just applied to the repository http://darcs.net/reviewed.
This message was brought to you by DarcsWatch
http://darcswatch.nomeata.de/repo_http:__darcs.net_reviewed.html#bundle-86ece657805c80ea203376ab61225920907d1337
History
Date User Action Args
2013-11-26 09:15:41rdesfocreate
2013-11-26 23:34:50ganeshsetstatus: needs-screening -> followup-requested
nosy: + ganesh
messages: + msg17094
issues: + Please use the new testing interface instead
assignedto: rdesfo
2013-11-27 00:58:10rdesfosetmessages: + msg17096
2013-11-27 06:13:51ganeshsetmessages: + msg17097
2013-12-01 20:59:49ganeshsetstatus: followup-requested -> accepted-pending-tests
files: + resolve-issue2348_-switch-to-cabal_s-test-framework.dpatch
messages: + msg17098
2013-12-01 21:30:29darcswatchsetmessages: + msg17099
2013-12-12 15:45:58darcswatchsetdarcswatchurl: http://darcswatch.nomeata.de/repo_http:__darcs.net_reviewed.html#bundle-86ece657805c80ea203376ab61225920907d1337
2014-01-20 18:59:14ghsetstatus: accepted-pending-tests -> accepted
messages: + msg17128
2014-01-20 19:05:52darcswatchsetmessages: + msg17134
2014-03-25 18:25:50darcswatchsetdarcswatchurl: http://darcswatch.nomeata.de/repo_http:__darcs.net_reviewed.html#bundle-86ece657805c80ea203376ab61225920907d1337 -> http://darcswatch.nomeata.de/repo_http:__darcs.net_reviewed.html#bundle-b079551c088c996ee7e5001ad1601cf1d258cb23