Skip to content

Commit f189629

Browse files
committed
Fix PATH for Windows, add Windows mock-ups (bat)
1 parent f909097 commit f189629

File tree

9 files changed

+22
-1
lines changed

9 files changed

+22
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
.PHONY: docs
44

5-
export PATH := $(PWD)/tests/mocks:$(PATH)
5+
ifeq ($(OS),Windows_NT)
6+
PATH_SEP := ;
7+
else
8+
PATH_SEP := :
9+
endif
10+
export PATH := $(CURDIR)/tests/mocks$(PATH_SEP)$(PATH)
611

712
all: docs lint test
813

tests/mocks/FPExpress.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
python "%~dp0FPExpress" %*

tests/mocks/impact.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
python "%~dp0impact" %*

tests/mocks/libero.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
python "%~dp0libero" %*

tests/mocks/pnmainc.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
python "%~dp0diamondc" %*

tests/mocks/quartus_pgm.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
python "%~dp0quartus_pgm" %*

tests/mocks/quartus_sh.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
python "%~dp0quartus_sh" %*

tests/mocks/vivado.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
python "%~dp0vivado" %*

tests/mocks/xtclsh.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
python "%~dp0xtclsh" %*

0 commit comments

Comments
 (0)