diff options
author | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2013-03-13 14:40:13 +0100 |
---|---|---|
committer | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2013-03-13 14:40:13 +0100 |
commit | a9d70669d6a9d2e80a01182c732336be0cd5513b (patch) | |
tree | d8bb8744c9e924493c9e8021358281f73b5bda84 /meta-linaro/recipes-linaro/linaro-lava-tests | |
parent | 7517a3e34dee3586122685cb49a8d1984be1d16e (diff) | |
download | meta-linaro-a9d70669d6a9d2e80a01182c732336be0cd5513b.tar.gz |
move everything to meta-linaro directory
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Diffstat (limited to 'meta-linaro/recipes-linaro/linaro-lava-tests')
6 files changed, 71 insertions, 0 deletions
diff --git a/meta-linaro/recipes-linaro/linaro-lava-tests/files/LICENSE b/meta-linaro/recipes-linaro/linaro-lava-tests/files/LICENSE new file mode 100644 index 00000000..296f7d64 --- /dev/null +++ b/meta-linaro/recipes-linaro/linaro-lava-tests/files/LICENSE @@ -0,0 +1,19 @@ +Copyright (C) 2012 Linaro Ltd. + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/meta-linaro/recipes-linaro/linaro-lava-tests/files/hello.c b/meta-linaro/recipes-linaro/linaro-lava-tests/files/hello.c new file mode 100644 index 00000000..247bbe77 --- /dev/null +++ b/meta-linaro/recipes-linaro/linaro-lava-tests/files/hello.c @@ -0,0 +1,8 @@ +#include <stdio.h> + +int main(void) +{ + printf ("hello world\n"); + + return 0; +} diff --git a/meta-linaro/recipes-linaro/linaro-lava-tests/files/hello.cc b/meta-linaro/recipes-linaro/linaro-lava-tests/files/hello.cc new file mode 100644 index 00000000..c0b335d0 --- /dev/null +++ b/meta-linaro/recipes-linaro/linaro-lava-tests/files/hello.cc @@ -0,0 +1,8 @@ +#include <iostream> + +int main(void) +{ + std::cout << "hello world" << std::endl; + + return 0; +} diff --git a/meta-linaro/recipes-linaro/linaro-lava-tests/files/info.php b/meta-linaro/recipes-linaro/linaro-lava-tests/files/info.php new file mode 100644 index 00000000..554a22c8 --- /dev/null +++ b/meta-linaro/recipes-linaro/linaro-lava-tests/files/info.php @@ -0,0 +1,5 @@ +<?php + +phpinfo(); + +?> diff --git a/meta-linaro/recipes-linaro/linaro-lava-tests/files/mysql.php b/meta-linaro/recipes-linaro/linaro-lava-tests/files/mysql.php new file mode 100644 index 00000000..258b1848 --- /dev/null +++ b/meta-linaro/recipes-linaro/linaro-lava-tests/files/mysql.php @@ -0,0 +1,9 @@ +<?php + +$link = mysql_connect('localhost', 'root', ''); +if (!$link) { + die('MySQL error: ' . mysql_error()); +} +echo 'Connected with MySQL'; +mysql_close($link); +?> diff --git a/meta-linaro/recipes-linaro/linaro-lava-tests/linaro-lava-tests.bb b/meta-linaro/recipes-linaro/linaro-lava-tests/linaro-lava-tests.bb new file mode 100644 index 00000000..389d2ff4 --- /dev/null +++ b/meta-linaro/recipes-linaro/linaro-lava-tests/linaro-lava-tests.bb @@ -0,0 +1,22 @@ +DESCRIPTION = "Scripts and files for LAVA tests" +LICENSE = "Expat" +LIC_FILES_CHKSUM = "file://LICENSE;md5=3725c2bb543d06ff759f9db9b5d986ac" +PR = "r2" + +SRC_URI = "\ + file://hello.c \ + file://hello.cc \ + file://info.php \ + file://mysql.php \ + file://LICENSE \ + " + +S = "${WORKDIR}" + +do_install() { + install -d ${D}/home/root ${D}/usr/share/apache2/htdocs/ + install -m 0644 hello.* ${D}/home/root/ + install -m 0644 *.php ${D}/usr/share/apache2/htdocs/ +} + +FILES_${PN} = "/" |