Advertisement
Guest User

Untitled

a guest
Aug 28th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.72 KB | None | 0 0
  1. #!/bin/sh
  2. # This is a terrible hack. This is necessary because there is no way to change
  3. # the working directory in hhvm before we exec (chdir only changes a var in the
  4. # execution context). We need to change the working directory because php5
  5. # xdebug only accepts filenames relative the working directory and so line
  6. # breakpoint tests would fail if not run from the root test directory.
  7. # We need to manually fork and exec (as opposed to using proc_open) because we
  8. # have to close the listening socket before we exec.
  9.  
  10. # arg 1 is the working directory to cd to
  11. # arg 2 is the hhvm binary
  12. # arg 3 is "-c"
  13. # arg 4 is the ini file
  14. # arg 5 is the test to run
  15. cd $1
  16. echo "Executing $2 $3 $4 $5 in directory $1"
  17. exec $2 $3 $4 $5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement