summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.printf/int1.stp
diff options
context:
space:
mode:
authorfche <fche>2006-08-12 05:13:09 +0000
committerfche <fche>2006-08-12 05:13:09 +0000
commit814bc89d4635f101b2c0077598f31aad95ed15b7 (patch)
tree407a49dbaf446af4751f5068607a7fb8dad0611d /testsuite/systemtap.printf/int1.stp
parent6b6d04673a1ef175821afc7d4fabdb496698e8e3 (diff)
downloadsystemtap-steved-814bc89d4635f101b2c0077598f31aad95ed15b7.tar.gz
systemtap-steved-814bc89d4635f101b2c0077598f31aad95ed15b7.tar.xz
systemtap-steved-814bc89d4635f101b2c0077598f31aad95ed15b7.zip
2006-08-12 Frank Ch. Eigler <fche@elastic.org>
* configure.ac, Makefile.am: Descend into testsuite/ directory. Remove local test logic. * configure, Makefile.in: Regenerated. * runtest.sh: Not yet removed. * HACKING: Update for new testsuite layout. 2006-08-12 Frank Ch. Eigler <fche@elastic.org> * all: Reorganized old pass-1..4 tests one dejagnu bucket. Moved over old pass-5 tests, except for disabled syscalls tests. * Makefile (installcheck): New target for running pass-1..5 tests against installed systemtap.
Diffstat (limited to 'testsuite/systemtap.printf/int1.stp')
-rw-r--r--testsuite/systemtap.printf/int1.stp42
1 files changed, 42 insertions, 0 deletions
diff --git a/testsuite/systemtap.printf/int1.stp b/testsuite/systemtap.printf/int1.stp
new file mode 100644
index 00000000..0acd4304
--- /dev/null
+++ b/testsuite/systemtap.printf/int1.stp
@@ -0,0 +1,42 @@
+probe begin
+{
+ i = 1
+ j = 10
+ k = 9000000000000
+ m = -1
+ n = -1024
+
+ # signed decimal
+ printf("%d,%d,%d,%d,%d\n",i,j,k,m,n)
+ printf("%2d,%2d,%2d,%2d,%2d\n",i,j,k,m,n)
+ printf("%16d,%16d,%16d,%16d,%16d\n",i,j,k,m,n)
+ printf("%016d,%016d,%016d,%016d,%016d\n",i,j,k,m,n)
+
+ printf("\n")
+
+ # unsigned decimal
+ printf("%u,%u,%u,%u,%u\n",i,j,k,m,n)
+ printf("%2u,%2u,%2u,%2u,%2u\n",i,j,k,m,n)
+ printf("%16u,%16u,%16u,%16u,%16u\n",i,j,k,m,n)
+ printf("%016u,%016u,%016u,%016u,%016u\n",i,j,k,m,n)
+
+ printf("\n")
+
+ # hex
+ printf("%x,%x,%x,%x,%x\n",i,j,k,m,n)
+ printf("%2x,%2x,%2x,%2x,%2x\n",i,j,k,m,n)
+ printf("%16x,%16x,%16x,%16x,%16x\n",i,j,k,m,n)
+ printf("%016x,%016x,%016x,%016x,%016x\n",i,j,k,m,n)
+ printf("%16X,%16X,%16X,%16X,%16X\n",i,j,k,m,n)
+ printf("%016X,%016X,%016X,%016X,%016X\n",i,j,k,m,n)
+
+ printf("\n")
+
+ # octal
+ printf("%o,%o,%o,%o,%o\n",i,j,k,m,n)
+ printf("%2o,%2o,%2o,%2o,%2o\n",i,j,k,m,n)
+ printf("%16o,%16o,%16o,%16o,%16o\n",i,j,k,m,n)
+ printf("%016o,%016o,%016o,%016o,%016o\n",i,j,k,m,n)
+
+ exit()
+}