openafs/tests/cmd
Andrew Deason 40d6644264 tests: Introduce afstest_*_path()
Currently, several of our tests contain logic to locate files (via
srcdir or objdir), based on the C_TAP_SOURCE/BUILD environment
variables. This logic is duplicated in several places, so consolidate
the code into a couple of new functions: afstest_src_path and
afstest_obj_path. Update all callers to use these new functions.

Change-Id: I67a5e5d7f8fd7a1edb55a45e52d877ac41f9a2ea
Reviewed-on: https://gerrit.openafs.org/14319
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
2021-08-12 10:34:03 -04:00
..
.gitignore cmd: Add some tests to the test suite 2011-04-25 21:51:09 -07:00
command-t.c tests: Introduce afstest_*_path() 2021-08-12 10:34:03 -04:00
Makefile.in tests: Introduce afstest_*_path() 2021-08-12 10:34:03 -04:00
test1.conf cmd: Add support for pulling options from files 2012-05-11 18:49:07 -07:00