summaryrefslogtreecommitdiffstats
path: root/testsuite/parseko
diff options
context:
space:
mode:
authorfche <fche>2005-07-28 18:07:02 +0000
committerfche <fche>2005-07-28 18:07:02 +0000
commit24cb178fd82936f55d254ebd0cd79802da21134a (patch)
treed9fbde4a94c16abf37a994c7d3ae147d04b77919 /testsuite/parseko
parentb290c791d701b5841ed824fddfce3f949b0a7b61 (diff)
downloadsystemtap-steved-24cb178fd82936f55d254ebd0cd79802da21134a.tar.gz
systemtap-steved-24cb178fd82936f55d254ebd0cd79802da21134a.tar.xz
systemtap-steved-24cb178fd82936f55d254ebd0cd79802da21134a.zip
2005-07-28 Frank Ch. Eigler <fche@redhat.com>
translator/1120 * main.cxx (main): Preset -R and -I options from environment variables (if set). Pass guru mode flags to parser. * parse.cxx (privileged): New parser operation flag. Update callers. (parse_embeddedcode): Throw an error if !privileged. (parse_functiondecl): Change signature. Prevent duplicates. (parse_globals): Ditto. * parse.h: Corresponding changes. * tapset/*.stp: Beginnings of real tapset library, to replace previous builtins. * tapsets.cxx: Greatly reduce verbose mode output. * Makefile.am: Install & dist it. * runtest.sh: Refer to it. * Makefile.in, aclocal.m4: Regenerated. * testsuite/*/*.stp: Set guru mode via /bin/sh if needed. * testusite/*/*ko.stp: Homogenize shell scripts.
Diffstat (limited to 'testsuite/parseko')
-rwxr-xr-xtestsuite/parseko/eleven.stp4
-rwxr-xr-xtestsuite/parseko/fourteen.stp7
-rwxr-xr-xtestsuite/parseko/ten.stp6
-rwxr-xr-xtestsuite/parseko/thirteen.stp7
-rwxr-xr-xtestsuite/parseko/twelve.stp4
5 files changed, 27 insertions, 1 deletions
diff --git a/testsuite/parseko/eleven.stp b/testsuite/parseko/eleven.stp
new file mode 100755
index 00000000..f1b9321d
--- /dev/null
+++ b/testsuite/parseko/eleven.stp
@@ -0,0 +1,4 @@
+#! stap -p1
+
+function foo () {}
+function foo () {}
diff --git a/testsuite/parseko/fourteen.stp b/testsuite/parseko/fourteen.stp
new file mode 100755
index 00000000..b646f8b6
--- /dev/null
+++ b/testsuite/parseko/fourteen.stp
@@ -0,0 +1,7 @@
+#! stap -p2
+
+function zoo () %{ /* invalid embedded code */ %}
+
+probe begin
+{
+}
diff --git a/testsuite/parseko/ten.stp b/testsuite/parseko/ten.stp
index a268db4e..0a5f338e 100755
--- a/testsuite/parseko/ten.stp
+++ b/testsuite/parseko/ten.stp
@@ -1,5 +1,9 @@
-#! stap -p1
+#! /bin/sh
+
+./stap -p1 -g - <<'END'
probe foo {
%{ /* not a valid place for embedded code */ %}
}
+
+END
diff --git a/testsuite/parseko/thirteen.stp b/testsuite/parseko/thirteen.stp
new file mode 100755
index 00000000..1a5b46f6
--- /dev/null
+++ b/testsuite/parseko/thirteen.stp
@@ -0,0 +1,7 @@
+#! stap -p2
+
+%{ /* embedded code not permitted since -g not supplied */ %}
+
+probe begin
+{
+}
diff --git a/testsuite/parseko/twelve.stp b/testsuite/parseko/twelve.stp
new file mode 100755
index 00000000..199f6a90
--- /dev/null
+++ b/testsuite/parseko/twelve.stp
@@ -0,0 +1,4 @@
+#! stap -p1
+
+global foo
+global foo