aboutsummaryrefslogtreecommitdiff
path: root/tests/incl00.at
diff options
context:
space:
mode:
Diffstat (limited to 'tests/incl00.at')
-rw-r--r--tests/incl00.at39
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/incl00.at b/tests/incl00.at
new file mode 100644
index 0000000..bb99fd2
--- /dev/null
+++ b/tests/incl00.at
@@ -0,0 +1,39 @@
+# This file is part of grecs -*- Autotest -*-
+# Copyright (C) 2014 Sergey Poznyakoff
+#
+# Grecs is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# Grecs is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Grecs. If not, see <http://www.gnu.org/licenses/>.
+
+AT_SETUP([Include path])
+AT_KEYWORDS([include incl00])
+
+AT_CHECK([
+mkdir include
+AT_DATA([include/1.inc],[this true;
+])
+
+AT_DATA([test.cf],[
+before 1;
+#include <1.inc>
+after 1;
+])
+
+gcffmt -I`pwd`/include ./test.cf
+],
+[0],
+[.before: "1"
+.this: "true"
+.after: "1"
+])
+
+AT_CLEANUP

Return to:

Send suggestions and report system problems to the System administrator.