Skip to content

Commit

Permalink
Busybox fix
Browse files Browse the repository at this point in the history
  • Loading branch information
musm committed Apr 27, 2017
1 parent 907b47c commit fbd9a93
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 50 deletions.
35 changes: 0 additions & 35 deletions contrib/windows/julia.rc

This file was deleted.

5 changes: 3 additions & 2 deletions test/cmdlineargs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

catcmd = `cat`
if is_windows()
busybox = joinpath(JULIA_HOME, "busybox.exe")
try # use busybox-w32 on windows
success(`busybox`)
catcmd = `busybox cat`
success(`$busybox`)
catcmd = `$busybox cat`
end
end

Expand Down
28 changes: 15 additions & 13 deletions test/spawn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,19 @@ shcmd = `sh`
sleepcmd = `sleep`
lscmd = `ls`
if is_windows()
busybox = joinpath(JULIA_HOME, "busybox.exe")
try # use busybox-w32 on windows
success(`busybox`)
yescmd = `busybox yes`
echocmd = `busybox echo`
sortcmd = `busybox sort`
printfcmd = `busybox printf`
truecmd = `busybox true`
falsecmd = `busybox false`
catcmd = `busybox cat`
shcmd = `busybox sh`
sleepcmd = `busybox sleep`
lscmd = `busybox ls`
success(`$busybox`)
yescmd = `$busybox yes`
echocmd = `$busybox echo`
sortcmd = `$busybox sort`
printfcmd = `$busybox printf`
truecmd = `$busybox true`
falsecmd = `$busybox false`
catcmd = `$busybox cat`
shcmd = `$busybox sh`
sleepcmd = `$busybox sleep`
lscmd = `$busybox ls`
end
end

Expand Down Expand Up @@ -343,8 +344,9 @@ let fname = tempname()
cmd = pipeline(`echo asdf`,`cat`)
if is_windows()
try
success(`busybox`)
cmd = pipeline(`busybox echo asdf`,`busybox cat`)
busybox = joinpath(JULIA_HOME, "busybox.exe")
success(`\$busybox`)
cmd = pipeline(`\$busybox echo asdf`,`\$busybox cat`)
end
end
for line in eachline(STDIN)
Expand Down

0 comments on commit fbd9a93

Please sign in to comment.