Skip to content
  • Edward Z. Yang's avatar
    Sandbox support in the test suite. · 63252fb6
    Edward Z. Yang authored
    
    
    A bit of trickiness here.  The high points:
    
        - We need to feed --with-compiler to cabal.config, NOT
          the flag, because sandbox doesn't know how to read in
          compilers except from the global config.  This is
          arguably a bug but I can't be bothered to fix it.
    
        - We need to NOT provide certain commands when we're
          in sandbox mode; this is controlled by testHaveSandbox.
    
        - Use withSandbox to start a session in the sandbox.
          It inits the sandbox for you.
    
    Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
    63252fb6