Update sysimage and build scripts

This commit is contained in:
2021-10-15 08:14:04 -05:00
parent 9ebb2e49f9
commit ee58af73f0
4 changed files with 36 additions and 20 deletions

View File

@@ -3,9 +3,11 @@
using RELOG
basedir = @__DIR__
@testset "Resolve" begin
# Shoud not crash
filename = "$(pwd())/../instances/s1.json"
filename = "$basedir/../../instances/s1.json"
solution_old, model_old = RELOG.solve(filename, return_model = true)
solution_new = RELOG.resolve(model_old, filename)
end

View File

@@ -4,9 +4,11 @@
using RELOG, JSON, GZip
basedir = @__DIR__
@testset "Reports" begin
@testset "from solve" begin
solution = RELOG.solve("$(pwd())/../instances/s1.json")
solution = RELOG.solve("$basedir/../instances/s1.json")
tmp_filename = tempname()
# The following should not crash
RELOG.write_plant_emissions_report(solution, tmp_filename)