CONFIGOPTS: "--with-curl --with-openssl"
# ASAN conflicts with introspection testing;
# See https://github.com/ostreedev/ostree/issues/1014
- INSTALLED_TESTS_PATTERN: "libostree/test-sizes.js libostree/test-sysroot.js libostree/test-core.js libostree/test-corrupt-repo-ref.js"
+ INSTALLED_TESTS_PATTERN: "libostree/test-sizes.js libostree/test-sysroot.js libostree/test-core.js"
tests:
- ci/build-check.sh
$(NULL)
if BUILDOPT_GJS
-dist_installed_test_scripts = $(js_installed_tests)
+_installed_or_uninstalled_test_scripts += $(js_installed_tests)
else
EXTRA_DIST += $(js_installed_tests)
endif
throw new Error("assertion failed " + JSON.stringify(a) + " == " + JSON.stringify(b));
}
+print('1..1')
+
let testDataDir = Gio.File.new_for_path('test-data');
testDataDir.make_directory(null);
testDataDir.get_child('some-file').replace_contents("hello world!", null, false, 0, null);
[,readCommit] = repo.resolve_rev('someref', true);
assertEquals(readCommit, null);
-print("test-core complete");
+print("ok test-core");
throw new Error("assertion failed " + JSON.stringify(a) + " == " + JSON.stringify(b));
}
+print('1..1')
+
let testDataDir = Gio.File.new_for_path('test-data');
testDataDir.make_directory(null);
testDataDir.get_child('some-file').replace_contents("hello world!", null, false, 0, null);
throw new Error("Failed to match expectedUncompressedSizes: " + JSON.stringify(expectedUncompressedSizes));
}
-print("test-sizes complete");
+print("ok test-sizes");
function libtestExec(shellCode) {
let testdatadir = GLib.getenv("G_TEST_SRCDIR");
- let libtestPath = GLib.build_filenamev([testdatadir, 'libtest.sh'])
+ let libtestPath = GLib.build_filenamev([testdatadir, 'tests/libtest.sh'])
let proc = Gio.Subprocess.new(['bash', '-c', 'set -xeuo pipefail; . ' + GLib.shell_quote(libtestPath) + '; ' + shellCode], 0);
proc.wait_check(null);
}
+print('1..1')
+
libtestExec('setup_os_repository archive-z2 syslinux');
let upstreamRepo = OSTree.Repo.new(Gio.File.new_for_path('testos-repo'));
sysroot.write_deployments(newDeployments, null);
deployments = sysroot.get_deployments();
assertEquals(deployments.length, 3);
+
+print("ok test-sysroot")