-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
self-test: Optionally install for as-installed testing
This follows the interface proposed in https://wiki.gnome.org/Initiatives/GnomeGoals/InstalledTests and can be used for "as-installed" testing, which is a useful way to check for regressions (for example if a GLib upgrade might cause a regression in the already-compiled version of gcab), especially in frameworks like Debian's autopkgtest and Fedora's Standard Test Interface. To locate the test data in a way that is compatible with as-installed tests, use g_test_build_filename() instead of hard-coding the source directory into the test executable. This incidentally also avoids relying on PATH_MAX, which is not completely portable. Signed-off-by: Simon McVittie <smcv@debian.org>
- Loading branch information
Showing
5 changed files
with
49 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[Test] | ||
Type=session | ||
Exec=@env@@installed_tests_dir@/@program@ --tap | ||
Output=TAP |