Skip to content

Commit

Permalink
Made 32 vs. 64-bit model selection for testing automatic.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Banas committed Apr 7, 2016
1 parent b1fd031 commit 541473d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion defs.mak
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ AMI_CONFIG := python -m pyibisami.ami_config
RUN_TESTS := python -m pyibisami.run_tests

# Machine dependent definitions
# Note: The "x86_amd64" is NOT an error! It is required, by MSVC v12.0.
MACHINE ?= X86
ifeq ($(MACHINE), X86)
SUFFIX := x86
else
ifeq ($(MACHINE), AMD64)
SUFFIX := amd64
SUFFIX := x86_amd64
else
$(error Unrecognized machine type: $(MACHINE))
endif
Expand Down
10 changes: 10 additions & 0 deletions example/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,22 @@ rx64:
MACHINE=AMD64 MODS=$(RX_NAME) INCS='amimodel.h ami_rx.h digital_filter.h fir_filter.h dfe.h' $(MAKE) targs

test_tx:
ifeq '$(shell python -c "import platform; print platform.architecture()[0]")' '32bit'
@echo "Testing 32-bit Tx model..."
MACHINE=X86 MODS=$(TX_NAME) TEST_RUNS=test_runs/tx TEST_OUT=test_results/tx/ $(MAKE) test
else
@echo "Testing 64-bit Tx model..."
MACHINE=AMD64 MODS=$(TX_NAME) TEST_RUNS=test_runs/tx TEST_OUT=test_results/tx/ $(MAKE) test
endif

test_rx:
ifeq '$(shell python -c "import platform; print platform.architecture()[0]")' '32bit'
@echo "Testing 32-bit Rx model..."
MACHINE=X86 MODS=$(RX_NAME) TEST_RUNS=test_runs/rx TEST_OUT=test_results/rx/ $(MAKE) test
else
@echo "Testing 64-bit Rx model..."
MACHINE=AMD64 MODS=$(RX_NAME) TEST_RUNS=test_runs/rx TEST_OUT=test_results/rx/ $(MAKE) test
endif

txami: $(TX_NAME).ami
txibs: $(TX_NAME).ibs
Expand Down
2 changes: 1 addition & 1 deletion example/example_rx.ibs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[File Name] example_rx.ibs
[File Rev] v0.1

[Date] 2016-04-05
[Date] 2016-04-07

[Source] ibisami, a public domain IBIS-AMI model creation infrastructure

Expand Down
2 changes: 1 addition & 1 deletion example/example_tx.ibs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[File Name] example_tx.ibs
[File Rev] v0.1

[Date] 2016-04-05
[Date] 2016-04-07

[Source] ibisami, a public domain IBIS-AMI model creation infrastructure

Expand Down

0 comments on commit 541473d

Please sign in to comment.