Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Marcus Andersson
aurweb
Commits
90c0a361
Commit
90c0a361
authored
Feb 29, 2020
by
Frédéric Mangano-Tarumi
Committed by
Lukas Fleischer
Feb 29, 2020
Browse files
Support running tests from any directory
Signed-off-by:
Lukas Fleischer
<
lfleischer@archlinux.org
>
parent
e374a91f
Changes
11
Hide whitespace changes
Inline
Side-by-side
test/setup.sh
View file @
90c0a361
TEST_DIRECTORY
=
"
$(
pwd
)
"
TOPLEVEL
=
"
$(
cd
..
&&
pwd
)
"
TOPLEVEL
=
"
$(
cd
"
$(
dirname
"
$0
"
)
/.."
&&
pwd
)
"
.
.
/sharness.sh
.
"
$TOPLEVEL
/test
/sharness.sh
"
# Configure python search path.
PYTHONPATH
=
"
$TOPLEVEL
"
...
...
test/t1100-git-auth.t
View file @
90c0a361
...
...
@@ -2,7 +2,7 @@
test_description
=
'
git-auth tests
'
.
.
/
setup
.
sh
.
"
$(dirname
"
$
0
"
)
/setup.sh
"
test_expect_success
'
Test basic authentication.
'
'
"$GIT_AUTH" "$AUTH_KEYTYPE_USER" "$AUTH_KEYTEXT_USER" >out &&
...
...
test/t1200-git-serve.t
View file @
90c0a361
...
...
@@ -2,7 +2,7 @@
test_description
=
'
git-serve tests
'
.
.
/
setup
.
sh
.
"
$(dirname
"
$
0
"
)
/setup.sh
"
test_expect_success
'
Test interactive shell.
'
'
"$GIT_SERVE" 2>&1 | grep -q "Interactive shell is disabled."
...
...
test/t1300-git-update.t
View file @
90c0a361
...
...
@@ -2,7 +2,7 @@
test_description
=
'
git-update tests
'
.
.
/
setup
.
sh
.
"
$(dirname
"
$
0
"
)
/setup.sh
"
dump_package_info
()
{
for
t
in
Packages
Licenses
PackageLicenses
Groups
PackageGroups
\
...
...
test/t2100-mkpkglists.t
View file @
90c0a361
...
...
@@ -2,7 +2,7 @@
test_description
=
'
mkpkglists tests
'
.
.
/
setup
.
sh
.
"
$(dirname
"
$
0
"
)
/setup.sh
"
test_expect_success
'
Test package list generation with no packages.
'
'
echo "DELETE FROM Packages;" | sqlite3 aur.db &&
...
...
test/t2200-tuvotereminder.t
View file @
90c0a361
...
...
@@ -2,7 +2,7 @@
test_description
=
'
tuvotereminder tests
'
.
.
/
setup
.
sh
.
"
$(dirname
"
$
0
"
)
/setup.sh
"
test_expect_success
'
Test Trusted User vote reminders.
'
'
now=$(date -d now +%s) &&
...
...
test/t2300-pkgmaint.t
View file @
90c0a361
...
...
@@ -2,7 +2,7 @@
test_description
=
'
pkgmaint tests
'
.
.
/
setup
.
sh
.
"
$(dirname
"
$
0
"
)
/setup.sh
"
test_expect_success
'
Test package base cleanup script.
'
'
now=$(date -d now +%s) &&
...
...
test/t2400-aurblup.t
View file @
90c0a361
...
...
@@ -2,7 +2,7 @@
test_description
=
'
aurblup tests
'
.
.
/
setup
.
sh
.
"
$(dirname
"
$
0
"
)
/setup.sh
"
test_expect_success
'
Test official provider update script.
'
'
mkdir -p remote/test/foobar-1.0-1 &&
...
...
test/t2500-notify.t
View file @
90c0a361
...
...
@@ -2,7 +2,7 @@
test_description
=
'
notify tests
'
.
.
/
setup
.
sh
.
"
$(dirname
"
$
0
"
)
/setup.sh
"
test_expect_success
'
Test out-of-date notifications.
'
'
cat <<-EOD | sqlite3 aur.db &&
...
...
test/t2600-rendercomment.t
View file @
90c0a361
...
...
@@ -2,7 +2,7 @@
test_description
=
'
rendercomment tests
'
.
.
/
setup
.
sh
.
"
$(dirname
"
$
0
"
)
/setup.sh
"
test_expect_success
'
Test comment rendering.
'
'
cat <<-EOD | sqlite3 aur.db &&
...
...
test/t2700-usermaint.t
View file @
90c0a361
...
...
@@ -2,7 +2,7 @@
test_description
=
'
usermaint tests
'
.
.
/
setup
.
sh
.
"
$(dirname
"
$
0
"
)
/setup.sh
"
test_expect_success
'
Test removal of login IP addresses.
'
'
now=$(date -d now +%s) &&
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment