aboutsummaryrefslogtreecommitdiff
path: root/make/tests/common.mk
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2014-04-27 17:58:48 -0500
committerJoel Martin <github@martintribe.org>2014-04-27 17:58:48 -0500
commitcc021efe10380039a13da5300990639203450634 (patch)
tree02977d571ee6b42e7d5429ff8e922f183422eeb5 /make/tests/common.mk
parentb58698b257fb6552e053cd245d63a140d3f7a478 (diff)
downloadmal-cc021efe10380039a13da5300990639203450634.tar.gz
mal-cc021efe10380039a13da5300990639203450634.zip
Add step5/9 tests for impls that support it.
- Also remove broken make/tests/*.mk tests. Not used any more.
Diffstat (limited to 'make/tests/common.mk')
-rw-r--r--make/tests/common.mk18
1 files changed, 0 insertions, 18 deletions
diff --git a/make/tests/common.mk b/make/tests/common.mk
deleted file mode 100644
index 55b931d..0000000
--- a/make/tests/common.mk
+++ /dev/null
@@ -1,18 +0,0 @@
-
-# assert macros
-assert = $(if $1,,$(error assert failure: $2))
-assert_not = $(if $1,$(error assert_not: $2),)
-assert_eq = $(if $(call _EQ,$(1),$(2)),,$(error assert_eq failure: $(1) != $(2): $(3)))
-# With debug:
-#assert_eq = $(info 1: $(1))$(info 2: $(2))$(info 3: $(3))$(if $(call _EQ,$(1),$(2)),,$(error assert_eq failure: $(3)))
-
-
-# REPL related wrappers
-test_read = $(call READ_STR,$(1))
-ifndef MACROEXPAND
-define MACROEXPAND
-$(1)
-endef
-endif
-test_re = $(strip $(call EVAL,$(call MACROEXPAND,$(strip $(call test_read,$(1))),$(REPL_ENV)),$(REPL_ENV)))
-test_rep = $(call PRINT,$(strip $(call EVAL,$(call MACROEXPAND,$(strip $(call test_read,$(1))),$(REPL_ENV)),$(REPL_ENV))))