tests/input-types: split out scminputs into individual tests
This makes the test faster (by removing it and replacing it with a `TestScmInput` module that exports the `testScmInput` subroutine). Now, all the input tests can be run in parallel. Some of the `tests/jobs/*-update.sh` scripts were "broken" (e.g. tests failed for various reasons on my machine), so I fixed those up as well. Co-authored-by: gustavderdrache <gustavderdrache@gmail.com>
This commit is contained in:
@ -9,8 +9,14 @@ else
|
||||
state=0;
|
||||
fi
|
||||
|
||||
export BZR_HOME; # Set by the Makefile
|
||||
case $state in
|
||||
(0) echo "::Create repo. -- continue -- updated::"
|
||||
bzr init bzr-repo
|
||||
bzr whoami "build <build@invalid.org>" -d bzr-repo
|
||||
touch bzr-repo/bzr-file
|
||||
bzr add bzr-repo/bzr-file
|
||||
bzr commit -m "add bzr-file" bzr-repo/bzr-file
|
||||
ln -s bzr-repo bzr-checkout-repo
|
||||
;;
|
||||
(*) echo "::End. -- stop -- nothing::" ;;
|
||||
|
@ -3,6 +3,7 @@ set -e
|
||||
|
||||
repo=git-repo
|
||||
export HOME=$(pwd)
|
||||
export XDG_CONFIG_HOME=$(pwd)/.config
|
||||
STATE_FILE=$(pwd)/.git-rev-state
|
||||
if test -e $STATE_FILE; then
|
||||
state=1
|
||||
|
@ -4,6 +4,7 @@ set -e
|
||||
|
||||
repo=git-repo
|
||||
export HOME=$(pwd)
|
||||
export XDG_CONFIG_HOME=$(pwd)/.config
|
||||
STATE_FILE=$(pwd)/.git-state
|
||||
if test -e $STATE_FILE; then
|
||||
state=$(cat $STATE_FILE)
|
||||
|
@ -11,6 +11,11 @@ fi
|
||||
|
||||
case $state in
|
||||
(0) echo "::Create repo. -- continue -- updated::"
|
||||
svnadmin create svn-repo
|
||||
svn co file://$PWD/$repo svn-checkout
|
||||
touch svn-checkout/svn-file
|
||||
svn add svn-checkout/svn-file
|
||||
svn commit -m "add svn file" svn-checkout/svn-file
|
||||
ln -s svn-repo svn-checkout-repo
|
||||
;;
|
||||
(*) echo "::End. -- stop -- nothing::" ;;
|
||||
|
Reference in New Issue
Block a user