summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2016-04-17Merge branch 'lukeshu/archlinux+cleanup+librelib' into lukeshu/xbsLuke Shumaker
# Conflicts: # config # cron-jobs/makepkg.conf # cron-jobs/update-web-db # db-functions # db-move # db-remove # db-update # test/lib/common.inc # test/test.d/create-filelists.sh # test/test.d/db-update.sh # testing2x
2016-04-17Use the librelib version of get_full_versionlukeshu/archlinux+cleanup+librelibLuke Shumaker
2016-04-17Consistently use "$(dirname "$(readlink -e "$0")")"Luke Shumaker
This does correct handling of - executing a program by symlink - any weird characters in the full path - I'm sure there's another case I thought about when I originally did this.
2016-04-17Add "#!/hint/bash" to the beginning of several files.Luke Shumaker
It is a method of notifying text-editors that a file is in Bash syntax without giving it a propper shebang (which would be confusing, as it would suggest that the file should be executable), as well as working across virtually all text-editors (unlike "-*- Mode: Bash -*-" or whatever).
2016-04-17Use `grep &>/dev/null` instead of `grep -q` when operating on piped stdin.Luke Shumaker
`grep -q` may exit as soon as it finds a match; this is a good optimization for when the input is a file. However, if the input is the output of another program, then that other program will receive SIGPIPE, and further writes will fail. When this happens, it might (bsdtar does) print a message about a "write error" to stderr. Which is going to confuse and alarm the user. I'll add that this is not purely hypothetical--it has happened to me while running the test suite.
2016-04-17test/: Make which architectures to build for configurable.Luke Shumaker
2016-04-17test/: make TMPDIR configurable via config.testingLuke Shumaker
Because common.inc is included in nested calls, to prevent later calls from overriding earlier calls, we export MASTER_TMPDIR to signal the top-level value. Calls to mktemp have also bee adjusted to obey TMPDIR.
2016-04-17test/lib/common.inc: fix a bad mergeLuke Shumaker
2016-04-17Move xihh's tests out of tests/ into tests-xihh/Luke Shumaker
2016-04-17Merge branch 'lukeshu/xbs' into testmergeLuke Shumaker
# Conflicts: # test/lib/common.inc # test/test.d/create-filelists.sh # test/test.d/db-move.sh # test/test.d/db-remove.sh # test/test.d/db-repo-add.sh # test/test.d/db-repo-remove.sh # test/test.d/db-update.sh # test/test.d/ftpdir-cleanup.sh # test/test.d/sourceballs.sh
2016-04-17get tests from lukeshu/archlinux+cleanup+librelibLuke Shumaker
2016-04-16Fix quoting around variables, especially arrays.Luke Shumaker
Other than pure quoting, this involved: - swapping */@ for array access in a few places - fiddling with printf in a pipeline - replacing `$(echo ${array[@]})` with `${array[*]}` - replacing `echo $(...)` with `...` When searching for these things, I used the command: grep -Prn --exclude-dir=.git '(?<!["=]|\[\[ |\[\[ -[zn] )\$(?!{?#|\(|\? )' and ignored a bunch of false positives.
2014-06-18more quoting an printf fixesLuke Shumaker
2014-06-18The eval+printf %q thing wasn't worth the hard-to-read codeLuke Shumaker
2014-06-17more quoting fixesLuke Shumaker
2013-12-31Merge branch 'cleanup' into master-mergeLuke Shumaker
Conflicts: config cron-jobs/sourceballs db-functions db-move db-remove db-update
2013-06-29use the get_full_version from libremessages (actually, common.sh)Luke Shumaker
It works properly when split packages have different versions.
2013-06-17use xbs, not svnLuke Shumaker
2013-06-17fix testsLuke Shumaker
- properly set SRCPOOL - have SVNREPO point to the checkout, not the server repo - in case TMPDIR has a symlink in it, use `readlink -e` on both sides of inspecting symlinks. - use `grep {pattern} &>/dev/null` instead of `grep -q {pattern}`. Because `grep -q` is able to bail early, a program being piped in to it may spit out a message about a write error to stderr.
2013-06-16fix TMPDIRLuke Shumaker
2013-06-16Don't make assumptions about the host architecture.Luke Shumaker
2013-06-12test/: use libremakepkg instead of arch-*buildLuke Shumaker
2013-01-31db-update: Ignore forgeign staging packagesPierre Schmitz
2012-10-27Add the possibility to run all svn commands with a different userPierre Schmitz
* A SVNUSER can be configured in the config file * This user needs to be able to call svn without a password
2012-10-03test: Do not suppress devtools outputPierre Schmitz
2012-06-10Make repositories for testing2x configurablePierre Schmitz
2012-06-10Remove support for packages that are not in the package poolPierre Schmitz
2012-06-10Remove support for packages in legacy $repo/os/any directoriesPierre Schmitz
2012-04-29Source the config before the functions as the latter references the formerPierre Schmitz
2012-04-29Respect TMPDIR config when creating the working directoryPierre Schmitz
2012-02-19Fix typo and leftover shm usagePierre Schmitz
2012-02-19Add at least one positive signing testPierre Schmitz
2012-01-08Merge branch 'master' of https://projects.archlinux.org/git/dbscriptsNicolás Reynolds
Conflicts: db-remove
2011-12-19Avoid calls to basenamePierre Schmitz
2011-12-18Validate package signatures on db-updatePierre Schmitz
2011-11-05Add simple tests for db-repo-add and db-repo-removePierre Schmitz
2011-11-05Add test for moving multiple packages at oncePierre Schmitz
2011-11-05Split package database test functions from check* functionsPierre Schmitz
This way we can check consitency of databases independent from a svn repo
2011-11-05check svn entry for any packagesPierre Schmitz
2011-11-05db-remove: support removing multiple packages at oncePierre Schmitz
2011-11-05Adjust tests to use new db-remove interfacePierre Schmitz
2011-10-30Merge branch 'master' of https://projects.archlinux.org/git/dbscriptsNicolás Reynolds
2011-08-13update shunit to 2.1.6Pierre Schmitz
2011-08-03Merge branch 'master' of https://projects.archlinux.org/git/dbscriptsNicolás Reynolds
2011-07-24Fix test for use with recent namcap releasesPierre Schmitz
2011-07-24Use /tmp instead of /dev/shm for temporary filesPierre Schmitz
2011-04-16Merge branch 'master' of git://projects.archlinux.org/dbscriptsJoshua Ismael Haase Hernández
Conflicts: db-functions
2011-04-16Merge branch 'master' of ~/packages/dbscripts into pruebaJoshua Ismael Haase Hernández
Conflicts: .gitignore db-functions
2011-04-15Python parts ready for bash usage in python 2 and 3Joshua Ismael Haase Hernández
2011-04-13Fixed more errors and refactoringJoshua Ismael Haase Hernández