summaryrefslogtreecommitdiffstats
path: root/runtime/tests/math/math.test
diff options
context:
space:
mode:
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