diff options
| author | yaberauneya <yaberauneya> | 2010-01-14 12:08:52 +0000 |
|---|---|---|
| committer | yaberauneya <yaberauneya> | 2010-01-14 12:08:52 +0000 |
| commit | 8e89cb9b3bab5759bbd7fc18ac4ceaaf115ffe3b (patch) | |
| tree | e5394f29f304ba8239a5b34d8f88300b560865b0 /testscripts | |
| parent | 35997eda179a05c9c0cb3cd73e47bceee43c619e (diff) | |
| download | platform_external_ltp-8e89cb9b3bab5759bbd7fc18ac4ceaaf115ffe3b.tar.gz platform_external_ltp-8e89cb9b3bab5759bbd7fc18ac4ceaaf115ffe3b.tar.bz2 platform_external_ltp-8e89cb9b3bab5759bbd7fc18ac4ceaaf115ffe3b.zip | |
Check in skeleton scripts for testing out LTP, end-to-end, from scratch -- that way less trivial issues will get into the tree.
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
Diffstat (limited to 'testscripts')
| -rwxr-xr-x | testscripts/build/README | 2 | ||||
| -rwxr-xr-x | testscripts/build/test_install_in_build_tree.sh | 39 | ||||
| -rwxr-xr-x | testscripts/build/test_install_out_of_build_tree.sh | 39 | ||||
| -rwxr-xr-x | testscripts/build/test_out_of_build_tree.sh | 39 |
4 files changed, 119 insertions, 0 deletions
diff --git a/testscripts/build/README b/testscripts/build/README new file mode 100755 index 000000000..581ee1393 --- /dev/null +++ b/testscripts/build/README @@ -0,0 +1,2 @@ +This scripts contains any and all scripts which will help in testing the make +infrastructure. diff --git a/testscripts/build/test_install_in_build_tree.sh b/testscripts/build/test_install_in_build_tree.sh new file mode 100755 index 000000000..706a84a7b --- /dev/null +++ b/testscripts/build/test_install_in_build_tree.sh @@ -0,0 +1,39 @@ +#!/bin/sh +# +# install in build-tree script. +# +# Copyright (C) 2010, Cisco Systems Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Garrett Cooper, January 2010 + +export PATH="${0%/*}:$PATH" + +set -e +. build_test_function.sh + +# 0. Setup the environment. +setup_env +# 1. Pull the SCM. +pull_scm "$srcdir" +# 2. Configure. +configure "$srcdir" "$srcdir" "$srcdir" "" +# 3. -->> Compile out-of-build-tree. <<-- +build "$srcdir" "$srcdir" +# 4. Install. +install "$srcdir" "$srcdir" "" +# 5. Test. +test_ltp "$install_dir" diff --git a/testscripts/build/test_install_out_of_build_tree.sh b/testscripts/build/test_install_out_of_build_tree.sh new file mode 100755 index 000000000..ffa2a5beb --- /dev/null +++ b/testscripts/build/test_install_out_of_build_tree.sh @@ -0,0 +1,39 @@ +#!/bin/sh +# +# install outside build-tree script. +# +# Copyright (C) 2010, Cisco Systems Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Garrett Cooper, January 2010 + +export PATH="${0%/*}:$PATH" + +set -e +. build_test_function.sh + +# 0. Setup the environment. +setup_env +# 1. Pull the SCM. +pull_scm "$srcdir" +# 2. Configure. +configure "$srcdir" "$srcdir" "$prefix" "$destdir" +# 3. -->> Compile out-of-build-tree. <<-- +build "$srcdir" "$srcdir" +# 4. Install. +install "$srcdir" "$srcdir" "$destdir" +# 5. Test. +test_ltp "$install_dir" diff --git a/testscripts/build/test_out_of_build_tree.sh b/testscripts/build/test_out_of_build_tree.sh new file mode 100755 index 000000000..d7fb070fa --- /dev/null +++ b/testscripts/build/test_out_of_build_tree.sh @@ -0,0 +1,39 @@ +#!/bin/sh +# +# out-of-build-tree script. +# +# Copyright (C) 2010, Cisco Systems Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Garrett Cooper, January 2010 + +export PATH="${0%/*}:$PATH" + +set -e +. build_test_function.sh + +# 0. Setup the environment. +setup_env +# 1. Pull the SCM. +pull_scm "$srcdir" +# 2. Configure. +configure "$srcdir" "$builddir" "$prefix" "$destdir" +# 3. -->> Compile out-of-build-tree. <<-- +build "$srcdir" "$builddir" +# 4. Install. +install "$srcdir" "$builddir" "$destdir" +# 5. Test. +test_ltp "$install_dir" |
