summaryrefslogtreecommitdiff
path: root/installed-tests/script.test.in
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-07-26 01:25:29 +0100
committerColin Walters <walters@verbum.org>2013-08-06 11:02:13 +0100
commit8cbd17ab119d9123d870fb433f548883df51279a (patch)
tree9f5aaacdcf6a089885b805157dd5547e2292878f /installed-tests/script.test.in
parent7087b494f8f515887f516442d879c22873c04426 (diff)
downloadgjs-8cbd17ab119d9123d870fb433f548883df51279a.tar.gz
tests: Add new installed-tests/scripts test mechanism
The unit tests are not suitable for all sorts of tests; in particular, I can't test System.exit() from there since it loads all of the tests into one process. So this patch adds a new type of "scripts" test which is literally just a gjs script; if it exits successfully, the test passed. https://bugzilla.gnome.org/show_bug.cgi?id=703826
Diffstat (limited to 'installed-tests/script.test.in')
-rw-r--r--installed-tests/script.test.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/installed-tests/script.test.in b/installed-tests/script.test.in
new file mode 100644
index 00000000..7fa8a99f
--- /dev/null
+++ b/installed-tests/script.test.in
@@ -0,0 +1,3 @@
+[Test]
+Type=session
+Exec=gjs @pkglibexecdir@/installed-tests/scripts/@name@