d8d7f5f711
js/ui/environment.js: Split out initial UI setup (Tweener initialization, Nbtk monkey-patching) into a separate file we can import from tests. tests/: Directory for various types of tests tests/run-test.sh: Shell script that to run tests with an appropriate environment set up. tests/testcommon/: Common modules and data for tests tests/interactive/: Interactive tests tests/interactive/box-layout.js: A sample test of NbtkLayout
21 lines
525 B
Makefile
21 lines
525 B
Makefile
noinst_SCRIPTS = run-test.sh
|
|
EXTRA_DIST = run-test.sh.in
|
|
|
|
TEST_JS = \
|
|
testcommon/ui.js \
|
|
interactive/box-layout.js
|
|
EXTRA_DIST += $(TEST_JS)
|
|
|
|
TEST_MISC = \
|
|
testcommon/test.css
|
|
EXTRA_DIST += $(TEST_MISC)
|
|
|
|
# We substitute in bindir so it works as an autostart
|
|
# file when built in a non-system prefix
|
|
run-test.sh: run-test.sh.in
|
|
$(AM_V_GEN) sed \
|
|
-e "s|@GJS_JS_DIR[@]|$(GJS_JS_DIR)|" \
|
|
-e "s|@GJS_JS_NATIVE_DIR[@]|$(GJS_JS_NATIVE_DIR)|" \
|
|
-e "s|@srcdir[@]|$(srcdir)|" \
|
|
$< > $@ && chmod a+x $@
|