Skip to content

Commit

Permalink
fix include paths
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Apr 9, 2024
1 parent a0eb6c4 commit dbc4615
Show file tree
Hide file tree
Showing 13 changed files with 52 additions and 52 deletions.
2 changes: 1 addition & 1 deletion src/vdct2template/macros.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def render_include(self):
for name, value in self.macros.items():
include += f'substitute "_{name}={value}"\n'

include += f'\ninclude "{self.template_path}"\n'
include += f'\ninclude "{self.template_path.name}"\n'

return include

Expand Down
6 changes: 3 additions & 3 deletions tests/results/dlsPLC_fastValve.template
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ substitute "_sta_label5=$(sta_label5=Open Disarmed)"
substitute "_sta_label6=$(sta_label6=)"
substitute "_donecalc=0"

include "/workspaces/vdct2template/tests/data/dlsPLC_valveCtrl.template"
include "dlsPLC_valveCtrl.template"


substitute "_DIR=$(EMPTY=)"
Expand All @@ -133,11 +133,11 @@ substitute "_ilk13=$(ilk13=unused)"
substitute "_ilk14=$(ilk14=unused)"
substitute "_ilk15=$(ilk15=unused)"

include "/workspaces/vdct2template/tests/data/dlsPLC_valveIlk.template"
include "dlsPLC_valveIlk.template"



include "/workspaces/vdct2template/tests/data/dlsPLC_valveGilk.template"
include "dlsPLC_valveGilk.template"


# Operational/Service Mode
Expand Down
6 changes: 3 additions & 3 deletions tests/results/dlsPLC_feFastValve.template
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ substitute "_sta_label5=$(sta_label5=Open Disarmed)"
substitute "_sta_label6=$(sta_label6=Partially Armed)"
substitute "_donecalc=0"

include "/workspaces/vdct2template/tests/data/dlsPLC_valveCtrl.template"
include "dlsPLC_valveCtrl.template"


substitute "_DIR=$(EMPTY=)"
Expand All @@ -113,11 +113,11 @@ substitute "_ilk13=$(ilk13=unused)"
substitute "_ilk14=$(ilk14=unused)"
substitute "_ilk15=$(ilk15=unused)"

include "/workspaces/vdct2template/tests/data/dlsPLC_valveIlk.template"
include "dlsPLC_valveIlk.template"



include "/workspaces/vdct2template/tests/data/dlsPLC_fastvalveGilk.template"
include "dlsPLC_fastvalveGilk.template"


# Operational/Service Mode
Expand Down
4 changes: 2 additions & 2 deletions tests/results/dlsPLC_genericDevice.template
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ substitute "_sta_label5=$(sta_label5=)"
substitute "_sta_label6=$(sta_label6=)"
substitute "_donecalc=((A=D)&(((A*2+1)=B)|A=2|C=0))?0:1"

include "/workspaces/vdct2template/tests/data/dlsPLC_valveCtrl.template"
include "dlsPLC_valveCtrl.template"


substitute "_DIR=ON"
Expand All @@ -94,7 +94,7 @@ substitute "_ilk13=$(ilk13=unused)"
substitute "_ilk14=$(ilk14=unused)"
substitute "_ilk15=$(ilk15=unused)"

include "/workspaces/vdct2template/tests/data/dlsPLC_valveIlk.template"
include "dlsPLC_valveIlk.template"



Expand Down
2 changes: 1 addition & 1 deletion tests/results/dlsPLC_interlock.template
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ substitute "_ilk13=$(ilk13=unused)"
substitute "_ilk14=$(ilk14=unused)"
substitute "_ilk15=$(ilk15=unused)"

include "/workspaces/vdct2template/tests/data/dlsPLC_valveIlk.template"
include "dlsPLC_valveIlk.template"



Expand Down
48 changes: 24 additions & 24 deletions tests/results/dlsPLC_interlock_summary.template
Original file line number Diff line number Diff line change
Expand Up @@ -82,145 +82,145 @@ record(calc, "$(device):ILK:GLOBAL") {
substitute "_N=1"
substitute "_ilk=$(ilk1=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=2"
substitute "_ilk=$(ilk2=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=3"
substitute "_ilk=$(ilk3=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=4"
substitute "_ilk=$(ilk4=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=5"
substitute "_ilk=$(ilk5=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=6"
substitute "_ilk=$(ilk6=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=7"
substitute "_ilk=$(ilk7=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=8"
substitute "_ilk=$(ilk8=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=9"
substitute "_ilk=$(ilk9=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=10"
substitute "_ilk=$(ilk10=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=11"
substitute "_ilk=$(ilk11=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=12"
substitute "_ilk=$(ilk12=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=13"
substitute "_ilk=$(ilk13=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=14"
substitute "_ilk=$(ilk14=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=15"
substitute "_ilk=$(ilk15=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=16"
substitute "_ilk=$(ilk16=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=17"
substitute "_ilk=$(ilk17=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=18"
substitute "_ilk=$(ilk18=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=19"
substitute "_ilk=$(ilk19=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=20"
substitute "_ilk=$(ilk20=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=21"
substitute "_ilk=$(ilk21=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=22"
substitute "_ilk=$(ilk22=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=23"
substitute "_ilk=$(ilk23=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"


substitute "_N=24"
substitute "_ilk=$(ilk24=NO-INTERLOCK)"

include "/workspaces/vdct2template/tests/data/dlsPLC_interlock_check.template"
include "dlsPLC_interlock_check.template"



Expand Down
6 changes: 3 additions & 3 deletions tests/results/dlsPLC_leakValve.template
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ substitute "_sta_label5=$(sta_label5=)"
substitute "_sta_label6=$(sta_label6=)"
substitute "_donecalc=((A=D)&(((A*2+1)=B)|A=2|C=0))?0:1"

include "/workspaces/vdct2template/tests/data/dlsPLC_valveCtrl.template"
include "dlsPLC_valveCtrl.template"


substitute "_DIR=$(EMPTY=)"
Expand All @@ -116,11 +116,11 @@ substitute "_ilk13=$(ilk13=unused)"
substitute "_ilk14=$(ilk14=unused)"
substitute "_ilk15=$(ilk15=unused)"

include "/workspaces/vdct2template/tests/data/dlsPLC_valveIlk.template"
include "dlsPLC_valveIlk.template"



include "/workspaces/vdct2template/tests/data/dlsPLC_valveGilk.template"
include "dlsPLC_valveGilk.template"


# Operational/Service Mode
Expand Down
2 changes: 1 addition & 1 deletion tests/results/dlsPLC_mpsPermit.template
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ substitute "_ilk13=$(ilk13=unused)"
substitute "_ilk14=$(ilk14=unused)"
substitute "_ilk15=$(ilk15=unused)"

include "/workspaces/vdct2template/tests/data/dlsPLC_valveIlk.template"
include "dlsPLC_valveIlk.template"



Expand Down
4 changes: 2 additions & 2 deletions tests/results/dlsPLC_vacPump.template
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ substitute "_sta_label5=$(sta_label5=)"
substitute "_sta_label6=$(sta_label6=)"
substitute "_donecalc=((A=D)&(((A*2+1)=B)|A=2|C=0))?0:1"

include "/workspaces/vdct2template/tests/data/dlsPLC_valveCtrl.template"
include "dlsPLC_valveCtrl.template"


substitute "_DIR=$(EMPTY=)"
Expand All @@ -102,7 +102,7 @@ substitute "_ilk13=$(ilk13=unused)"
substitute "_ilk14=$(ilk14=unused)"
substitute "_ilk15=$(ilk15=unused)"

include "/workspaces/vdct2template/tests/data/dlsPLC_valveIlk.template"
include "dlsPLC_valveIlk.template"


# Operational/Service Mode
Expand Down
6 changes: 3 additions & 3 deletions tests/results/dlsPLC_vacValve.template
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ substitute "_sta_label5=$(sta_label5=)"
substitute "_sta_label6=$(sta_label6=)"
substitute "_donecalc=((A=D)&(((A*2+1)=B)|A=2|C=0))?0:1"

include "/workspaces/vdct2template/tests/data/dlsPLC_valveCtrl.template"
include "dlsPLC_valveCtrl.template"


substitute "_DIR=$(EMPTY=)"
Expand All @@ -120,11 +120,11 @@ substitute "_ilk13=$(ilk13=unused)"
substitute "_ilk14=$(ilk14=unused)"
substitute "_ilk15=$(ilk15=unused)"

include "/workspaces/vdct2template/tests/data/dlsPLC_valveIlk.template"
include "dlsPLC_valveIlk.template"



include "/workspaces/vdct2template/tests/data/dlsPLC_valveGilk.template"
include "dlsPLC_valveGilk.template"


# Operational/Service Mode
Expand Down
6 changes: 3 additions & 3 deletions tests/results/dlsPLC_vacValveBistable.template
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ substitute "_sta_label5=$(sta_label5=)"
substitute "_sta_label6=$(sta_label6=)"
substitute "_donecalc=((A=D)&(((A*2+1)=B)|A=2|C=0))?0:1"

include "/workspaces/vdct2template/tests/data/dlsPLC_valveCtrl.template"
include "dlsPLC_valveCtrl.template"


# Override LASTCON to be selected bits of $(addr)+1
Expand Down Expand Up @@ -206,7 +206,7 @@ substitute "_ilk13=$(ilk13=unused)"
substitute "_ilk14=$(ilk14=unused)"
substitute "_ilk15=$(ilk15=unused)"

include "/workspaces/vdct2template/tests/data/dlsPLC_valveIlk.template"
include "dlsPLC_valveIlk.template"


substitute "_DIR=CLOSE"
Expand All @@ -231,7 +231,7 @@ substitute "_ilk13=$(cilk13=unused)"
substitute "_ilk14=$(cilk14=unused)"
substitute "_ilk15=$(cilk15=unused)"

include "/workspaces/vdct2template/tests/data/dlsPLC_valveIlk.template"
include "dlsPLC_valveIlk.template"


# Operational/Service Mode
Expand Down
6 changes: 3 additions & 3 deletions tests/results/dlsPLC_vacValveDebounce.template
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ substitute "_sta_label5=$(sta_label5=)"
substitute "_sta_label6=$(sta_label6=)"
substitute "_donecalc=((A=D)&(((A*2+1)=B)|A=2|C=0))?0:1"

include "/workspaces/vdct2template/tests/data/dlsPLC_valveCtrl.template"
include "dlsPLC_valveCtrl.template"


substitute "_DIR=$(EMPTY=)"
Expand All @@ -136,11 +136,11 @@ substitute "_ilk13=$(ilk13=unused)"
substitute "_ilk14=$(ilk14=unused)"
substitute "_ilk15=$(ilk15=unused)"

include "/workspaces/vdct2template/tests/data/dlsPLC_valveIlk.template"
include "dlsPLC_valveIlk.template"



include "/workspaces/vdct2template/tests/data/dlsPLC_valveGilk.template"
include "dlsPLC_valveGilk.template"


# Operational/Service Mode
Expand Down
Loading

0 comments on commit dbc4615

Please sign in to comment.