aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa/general/framework.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/mppa/general/framework.h')
-rw-r--r--test/mppa/general/framework.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/mppa/general/framework.h b/test/mppa/general/framework.h
new file mode 100644
index 00000000..8321a9a9
--- /dev/null
+++ b/test/mppa/general/framework.h
@@ -0,0 +1,24 @@
+#ifndef __FRAMEWORK_H__
+#define __FRAMEWORK_H__
+
+#include "../lib/prng.c"
+
+#define BEGIN_TEST(type)\
+ int main(void){\
+ type a, b, c, i, S;\
+ srand(0);\
+ for (i = 0 ; i < 100 ; i++){\
+ a = randlong();\
+ b = randlong();
+ /* END BEGIN_TEST */
+
+/* In between BEGIN_TEST and END_TEST : definition of c */
+
+#define END_TEST()\
+ S += c;\
+ }\
+ return S;\
+ }
+ /* END END_TEST */
+
+#endif