summaryrefslogtreecommitdiffstats
path: root/runtime/tests/math/math.test
diff options
context:
space:
mode:
authorhunt <hunt>2005-09-09 09:08:26 +0000
committerhunt <hunt>2005-09-09 09:08:26 +0000
commit60a1b0ceedecf422af6b043186092986685efb59 (patch)
tree6cacf4a3815465e55b60755297dbcb477cd44c3b /runtime/tests/math/math.test
parent41f7eadf3e5e6b42ecd54c53adab112253122e34 (diff)
downloadsystemtap-steved-60a1b0ceedecf422af6b043186092986685efb59.tar.gz
systemtap-steved-60a1b0ceedecf422af6b043186092986685efb59.tar.xz
systemtap-steved-60a1b0ceedecf422af6b043186092986685efb59.zip
2005-09-09 Martin Hunt <hunt@redhat.com>
* README: Update. * math/div64.c: New file. 64-bit division tests.
Diffstat (limited to 'runtime/tests/math/math.test')
-rw-r--r--runtime/tests/math/math.test19
1 files changed, 19 insertions, 0 deletions
diff --git a/runtime/tests/math/math.test b/runtime/tests/math/math.test
new file mode 100644
index 00000000..e7c58ba0
--- /dev/null
+++ b/runtime/tests/math/math.test
@@ -0,0 +1,19 @@
+package require tcltest
+namespace import -force tcltest::*
+
+cd $tcltest::testsDirectory
+
+set CFLAGS "-Os"
+set KPATH "/lib/modules/[exec uname -r]/build/include"
+set MPATH "/lib/modules/[exec uname -r]/build/include/asm/mach-default"
+set PATH "../../user"
+
+test printf_A {Basic printf test} -setup {
+ exec gcc $CFLAGS -I $KPATH -I $PATH -I $MPATH -o test div64.c
+} -body {
+ exec ./test
+} -result {OK}
+
+exec rm test
+
+cleanupTests