summaryrefslogtreecommitdiffstats
path: root/scripts
AgeCommit message (Collapse)Author
2011-01-06qemuimagetest: Remove connman test for lsb image and fix one warning in ↵Jiajun Xu
Test_Create_Qemu There is no connman in LSB image. So we need to remove connman test from it. And when we check if ip address fetched by Test_Fetch_Target_IP is valid, we should use "==" operator for string comparison. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
2011-01-05scripts/bitbake: Skip building pseudo if necessary.Lianhao Lu
Fixed [BUGID# 625]. Skip building pseudo if necessary by parsing the options to bitbake. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2011-01-02qemuimagetest: Add basic function check for connmanJiajun Xu
Add one case for connman sanity test. We check if connmand is running in background after booting and if there is always one connmand process running even connmand is executed by several times. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
2011-01-02qemuimagetest: Add basic function check for gcc/g++/make command in targetJiajun Xu
Add one case for compile tools sanity test in target, including gcc/g++/make. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
2011-01-02qemuimagetest: Add basic function check for rpm commandJiajun Xu
Add one case for rpm query sanity test. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
2011-01-02qemuimagetest: Add basic function check for zypper commandJiajun Xu
Add two cases for zypper sanity test. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
2010-12-24qemuimage-testlib: Improve quoting causing problems under certain circumstancesRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-23qemuimage-testlib: Fix the check for running qemu processesRichard Purdie
Previously, any active command containing the word "qemu" including in the command path would trigger a "success" result for detecting the qemu process. This change fixes the check to search for commands starting with "qemu" and ignores pathnames. It also shortens the timeout for the qemu process to appear to 10 seconds. If it doesn't appear in that time there is always a problem. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-23qemuimage-testlib: Ensure TOPDIR/BUILDDIR are setRichard Purdie
The recent environment changes mean TOPDIR/BUILDDIR need to be exported specifcially to the enviromnent so the qemu scripts can find the correct build directory. Without this, qemu can fail to run. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-23qemuimage-testlib: Add check for existence of image and correctness of ip ↵Jiajun Xu
address Fixes [BUGID #612, #611] Add check for existence of image to be tested in qemuimage-testlib. This ensures that sanity test returns failure immediatly when there is no image found. And also add check for the correctness of ip address. If the ip address returned by function Test_Fetch_Target_IP is 0, it means qemu starts up failed and no valid ip address found. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
2010-12-23qemu: Add some checks before enabling KVMZhai Edwin
Check the missing modules and permission with informative output. [BUGID #599] got fixed. Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
2010-12-23send-pull-request: allow users to select git-send-email or sendmailDarren Hart
Some users find it easier to use their git sendmail setup over a local MTA to deliver mail with the send-pull-request script. If you would like to do this, please read the git-send-email man page and set the relevant entries in your git config. In particular, be sure to set sendemail.from to avoid being asked each time. Reported-by: Khem Raj <raj.khem@gmail.com> CC: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
2010-12-21send-pull-request: Use current date in mail headersDarren Hart
Some users experience problems viewing the pull requests as a sequential mail series due to the script using the git commit date for the patches and today's date for the cover letter. Address this by renaming the email Date: header to Old-Date: and adding a new Date: header with a current timestamp. Signed-off-by: Darren Hart <dvhart@linux.intel.com> Reported-by: Gary Thomas <gary@mlbassoc.com> Cc: Josh Lock <josh@linux.intel.com>
2010-12-20poky-init-build-env: Enable all POSIX shellsMark Hatle
Update the script so that it will work in more then just bash. If bash is not used, it will assume the PWD is the Poky location. (This is because BASH_SOURCE is a bash-ism, and equivalent functionality is not available in other shells). This has been verified with dash (see comment in the code), ksh, zsh and of course bash. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2010-12-20poky-init-build-env: Breakup the environment scriptMark Hatle
Break up the scripts/poky-env-internal into two parts: 1) Chunk that is sourced and sets up the environment 2) Chunk that is executed and configures the build directory OEROOT configuration was moved into the initial poky-init-build-env script. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2010-12-17bitbake.conf/poky-env-internal: Adjust PSEUDO variables to match pseudo ↵Richard Purdie
enabled/disabled modes Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-17scripts/bitbake: Add wrapper script which ensures pseudo is built and availableRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-17poky-env-internal: Search scripts before the bitbake directory so we can ↵Richard Purdie
override bitbake's main script Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-16Add extra parameters options for poky-qemu scriptsLiping Ke
In order to support qemu user's flexibility requirement, we add extra parameter options, user can add extra params such as "<-m 256>" in poky-qemu script command. Signed-off-by: Liping ke <liping.ke@intel.com>
2010-12-15scripts/poky-qemu: Improve tmp layout assumptionRichard Purdie
If someone has changed TMPDIR in local.conf to a non-standard location, the poky-qemu script currently doesn't handle this and assumes if BUILDDIR is set, $BUILDDIR/tmp will exist. Its simple to check if this exists and if not, to ask bitbake where the directory is so this patch changes the code to do that. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-10creat-lsb-image: download lsb test suite and creat a image with lsb test suiteXiaofeng Yan
If we make a test with lsb test suite, then we must creat a large image with lsb test suite. three function in this script: 1 download lsb test suite 2 creat a block file with 3G 3 install file system of poky-image-lsb, modules of driver and lsb test suite Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
2010-12-09qemu: Enable KVM support on x86/x86-64 hostZhai Edwin
User need build kvm module for native kernel and install them by "modprobe kvm_intel". Then add "kvm" option to poky-qemu to enable it. Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
2010-12-09Make poky-qemu and related scripts work with arbitrary SDK locationsScott Garman
* No longer assume SDK toolchains are installed in /opt/poky * [BUGFIX #568] where specifying paths to both the kernel and fs image caused an error due to POKY_NATIVE_SYSROOT never being set, triggering failure of poky-qemu-ifup/ifdown * Cosmetic improvements to usage() functions by using basename Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-12-09poky-env-internal: Allow the environment variable POKYCONF to provide the ↵Gary Thomas
basis for the working "conf" directory. By using the POKYCONF variable, a meta layer can provide the basic setup for files to be used during a build. This is similar to the default values stored in the main meta tree, .../meta/conf/local.conf.sample, etc Signed-off-by: Gary Thomas <gary@mlbassoc.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-07Remove unused tunctl-src/Makefile from scripts/Scott Garman
Removing leftover cruft Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-12-07Add sanity test scenarios for -lsb imagesScott Garman
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-11-28scripts: Remove obsolete stage-manager scriptsRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-11-28scripts/poky-env-internal: Further cleanupsRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-11-28scripts/poky-env-internal: Remove unset variablesRichard Purdie
These variables are not on any bitbake environment whitelist so will never make it into the environment. This is legacy code which is not required any more so remove it. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-11-28scripts/poky-env-internal/image-swab.bbclass: Remove OEROOT referencesRichard Purdie
OEROOT isn't used outside the init script so stop exporting it into the environment where it can "corrupt" sstate packages. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-11-14poky-qemu: Fix issues when running Yocto 0.9 release imagesScott Garman
This fixes two bugs with poky-qemu when it is run from a standalone meta-toolchain setup. [BUGFIX #535] and [BUGFIX #536] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-11-14imagetest-qemu: Add sanity test cases for scp/shutdown in targetJiajun Xu
scp test is to check if file copying via network work or not in target. shutdown test is to check if target can be poweroff with qemu process off. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
2010-11-10git-pull: add send-pull-request scriptDarren Hart
send-pull-request facilitates sending pull requests generated by create-pull-request. The primary role of this script is to harvest email addresses from the patches and send them out. A working installation of sendmail (exim, postfix, msmtp, etc.) is required to use this script. You can explicitly specify To addresses with the -t option. As this can be tedious, the -a option will scan all the patches for To, CC, and *-by lines and the collected addresses to the To and CC headers for each patch. This script uses an identical recipients list for every patch, including the cover letter. This is by design. Existing tools will auto-generate the CC header for individual patches, but since they don't apply it to the other patches, the recipients can lack the necessary context to provide a meaningful review. This is especially true of the cover letter. The pull directory generated by the create-pull-request script is specified using the -p option. Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Nitin A Kamble <nitin.a.kamble@intel.com> CC: Richard Purdie <rpurdie@linux.intel.com> CC: Saul Wold <saul.wold@intel.com> CC: Bruce Ashfield <bruce.ashfield@windriver.com>
2010-11-10git-pull: add the new create-pull-request scriptDarren Hart
The previous create-pull-request only generated a cover letter. When used to send to the list, it did not include the patches, which made it difficult to perform peer review. A pull request without patches is typically only sent by a maintainer. As we are not all maintainers, we need a means to easily submit patches for review. As we are accustomed to making pull requests, this script retains a git-pull-style cover letter, while sending the relevant patches as responses to the pull. This will provide the necessary context for peer review, and still allow people to collapse threads and see no more mail than they were previously. This version retains the relative_to, commit_id, and contrib_branch arguments from the original, along with their default values. It adds several more, resulting in a highly flexible tool. The script creates a pull directory (pull-$$ by default, configurable via the -o option) and populates it with a git-format-patch generated patch series and cover letter. The cover letter is modified to include the git and http pull URLs and branch name, as well as a basic signature from the author pulled from git's user.name and user.email config. git-format-patch provides the shortlog and diffstat of the series. Breaking a bit from the original, this script maintains the [PATCH] subject prefix in the cover letter (as opposed to [GIT PULL]. This is better suited to the majority of developers (who are not maintainers). This prefix is configurable with the -p option, allowing you to create an [RFC PATCH] prefix, for example. By default, the generated cover letter with contain "*** SUBJECT HERE ***" and "*** BLURB HERE ***" tokens which you should replace with something appropriate prior to sending the messages. When developing multiple versions of a patch series, it can save time to maintain a message.txt file, rather than having to retype the message body of the cover letter every time. The -m option allows you to specify a message file and replace the "*** BLURB HERE ***" token of the cover letter with the contents of the message file. Finally, the -s option will replace the "*** SUBJECT HERE ***" token in the cover letter with the specified subject. The generated patches are suitable for sending via sendmail. Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Nitin A Kamble <nitin.a.kamble@intel.com> CC: Richard Purdie <rpurdie@linux.intel.com> CC: Saul Wold <saul.wold@intel.com> CC: Bruce Ashfield <bruce.ashfield@windriver.com>
2010-11-10git pull: remove the existing create_pull_request scriptDarren Hart
The patches to follow completely rewrite the existing create-pull-request. Rather than have an initial diff of the two files (which are not at all similar) remove the original, and then create the new one. Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Nitin A Kamble <nitin.a.kamble@intel.com> CC: Richard Purdie <rpurdie@linux.intel.com> CC: Saul Wold <saul.wold@intel.com> CC: Bruce Ashfield <bruce.ashfield@windriver.com>
2010-11-10qemumips: re-enable wacom and standard USB UI optionsBruce Ashfield
Fixes [BUGID #394] Now that the qemu/mti mips kernel branches have been fixed for wacom USB interaction, we can re-nable the standard set of qemu UI options for qemumips. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2010-11-10imagetest-qemu: Add test case for dmesg check in targetJiajun Xu
Add a test case for error log check with command dmesg in target. The case introduces a new folder in target, "/opt/test", which holds test scripts running in target. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
2010-10-14poky-qemu-internal: make the -no-reboot qemu option mandatoryScott Garman
This fixes [BUGID #100] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-14poky-qemu: miscellaneous bugfixesScott Garman
In scenarios where the POKY_NATIVE_SYSROOT env variable hasn't been set up, bug #427 can still be triggered. This fixes it by running setup_tmpdir(). This fixes [BUGID #427]. Also, the qemu tap dev lock directory needs to be chmod 777 so that multiple users can create and delete lock files. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-14poky-qemu: add nographic option for disabling video consoleScott Garman
This fixes [BUGID #408] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-12poky-qemu-internal: enforce a 128M memory limit for qemuarmScott Garman
This fixes [BUGID #433] Also set a sane default for the ifconfig command, which simplifies our autobuilder sanity test setup. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-11poky-qemu: fix for handling full path to rootfsScott Garman
This fixes [BUGID #427] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-08poky-qemu-internal: implement file locking in bashScott Garman
There does not appear to be a universal lockfile utility that meets our needs. For example: * 'lockfile' is part of the procmail pacakge in Ubuntu, a requirement we don't want to impose on our users * lockfile-[create|remove] from the Ubuntu lockfile-progs package does not appear to be available in Fedora/openSUSE So, the most portable way to do this is just to implement it in bash. The likelihood of race conditions is minimal for what we need this for. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-08poky-qemu: fix handling of some rootfs typesScott Garman
This allows the user to specify a rootfs type (e.g, poky-image-sato) without typing out the full filename and path (assuming we can infer a valid MACHINE and FSTYPE). This fixes [BUGID #415] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-07Update meta-ide-support dependenciesScott Garman
Using poky-qemu with our new tap networking and/or unfs support required too many additional build steps. This updates the meta-ide-support dependencies so all features are built and available to use. Specifically, this adds psuedo-native, qemu-helper-native, and unfs-server-native to the dependency chain for meta-ide-support. This fixes [BUGID #392] Also add poky-gen-tapdevs and remove runqemu-nfs from the qemu-helper-native recipe, and update some qemu control script error messages to suggest building meta-ide-support. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-07Merge runqemu features into poky-qemuScott Garman
This merges the functionality of the runqemu script into poky-qemu. It also removes the requirement to order command line args to poky-qemu in any particular order. This fixes a slew of runqemu-related bugs by making the runqemu script obsolete (and fixing the issues in the new poky-qemu), including [BUGID #294] [BUGID #295] [BUGID #371] and [BUGID #324]. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-07Allow running of multiple QEMU nfs instancesScott Garman
These changes allow multiple instances of the userspace NFS server to run, when brought up by consecutive instances of the poky-qemu control script. This fixes [BUGID #393] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-07poky-gen-tapdevs: script to create a 'bank' of tap interfacesScott Garman
This script can be used to create and configure a 'bank' of tap interfaces that can be used by the poky-qemu script. It is useful in locked-down enterprise environments where developers do not have sudo access, but need to be able to run QEMU with networking. A sysadmin would then use this script to bring up a number of tap interfaces for the user to make use of. This fixes [BUGID #391] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-07poky-qemu-internal: use lockfile-progs for network interface lockingScott Garman
The 'lockfile' utility originally used comes from the procmail package, which users shouldn't have to install. This uses the more general lockfile-progs utilities to acheive the same end. This fixes [BUGID #389] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-07poky-qemu: integrate userspace nfsroot supportScott Garman
This is the first phase of some refactoring the poky-qemu control scripts are getting. This integrates userspace nfsroot support into poky-qemu, making runqemu-nfs obsolete. This fixes [BUGID #295] Signed-off-by: Scott Garman <scott.a.garman@intel.com>