]> git.e2factory.org Git - e2factory.git/commitdiff
Remove test directory, incomplete and unused
authorTobias Ulmer <tu@emlix.com>
Wed, 1 Aug 2012 10:20:05 +0000 (12:20 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 1 Aug 2012 10:20:05 +0000 (12:20 +0200)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 files changed:
test/Makefile [deleted file]
test/runtests.sh [deleted file]
test/tests/configure.lib [deleted file]
test/tests/create-project.test [deleted file]
test/tests/fetch.lib [deleted file]
test/tests/fetch_project.test [deleted file]
test/tests/init.lib [deleted file]
test/tests/ls_project.test [deleted file]
test/tests/new-source.test [deleted file]
test/tests/new_files_source.lib [deleted file]
test/tests/use-source.test [deleted file]
test/tests/use_files_source.lib [deleted file]

diff --git a/test/Makefile b/test/Makefile
deleted file mode 100644 (file)
index 5d9258c..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-#
-#  e2factory, the emlix embedded build system
-#
-#  Copyright (C) 2007-2009 Gordon Hecker <gh@emlix.com>, emlix GmbH
-#  Copyright (C) 2007-2009 Oskar Schirmer <os@emlix.com>, emlix GmbH
-#  Copyright (C) 2007-2008 Felix Winkelmann, emlix GmbH
-#
-#  For more information have a look at http://www.e2factory.org
-#
-#  e2factory is a registered trademark by emlix GmbH.
-#
-#  This file is part of e2factory, the emlix embedded build system.
-#
-#  e2factory 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 3 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, see <http://www.gnu.org/licenses/>.
-#
-
-default: help
-
-help:
-       @echo Targets: check
-
-e2.conf: e2.conf.in
-       sed s,TESTDIR,$(shell pwd)/tmp/work, e2.conf.in > e2.conf
-
-check: e2.conf
-       @echo running tests...
-       @env -i HOME=$(HOME) USER=$(USER) TESTS=$(TESTS) bash runtests.sh
-
-clean:
-       sudo rm -fr e2
-       rm -fr tmp
-       rm -fr log
-       rm -f e2.conf
diff --git a/test/runtests.sh b/test/runtests.sh
deleted file mode 100644 (file)
index 3184ad2..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-export PATH=$PWD/e2/bin:/bin:/usr/bin:/sbin:/usr/sbin
-declare -i pass
-declare -i fail
-pass=0
-fail=0
-if [ -z "$TESTS" ] ; then
-       TESTS=$(cd tests; ls *.test)
-fi
-rm -fr log
-mkdir log
-LOG=$PWD/log/test.log
-export E2_CONFIG=$PWD/e2.conf
-export E2_LOCAL_BRANCH="$(git branch | grep '^*' | sed s/'^* '/''/)"
-echo "Testing: $(date)" >$LOG
-for i in $TESTS ; do
-       rm -fr ./tmp
-       mkdir ./tmp
-       cd ./tmp
-       bash -e -x ../tests/$i >../log/$i.log 2>&1
-       r=$?
-       if [ "$r" == "0" ] ; then
-               pass=$pass+1
-               printf "%-40s %s\n" "$i" "OK" | tee -a $LOG
-       else
-               fail=$fail+1
-               printf "%-40s %s\n" "$i" "FAIL" | tee -a $LOG
-       fi
-       cd ..
-done
-printf "Pass: %d\n" $pass | tee -a $LOG
-printf "Fail: %d\n" $fail | tee -a $LOG
diff --git a/test/tests/configure.lib b/test/tests/configure.lib
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/test/tests/create-project.test b/test/tests/create-project.test
deleted file mode 100644 (file)
index 6ec5666..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-source ../tests/init.lib
-test -d work/projects/e2testsuite/tp
diff --git a/test/tests/fetch.lib b/test/tests/fetch.lib
deleted file mode 100644 (file)
index d2b7f13..0000000
+++ /dev/null
@@ -1 +0,0 @@
-e2-fetch-project --tooldebug projects:e2testsuite/tp work/tp
diff --git a/test/tests/fetch_project.test b/test/tests/fetch_project.test
deleted file mode 100644 (file)
index 0af446f..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-source ../tests/init.lib
-source ../tests/fetch.lib
-test -d work/tp
diff --git a/test/tests/init.lib b/test/tests/init.lib
deleted file mode 100644 (file)
index 2110613..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-mkdir work
-cd work
-mkdir projects
-mkdir upstream
-mkdir results
-cd ..
-mkdir -p work/projects/emlix/null/git
-git clone --bare ../../ work/projects/emlix/e2/git/e2.git
-e2-create-project --tooldebug projects:e2testsuite/tp
diff --git a/test/tests/ls_project.test b/test/tests/ls_project.test
deleted file mode 100644 (file)
index 67a4699..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-source ../tests/init.lib
-source ../tests/fetch.lib
-source ../tests/configure.lib
-source ../tests/new_files_source.lib
-source ../tests/use_files_source.lib
-cd work/tp
-e2-ls-project
diff --git a/test/tests/new-source.test b/test/tests/new-source.test
deleted file mode 100644 (file)
index 1470f7d..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-source ../tests/init.lib
-source ../tests/fetch.lib
-source ../tests/configure.lib
-source ../tests/new_files_source.lib
diff --git a/test/tests/new_files_source.lib b/test/tests/new_files_source.lib
deleted file mode 100644 (file)
index 443532a..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-pushd work/tp
-mkdir foo
-echo foo > foo/foo.txt
-tar -czf foo.tar.gz foo
-sha1sum foo.tar.gz > CHECKSUM
-e2-new-source --files --vall \
-       upstream:f/foo/1.0 file://$PWD/foo.tar.gz file://$PWD/CHECKSUM
-popd
diff --git a/test/tests/use-source.test b/test/tests/use-source.test
deleted file mode 100644 (file)
index 65a4a99..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-source ../tests/init.lib
-source ../tests/fetch.lib
-source ../tests/configure.lib
-source ../tests/new_files_source.lib
-source ../tests/use_files_source.lib
diff --git a/test/tests/use_files_source.lib b/test/tests/use_files_source.lib
deleted file mode 100644 (file)
index 9f96666..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-pushd work/tp
-e2-use-source --files --vall upstream:f/foo/1.0/foo.tar.gz foo
-test -f src/foo/config
-popd