TabFS/test
Omar Rizwan b948c235b8 fs,extension: Make truncate work on cached file content.
We now remember the path of each cached file, so when someone
truncates that path, we can truncate all open instances of it in
cache. Important when someone pipes to stomp a file / opens with
O_TRUNC (which FUSE disaggregates into an open() and then a truncate()
call). Gets rid of the need for FUSE_CAP_ATOMIC_O_TRUNC, which never
worked on macOS anyway.

Fixes #40.
2021-04-06 13:48:48 -07:00
..
test-resources test: separate tests from background.js, clean up and document a bit 2021-03-14 21:33:23 -07:00
Makefile test: separate tests from background.js, clean up and document a bit 2021-03-14 21:33:23 -07:00
README.md test: separate tests from background.js, clean up and document a bit 2021-03-14 21:33:23 -07:00
test.c fs,extension: Make truncate work on cached file content. 2021-04-06 13:48:48 -07:00
test.js extension,test: Move Router down, Router -> Routes. 2021-03-22 23:25:38 -07:00

test

Two separate test 'suites': one in test.js that uses node, and one in test.c that is an integration test that actually tests against the extension in browser.

Right now, you need to have Chrome open (I haven't tried Firefox or Safari), and you'll want to make sure a window other than the extension console is focused (the console is non-debuggable, so it breaks the test).

Run make in this folder.