src/Reduce.jl
changed.
Other files ignored by Codecov
16 | 16 | # Setup pipes and reduce process |
|
17 | 17 | input = Pipe() |
|
18 | 18 | output = Pipe() |
|
19 | - | rsl = `$(split(rpsl))` |
|
20 | - | dirf = @__DIR__ |
|
19 | + | rsl = red() |
|
20 | + | dirf = joinpath(@__DIR__,"..","deps") |
|
21 | 21 | if !Sys.iswindows() |
|
22 | 22 | try |
|
23 | - | process = _spawn(rsl, input, output) |
|
23 | + | process = _spawn(red(), input, output) |
|
24 | 24 | catch |
|
25 | - | if Sys.islinux() |
|
26 | - | rsl = `$(joinpath(dirf,"..","deps","usr","bin"))/$rpsl` |
|
27 | - | elseif Sys.isapple() |
|
28 | - | rsl = `$(joinpath(dirf,"..","deps","csl"))/$rpsl -w` |
|
29 | - | else |
|
30 | - | rsl = `$(joinpath(dirf,"..","Reduce-svn$(rsvn[ρ])-src","bin"))/$rpsl` |
|
31 | - | end |
|
32 | - | process = _spawn(rsl, input, output) |
|
25 | + | process = _spawn(redsys(dirf), input, output) |
|
33 | 26 | end |
|
34 | 27 | else |
|
35 | - | dirf = joinpath(dirf,"..","deps") |
|
36 | - | #rsl = `"$(dirf)\psl\bpsl.exe" -td 16000000 -f "$(dirf)\red\reduce.img"` |
|
37 | - | rsl = `"$(dirf)\reduce.exe" --nogui` |
|
38 | - | process = _spawn(rsl, input, output) |
|
28 | + | process = _spawn(redsys(dirf), input, output) |
|
39 | 29 | end |
|
40 | 30 | # Close the unneeded ends of Pipes |
|
41 | 31 | close(input.out) |
Files | Coverage |
---|---|
src | 81.06% |
Project Totals (7 files) | 81.06% |