From 82cae46745878095b995f32893318714845c0006 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Wed, 1 Aug 2012 12:20:05 +0200 Subject: [PATCH] Remove test directory, incomplete and unused Signed-off-by: Tobias Ulmer --- test/Makefile | 44 --------------------------------- test/runtests.sh | 32 ------------------------ test/tests/configure.lib | 0 test/tests/create-project.test | 2 -- test/tests/fetch.lib | 1 - test/tests/fetch_project.test | 3 --- test/tests/init.lib | 9 ------- test/tests/ls_project.test | 7 ------ test/tests/new-source.test | 4 --- test/tests/new_files_source.lib | 8 ------ test/tests/use-source.test | 5 ---- test/tests/use_files_source.lib | 4 --- 12 files changed, 119 deletions(-) delete mode 100644 test/Makefile delete mode 100644 test/runtests.sh delete mode 100644 test/tests/configure.lib delete mode 100644 test/tests/create-project.test delete mode 100644 test/tests/fetch.lib delete mode 100644 test/tests/fetch_project.test delete mode 100644 test/tests/init.lib delete mode 100644 test/tests/ls_project.test delete mode 100644 test/tests/new-source.test delete mode 100644 test/tests/new_files_source.lib delete mode 100644 test/tests/use-source.test delete mode 100644 test/tests/use_files_source.lib diff --git a/test/Makefile b/test/Makefile deleted file mode 100644 index 5d9258c..0000000 --- a/test/Makefile +++ /dev/null @@ -1,44 +0,0 @@ -# -# e2factory, the emlix embedded build system -# -# Copyright (C) 2007-2009 Gordon Hecker , emlix GmbH -# Copyright (C) 2007-2009 Oskar Schirmer , 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 . -# - -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 index 3184ad2..0000000 --- a/test/runtests.sh +++ /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 index e69de29..0000000 diff --git a/test/tests/create-project.test b/test/tests/create-project.test deleted file mode 100644 index 6ec5666..0000000 --- a/test/tests/create-project.test +++ /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 index d2b7f13..0000000 --- a/test/tests/fetch.lib +++ /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 index 0af446f..0000000 --- a/test/tests/fetch_project.test +++ /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 index 2110613..0000000 --- a/test/tests/init.lib +++ /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 index 67a4699..0000000 --- a/test/tests/ls_project.test +++ /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 index 1470f7d..0000000 --- a/test/tests/new-source.test +++ /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 index 443532a..0000000 --- a/test/tests/new_files_source.lib +++ /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 index 65a4a99..0000000 --- a/test/tests/use-source.test +++ /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 index 9f96666..0000000 --- a/test/tests/use_files_source.lib +++ /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 -- 2.39.5