Skip to content

Instantly share code, notes, and snippets.

@mcmilk
Created October 30, 2022 10:58
Show Gist options
  • Save mcmilk/acc54a671ad2164ce98a0996a2ad6562 to your computer and use it in GitHub Desktop.
Save mcmilk/acc54a671ad2164ce98a0996a2ad6562 to your computer and use it in GitHub Desktop.
Split the functional tests of OpenZFS
#!/bin/sh
T_CLI="cli_root cli_user acl"
T_FEATURE="acl atime casenorm chattr cp_files crtime ctime deadman \
dos_attributes exec fadvise fallocate features idmap_mount inheritance \
io large_files log_spacemap mmap mmp mount mv_files nestedfs nopwrite \
privilege projectquota pyzfs quota rename_dirs reservation slog snapshot \
snapused sparse stat suid tmpfile trim truncate upgrade user_namespace \
userquota vdev_zaps write_dirs xattr zpool_influxdb"
T_RESILIENCE="alloc_class append arc bootfs cache cachefile clean_mirror \
fault inuse l2arc largest_pool no_space online_offline raidz \
redacted_send redundancy refquota refreserv removal rootpool rsend \
scrub_mirror zvol"
T_MISC="btree channel_program checksum compression delegate devices \
events grow history hkdf libzfs limits link_count migration pam \
pool_checkpoint pool_names poolversion procfs replacement simd"
git checkout .
#exit
tag="gh_cli"
for x in $T_CLI; do
sed -e "/^tags/ s|'|%|g" -e "s|%$x%|%$x%, %$tag%|g" -e "s|%|'|g" -i common.run
done
tag="gh_feature"
for x in $T_FEATURE; do
sed -e "/^tags/ s|'|%|g" -e "s|%$x%|%$x%, %$tag%|g" -e "s|%|'|g" -i common.run
done
tag="gh_resilience"
for x in $T_RESILIENCE; do
sed -e "/^tags/ s|'|%|g" -e "s|%$x%|%$x%, %$tag%|g" -e "s|%|'|g" -i common.run
done
tag="gh_misc"
for x in $T_MISC; do
sed -e "/^tags/ s|'|%|g" -e "s|%$x%|%$x%, %$tag%|g" -e "s|%|'|g" -i common.run
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment