To run this test:

Remove any old versions of the test from the NC

Import the test, but do not run it.

Fill the NC so that there is between 1 and 2 megabytes of storage left.
If the flash block size is 16K bytes, that is between 64 and 128 blocks left.

Use the random_file program to generate large files, then upload them
to a new directory 'bulk'.  Don't upload to /tmp, since these files
are erased on boot.

Run the test.  It should complete successfully.

Remove the test, then re-import.

Fill the NC so that there is less than 1 megabyte of storage left.

Writing to the flash should fail.
