+++ /dev/null
-#
-# 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
+++ /dev/null
-#!/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
+++ /dev/null
-source ../tests/init.lib
-test -d work/projects/e2testsuite/tp
+++ /dev/null
-e2-fetch-project --tooldebug projects:e2testsuite/tp work/tp
+++ /dev/null
-source ../tests/init.lib
-source ../tests/fetch.lib
-test -d work/tp
+++ /dev/null
-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
+++ /dev/null
-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
+++ /dev/null
-source ../tests/init.lib
-source ../tests/fetch.lib
-source ../tests/configure.lib
-source ../tests/new_files_source.lib
+++ /dev/null
-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
+++ /dev/null
-source ../tests/init.lib
-source ../tests/fetch.lib
-source ../tests/configure.lib
-source ../tests/new_files_source.lib
-source ../tests/use_files_source.lib
+++ /dev/null
-pushd work/tp
-e2-use-source --files --vall upstream:f/foo/1.0/foo.tar.gz foo
-test -f src/foo/config
-popd