|
From: | Jacob Bachmeyer |
Subject: | Adding "-C <dir>" option to runtest(1) |
Date: | Mon, 12 Nov 2018 18:17:13 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.22) Gecko/20090807 MultiZilla/1.8.3.4e SeaMonkey/1.1.17 Mnenhy/0.7.6.0 |
This is a problem because the recursive runtest runs in the DejaGnu testsuite need to use a different site.exp from the outer runtest.
I have a few options: (1) Use a different long option name, perhaps "--base-directory".(2) Add a shell script shim for the testsuite to use that changes directory and invokes "runtest". (3) Allow overriding the configfile name (default "site.exp") via command-line option.
I prefer option (1), since the functionality is strongly analogous to GNU make: both programs examine hard-coded files relative to the directory in which they start.
-- Jacob
[Prev in Thread] | Current Thread | [Next in Thread] |