Commit Graph

62 Commits

Author SHA1 Message Date
kre 981c4cd0ef Make most of the resize_ffs tests skip if PUFFS is not configured
in the kernel.   (nb: for this purpose, a module that is configured
to autoload counts as configured in the kernel...)
2017-10-08 21:12:27 +00:00
martin defea524bf Skip the "migrate" test on architectures not natively using MBR, it
can not work there.
2017-03-22 19:13:40 +00:00
pgoyette aec3683782 When deadbeef is treated as a 32-bit signed integer, it actually has a
negative value.  So, if the value gets written into a sysctl variable,
and then is read back, the twos-complement value is displayed.

So, when checking for the value having been written, make sure we check
for the correct value!
2016-06-17 03:55:35 +00:00
joerg c632ff2be2 Require the boot block to be used, test can't work otherwise. 2016-03-08 08:04:48 +00:00
pgoyette bc9ef90a7d I was right - the output from gpt(8) did grow an extra space character!
Fix the test to expect it.  Test now passes on my local test bed.
2015-12-27 06:53:48 +00:00
pgoyette 9328be7df7 Revert - tested using wrong test case. :( 2015-12-27 01:50:39 +00:00
pgoyette a161b63780 Update test - the attributes listed by the show command now have a space
in the comma-separated list.

This allows the test to once again pass.
2015-12-27 01:46:24 +00:00
christos 1580202168 Add test for type, set, unset 2015-12-06 00:38:30 +00:00
christos ce40c86d4c more variables 2015-12-05 18:53:29 +00:00
christos a1fb78d5a0 file shuffling 2015-12-05 18:52:11 +00:00
christos ac8087a5ab Add a migration test 2015-12-05 18:45:35 +00:00
christos cf8c4fce6c Add biosboot test 2015-12-05 14:23:41 +00:00
christos 6c37bffdde Oops + 2015-12-04 20:16:23 +00:00
christos 2d4dd9611a remove extra 2015-12-04 18:53:35 +00:00
christos 11ff782d8f Add gpt tests 2015-12-04 17:19:33 +00:00
christos 20fc3c3567 Add remove partition data file 2015-12-04 17:15:39 +00:00
christos a50907f634 Add label change tests 2015-12-04 17:15:21 +00:00
christos 1d371e5267 Add resize data files 2015-12-04 16:59:57 +00:00
christos 2663264cc4 Add resize test. 2015-12-04 16:59:39 +00:00
christos b109d7f5a9 Make the test work 2015-12-04 01:42:47 +00:00
christos 0a47105b38 checking multiple things does not work! atf-bug! 2015-12-04 01:21:12 +00:00
christos 893a65c28f I wrote that 2015-12-04 01:06:43 +00:00
christos c68ecf1926 Add some gpt tests 2015-12-04 01:06:17 +00:00
chopps 3fe0ea9c96 - Add new tests for -c check flag in resize_ffs 2015-03-29 19:37:02 +00:00
palle 65aa7f14df Added test of -d option to sysctl 2014-05-16 18:50:28 +00:00
martin 2f9cf01de9 We now expect this test to succeed 2014-01-05 12:59:03 +00:00
joerg 94bcefa490 Check for RUMP programs before using them. 2013-02-19 21:08:24 +00:00
njoly c45e6c06f4 Adjust msdos fat32 image creation to match cluster count requirements. 2012-09-06 12:51:47 +00:00
njoly 734339d201 Add testcase for PR/46743 2012-07-28 16:08:39 +00:00
jruoho a74ccce819 Test that sysctl(8) does not segfault, as reported by pgoyette@ on current
users.
2012-04-10 02:39:33 +00:00
jruoho 543143cf18 Move more PR references from comments to ATF's "descr". 2012-03-18 09:46:50 +00:00
jruoho 4fac6e71e4 Add missing copyright and remove white space. 2012-03-18 09:31:50 +00:00
jruoho d2d68b21f3 Add '-e ignore" to atf-check(1) and remove xfail. Pointed by njoly@. 2012-03-17 17:39:44 +00:00
jruoho a43eb6ed04 PR bin/42179 was fixed; remove xfail. 2012-03-17 08:34:55 +00:00
jruoho 6c201d9091 Remove xfail, as PR kern/44946 was fixed. 2012-03-12 08:14:02 +00:00
njoly 59bc3aabda Add require root user to test_case_xfail. Avoids reporting expected
failure for the wrong reason with unprivileged runs (puffs access
denied).
2011-05-17 22:01:41 +00:00
njoly de774efe6e Remove shebang lines from test-script sources; avoids duplicate with
the build process which adds one too.
2011-05-11 22:08:12 +00:00
jruoho 3005f452fe Do also a small functional verification that user did not succeed in writing
garbage values, even if sysctl(8) reported a failure.
2011-05-11 07:07:41 +00:00
jruoho 949a3d9b76 Add one missing cleanup routine declaration. 2011-05-09 17:55:37 +00:00
jruoho f33b8e3d59 Add a test case for PR kern/44946. This tests that common first level sysctl
nodes (ddb, hw, machdep, etc.) are not writable by a normal user.
2011-05-09 17:53:54 +00:00
jruoho 765b090a54 A test for non-critical/low PR bin/42179. 2011-05-03 07:56:42 +00:00
jruoho b76e0d98ce Add a test for non-critical/low PR bin/43141. 2011-05-03 06:13:06 +00:00
bouyer 063f96f3c2 merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
2011-03-06 17:08:10 +00:00
riz c9ff785918 Back out previous; it's causing intermittent problems which I don't
fully understand yet.
2011-03-04 17:56:53 +00:00
riz 1242e4fa63 Switch from using "rump_ffs" to mount the file system image to
using a rump_server to mount it in a rump kernel, and librumphijack.so
to enable accessing it from the test program.  Among other things,
this allows the tests to run as an unprivileged user.
2011-03-03 16:25:15 +00:00
riz 99384b2def Copy a little less data in the ufs2, 4096-byte block test cases.
The file system was filling up instead of *almost* filling up, which
threw off the tests.
2011-01-11 00:50:02 +00:00
riz 468e2d30f8 Replace uses of 'jot' with 'seq'. This is primarily to work around
a qemu-running-on-netbsd problem with FP which causes 'jot' to output
incorrect sequences, which were causing failures on one of the auto-testing
platforms.  While 'seq' also uses FP, it does not seem to be affected in
this particular usage

As a bonus, however, 'seq' is actually a better fit (the commandline is
more intuitive) for the way it is used in these tests.
2011-01-05 18:13:54 +00:00
riz 64fbc2ff54 Restore data integrity verification in the grow case which was
inadvertantly removed when refactoring occurred in a prior
revision.
2011-01-05 18:05:32 +00:00
riz a44c3b6512 All of the generated tests require root, for rump_ffs. Spotted by
njoly@.
2011-01-05 03:04:13 +00:00
riz 89e455be4b Update resize_ffs tests for byteswapped file system support, and
for UFS2 growth support.  Also, reduce the number of tests run by default
while still maintaining decent coverage of features and block sizes.
Anyone working on resize_Ffs should run the tests with RESIZE_FFS_ALL_TESTS
set in the environment, which adds a lot more testing.
2011-01-05 02:25:27 +00:00