mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
tests: Locate resources and scripts relative to top source dir.
-- Locate every resource and every script used in the tests using a path relative to the top of the source tree. This is a purely mechanical change, mostly done using regular expressions, with a few manual fixups here and there. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
f03d6897be
commit
ed4d23d75e
87 changed files with 208 additions and 182 deletions
|
@ -17,13 +17,13 @@
|
|||
;; You should have received a copy of the GNU General Public License
|
||||
;; along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
(load (with-path "defs.scm"))
|
||||
(load (in-srcdir "tests" "openpgp" "defs.scm"))
|
||||
(setup-environment)
|
||||
|
||||
(info "Checking iobuf_peek corner case (issue2419)...")
|
||||
(lettmp
|
||||
(onebyte)
|
||||
(dearmor (in-srcdir "samplemsgs/issue2419.asc") onebyte)
|
||||
(dearmor (in-srcdir "tests" "openpgp" "samplemsgs/issue2419.asc") onebyte)
|
||||
(catch (assert (string-contains? (car *error*) "invalid packet"))
|
||||
(call-popen `(,@GPG --list-packets ,onebyte) "")
|
||||
(fail "Expected an error but got none")))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue