Giuseppe Scrivano
ef53e0100b
tests: do not run tests/test-rollsum as part of make check
...
it is not really a unit test.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
Conflicts:
Makefile-tests.am
2015-02-21 17:19:20 -05:00
Giuseppe Scrivano
cfc344fbb0
tests: Add tests for ot-unix-utils
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2015-02-02 17:42:41 +01:00
Giuseppe Scrivano
a7b362998d
configure.ac: Enable option subdir-objects for automake
...
It silences an automake warning and keep the rootdir cleaner.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2015-02-02 17:15:35 +01:00
Giuseppe Scrivano
53122dd2f9
tests: Move test-varint and test-rollsum under "make check"
...
"make check" tests are always enabled and they do not require to be
installed.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2015-02-02 17:14:52 +01:00
Giuseppe Scrivano
6a3959c895
syntax-check: Remove empty lines at the end of file
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2015-02-02 15:07:56 +01:00
Giuseppe Scrivano
27a45e2edb
pull: use a single per-transaction syncfs instead of fsync
...
Do not write directly to objects/ but maintain pulled files under tmp/
with a "tmpobject-$CHECKSUM.$OBJTYPE" name until they are syncfs'ed to
disk.
Move them under objects/ at ostree_repo_commit_transaction cleanup
time.
Before (test done on a local network):
$ LANG=C sudo time ./ostree --repo=repo pull origin master
0 metadata, 3 content objects fetched; 83820 KiB; 4 delta parts
fetched, transferred in 417 seconds
16.42user 6.73system 6:57.19elapsed 5%CPU (0avgtext+0avgdata
248428maxresident)k
24inputs+794472outputs (0major+233968minor)pagefaults 0swaps
After:
$ LANG=C sudo time ./ostree --repo=repo pull origin master
0 metadata, 3 content objects fetched; 83820 KiB; 4 delta parts
fetched, transferred in 9 seconds
14.70user 2.87system 0:09.99elapsed 175%CPU (0avgtext+0avgdata
256168maxresident)k
0inputs+794472outputs (0major+164333minor)pagefaults 0swaps
https://bugzilla.gnome.org/show_bug.cgi?id=728065
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2015-01-30 14:03:42 -05:00
Giuseppe Scrivano
10642cd732
Replace "==" with "=" in shell script test
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2015-01-30 15:27:36 +01:00
Giuseppe Scrivano
505ce19972
Do not interleave spaces and tabs
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2015-01-30 15:27:36 +01:00
Giuseppe Scrivano
e8cbd4b8c5
Remove magic argument numbers to exit(2)
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2015-01-30 15:27:36 +01:00
Giuseppe Scrivano
ea4683ba06
Remove unused <dirent.h>
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2015-01-30 15:27:36 +01:00
Giuseppe Scrivano
7154193ae0
Remove unused include <assert.h>
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2015-01-30 15:27:36 +01:00
Giuseppe Scrivano
e36d3bb25e
syntax-check: quote the first argument to AC_DEFINE
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2015-01-30 15:27:36 +01:00
Giuseppe Scrivano
b726796f41
Remove trailing dot from error message
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2015-01-30 15:27:36 +01:00
Giuseppe Scrivano
42e8cd2691
Add infrastructure for "make syntax-check"
...
New files copied from the gnulib project.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2015-01-30 15:27:36 +01:00
Giuseppe Scrivano
bb5d7bcf3a
Fix repeated words.
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2015-01-30 15:27:36 +01:00
Giuseppe Scrivano
7ebf7676cb
Fix make distcheck
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2015-01-30 15:27:36 +01:00
Giuseppe Scrivano
4991e9ab6a
static-delta: limit the number of writes in process to 1
...
This will avoid too many open files at the same time that could cause
an EMFILE error.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
(cherry picked from commit bc092b06f0e34e93f7d6102957bf55fd7ffd1b9e)
2015-01-20 09:51:02 -05:00
Giuseppe Scrivano
ce957f8649
editor: honor arguments environment variable
...
My EDITOR looks like "EDITOR=emacs -nw", ensure that it is honored.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2015-01-16 09:21:30 -05:00
Giuseppe Scrivano
f2ae405f9f
static-delta: do not accept both --from=REV and --empty for generate
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2015-01-15 22:54:56 -05:00
Giuseppe Scrivano
6e60c05d2f
Remove unused variable warning
2014-12-18 12:48:47 +01:00
Giuseppe Scrivano
ed2b56a430
fix --help for static-delta
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2014-12-18 12:48:47 +01:00
Giuseppe Scrivano
a23b3b332e
Revert "ostree-repo-pull: Remove currently #if 0 static delta code"
...
This reverts commit 1c2e20af25 .
2014-12-18 12:48:47 +01:00
Giuseppe Scrivano
f699153f67
ostree-fetcher: move more logic into ostree_fetcher_request_uri_internal
...
Make _ostree_fetcher_request_uri_with_partial_async and
ostree_fetcher_stream_uri_async simple wrapper around the same
function, all the requests are created in the same place now.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2014-11-12 21:20:28 -05:00
Giuseppe Scrivano
a5491f98cb
ostree-fetcher: make _ostree_fetcher_stream_uri_sync private
...
Rename _ostree_fetcher_contents_membuf_sync to
ostree_fetcher_request_uri_to_membuf and drop unused argument
user_data.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2014-11-12 21:20:28 -05:00
Giuseppe Scrivano
c2bc99bc16
ostree-fetcher: Remove _ostree_fetcher_request_uri_to_stream function
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2014-11-12 21:20:28 -05:00
Giuseppe Scrivano
5546c4d2fc
ostree-metalink: use _ostree_fetcher_contents_membuf_sync
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2014-11-12 21:20:28 -05:00
Giuseppe Scrivano
d48aca5645
ostree-fetcher: add max_size argument to change _ostree_metalink_request_sync
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2014-11-12 21:20:28 -05:00
Giuseppe Scrivano
a4a4921d3f
ostree-fetcher: remove two unused functions
...
_ostree_fetcher_query_state_text() and_ostree_fetcher_get_n_requests()
have no callers, so remove them.
If they will be needed, they can be easily copied back from the git
history.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2014-11-12 21:20:28 -05:00
Giuseppe Scrivano
c832e9b751
metalink: have a single entry to the metalink module
...
Replace _ostree_metalink_request_async with a synchronous version.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2014-11-12 21:20:28 -05:00
Giuseppe Scrivano
d5d73debd8
ostree_fetcher: new function _ostree_fetcher_contents_membuf_sync
...
Move code from ostree-repo-pull.c
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2014-11-12 21:20:28 -05:00
Giuseppe Scrivano
bbd3fd7a22
tests: fix intermittent failure for test-sysroot
...
libtestExec doesn't run twice the same process now.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2014-11-10 19:48:45 +01:00
Giuseppe Scrivano
1c2e20af25
ostree-repo-pull: Remove currently #if 0 static delta code
...
We can readd this in the static deltas work.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2014-11-06 18:48:29 -05:00
Giuseppe Scrivano
0a7c1851d9
diff: Use gs_unref_object not gs_free on a GFile
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2014-10-30 12:17:32 -04:00
Giuseppe Scrivano
cb053ae0f6
pull: Fix a used before initialization warning
...
src/libostree/ostree-repo-pull.c:1676:22: warning: 'flags' may be used uninitialized in this function [-Wmaybe-uninitialized]
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2014-10-30 12:16:59 -04:00
Giuseppe Scrivano
65c0594011
ostree-repo-pull: Fix inverted assert condition for maxdepth
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2014-10-30 11:46:02 -04:00
Giuseppe Scrivano
7973a58607
checkout: permit checkout of a single file
...
fixes a coredump when using a command like:
$ ostree --repo=repo checkout -U --subpath=/usr/lib/passwd \
fedora-atomic/rawhide/x86_64/docker-host usrlib-new
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2014-10-24 11:18:45 -04:00
Giuseppe Scrivano
49de180191
corrupt-repo-ref.js: more aggressive file corruption
...
changing only a byte may not generate a corrupted file, so play very
safe and change 10 bytes.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2014-10-22 20:02:06 +02:00
Giuseppe Scrivano
0785c398b0
fsck: report the correct error when a present file cannot be loaded
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2014-10-22 18:06:29 +02:00
Giuseppe Scrivano
c4b7717076
tests: test-admin-deploy-switch doesn't use deprecated "current" symlink
...
commit dfeb27eca5 removed it, so change
the test to not use it.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2014-10-21 16:18:30 -04:00
Giuseppe Scrivano
22a82341b1
tests: fix --help test
...
Check for "Usage" only in the root command, builtins may not output
it.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2014-10-21 16:18:30 -04:00
Giuseppe Scrivano
26bdfae5bc
make ostree_cmd__private__ ret value const
2014-10-21 16:18:30 -04:00
Giuseppe Scrivano
92c5a9f992
http: set the HTTP status on directory listing
...
Fix a HTTP response header like the following:
HTTP/1.1 0 (null)
Server: ostree-httpd libsoup/2.48.0
Date: Tue, 07 Oct 2014 11:19:22 GMT
Content-Type: text/html
Content-Length: 12533
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2014-10-07 13:19:36 +02:00
Giuseppe Scrivano
7b0e70b72f
tests: do not leave running httpd after tests exit
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2014-10-07 12:05:59 +02:00
Giuseppe Scrivano
68b37dc001
libostree: fix a gobject-introspection warning
...
src/libostree/ostree-repo.c:1759: Warning: OSTree:
ostree_repo_import_object_from: unknown parameter 'checksum' in
documentation comment, should be 'sha256'
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2014-10-06 19:03:34 +02:00