diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2016-11-09 14:57:40 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-23 12:05:19 +0000 |
commit | 8d3640b90dca79f7a79b3a62de5cf5326577434e (patch) | |
tree | 1fbba5218153dc57d908a25335081674c713bbf2 /meta/lib/oeqa/files | |
parent | bbb7366db3a631eed786c86a1c627e00c927f0b4 (diff) | |
download | poky-8d3640b90dca79f7a79b3a62de5cf5326577434e.tar.gz |
oeqa: Move common files to oeqa/files instead of runtime only
Those files are used by runtime and sdk test cases, so move to
base directory of oeqa module.
[YOCTO #10599]
(From OE-Core rev: ec73e8a3d3149f3866b7bfc06f169c6e05e2d338)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/files')
-rw-r--r-- | meta/lib/oeqa/files/test.c | 26 | ||||
-rw-r--r-- | meta/lib/oeqa/files/test.cpp | 3 | ||||
-rw-r--r-- | meta/lib/oeqa/files/test.pl | 2 | ||||
-rw-r--r-- | meta/lib/oeqa/files/test.py | 6 |
4 files changed, 37 insertions, 0 deletions
diff --git a/meta/lib/oeqa/files/test.c b/meta/lib/oeqa/files/test.c new file mode 100644 index 0000000000..2d8389c92e --- /dev/null +++ b/meta/lib/oeqa/files/test.c | |||
@@ -0,0 +1,26 @@ | |||
1 | #include <stdio.h> | ||
2 | #include <math.h> | ||
3 | #include <stdlib.h> | ||
4 | |||
5 | double convert(long long l) | ||
6 | { | ||
7 | return (double)l; | ||
8 | } | ||
9 | |||
10 | int main(int argc, char * argv[]) { | ||
11 | |||
12 | long long l = 10; | ||
13 | double f; | ||
14 | double check = 10.0; | ||
15 | |||
16 | f = convert(l); | ||
17 | printf("convert: %lld => %f\n", l, f); | ||
18 | if ( f != check ) exit(1); | ||
19 | |||
20 | f = 1234.67; | ||
21 | check = 1234.0; | ||
22 | printf("floorf(%f) = %f\n", f, floorf(f)); | ||
23 | if ( floorf(f) != check) exit(1); | ||
24 | |||
25 | return 0; | ||
26 | } | ||
diff --git a/meta/lib/oeqa/files/test.cpp b/meta/lib/oeqa/files/test.cpp new file mode 100644 index 0000000000..9e1a76473d --- /dev/null +++ b/meta/lib/oeqa/files/test.cpp | |||
@@ -0,0 +1,3 @@ | |||
1 | #include <limits> | ||
2 | |||
3 | int main() {} \ No newline at end of file | ||
diff --git a/meta/lib/oeqa/files/test.pl b/meta/lib/oeqa/files/test.pl new file mode 100644 index 0000000000..689c8f1635 --- /dev/null +++ b/meta/lib/oeqa/files/test.pl | |||
@@ -0,0 +1,2 @@ | |||
1 | $a = 9.01e+21 - 9.01e+21 + 0.01; | ||
2 | print ("the value of a is ", $a, "\n"); | ||
diff --git a/meta/lib/oeqa/files/test.py b/meta/lib/oeqa/files/test.py new file mode 100644 index 0000000000..f389225d72 --- /dev/null +++ b/meta/lib/oeqa/files/test.py | |||
@@ -0,0 +1,6 @@ | |||
1 | import os | ||
2 | |||
3 | os.system('touch /tmp/testfile.python') | ||
4 | |||
5 | a = 9.01e+21 - 9.01e+21 + 0.01 | ||
6 | print("the value of a is %s" % a) | ||