aboutsummaryrefslogtreecommitdiff
path: root/old-tests/define
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-12-01 12:07:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-12-01 12:07:18 +0200
commit0ed86c76239d4f2904ea4ae1a77902a9e0db2a6d (patch)
tree5e8e1d43a0140f5739b21be7cbe120ebb9360d4f /old-tests/define
parent12fc75188cc1f0a8c4c443c04e7a022131198c36 (diff)
Move old tests to old-tests/
Diffstat (limited to 'old-tests/define')
-rw-r--r--old-tests/define/buildfile14
-rw-r--r--old-tests/define/buildfile.alias16
2 files changed, 30 insertions, 0 deletions
diff --git a/old-tests/define/buildfile b/old-tests/define/buildfile
new file mode 100644
index 0000000..d85fc57
--- /dev/null
+++ b/old-tests/define/buildfile
@@ -0,0 +1,14 @@
+#define # expected name
+#define foo # expected :
+#define foo: # expected name
+#define foo: bar # unknown target type
+
+define foo: file
+foo{FOO}: # verify name is foo{FOO} and not file{FOO} with --verbose 6
+
+#define foo: dir # already define in this scope
+
+define bar: foo
+bar{BAR}: # verify name is bar{BAR} with --verbose 6
+
+./:
diff --git a/old-tests/define/buildfile.alias b/old-tests/define/buildfile.alias
new file mode 100644
index 0000000..d3b9fc4
--- /dev/null
+++ b/old-tests/define/buildfile.alias
@@ -0,0 +1,16 @@
+#define # expected name
+#define foo # expected =
+#define foo= # expected name
+#define foo=bar # unknown target type
+
+define foo=file
+foo{FOO}: # verify name is foo{FOO} and not file{FOO} with --verbose 6
+
+#define foo=dir # already define in this scope
+
+define bar=foo
+bar{FOO}: # verify name is foo{FOO} and not bar{FOO} with --verbose 6
+bar{BAR}: # verify name is bar{BAR}
+
+define folder=dir
+folder{./}: # verify prints "folder{} is up to date"