summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
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-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.
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
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-08-13update shunit to 2.1.6Pierre Schmitz
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-02Add simple checks for handling signed packagesPierre Schmitz
In addition to this dbscripts wont accept unsigned pacakges when REQUIRE_SIGNATURE is set to true. Note: At this point no signature verification is performed at all.
2011-03-26Use repo-add to create the files database for each repoPierre Schmitz
2011-03-26Adjust test for latest devtools; Be less generic with package extensionPierre Schmitz
2011-03-23Add support for packages which use the epoch variablePierre Schmitz
2011-01-27test: add testUpdateSameAnyPackageToSameRepositoryPierre Schmitz
2010-12-02db-update: Fail if a set of split packages is incompletePierre Schmitz
2010-11-27Fix test: copy target of symlinksPierre Schmitz
2010-11-25Rewrote create-filelistsPierre Schmitz
* use correct locking of the repos * added test case * removes file lists of deleted packages * add compression independent symlink to files db
2010-11-25sourceballs no longer depends on ftpdir-cleanup being runPierre Schmitz
2010-11-25Split tests into several filesPierre Schmitz
* tests can be run seperatly * runTest will run all tests that have the x bit set
2010-11-25Provide more real test packagesPierre Schmitz
* Use devtools instead of plain makepkg * This is a preparation for some more advanced test cases.
2010-11-25Added seperate dryrun options for the packages and sources cleanup scriptsEric Bélanger
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2010-11-22sourceballs: add for split packagesPierre Schmitz
2010-11-21sourceballs: Support any packagesPierre Schmitz
2010-11-21sourceballs: Don't write any logPierre Schmitz
This is consistent with the other dbscripts. The output will be send to the mailinglist.
2010-11-20Simplify sourceballs creationPierre Schmitz
* Read package lists directly from DB file * Make SVNREPO configurable
2010-11-20Fix sourceballs cron jobPierre Schmitz
* add unit test for sourceballs and cleanup * introduce SRCPOOL and LOGDIR variables in config
2010-09-11Use local config instead of guessing by hostnamePierre Schmitz
Using the hostname to decide which repos to use is not releiable and hard to test. Instead use config.local to configure these. config files for sigurd and gerolde were added which can be copied or symlinked to config.local on the specific host.
2010-09-05Check if package exists in any other repository on updatePierre Schmitz
This also checks if the sam package exists within the old package layout (without package pool)
2010-09-05Fix updating of same package into different repositories at aoncePierre Schmitz
See FS#20745
2010-09-01Simplify repo configurationPierre Schmitz
* Repositories can now be defined in the config file for each host * added community-staging, gnome-unstable and kde-unstable * Exception is the adjust-permission cron-job; but we might want to use acls in future anyway Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2010-08-22add makepkg.conf for [multilib]Pierre Schmitz
2010-08-18Fix cleanup of old packagesPierre Schmitz
* This should fix the cleanup of packages that were not within the pacakge pool before being updated. * a test case for this was added