Write `files` into a fresh repository and index it once (the base the * edits repair). */
| 700 | /* Write `files` into a fresh repository and index it once (the base the |
| 701 | * edits repair). */ |
| 702 | static bool cv_incremental_base(char *repo, size_t repo_n, char *dbdir, size_t dbdir_n, |
| 703 | const cv_file_t *files, int count) { |
| 704 | snprintf(repo, repo_n, "%s", th_mktempdir("cbm-cvinc")); |
| 705 | snprintf(dbdir, dbdir_n, "%s", th_mktempdir("cbm-cvdb")); |
| 706 | bool ok = repo[0] && dbdir[0]; |
| 707 | for (int i = 0; ok && i < count; i++) { |
| 708 | ok = cv_write(repo, &files[i]); |
| 709 | } |
| 710 | char inc_db[600]; |
| 711 | snprintf(inc_db, sizeof(inc_db), "%s/inc.db", dbdir); |
| 712 | return ok && cv_pipeline(repo, inc_db, NULL); |
| 713 | } |
| 714 | |
| 715 | TEST(cv_incremental_variant_partners) { |
| 716 | char repo[300]; |
no test coverage detected