Skip to content

Commit a003da7

Browse files
committed
Add first test
1 parent e7c0eb7 commit a003da7

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/jobs/configure-checks/all.bats

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,3 +458,26 @@ compile_assertions_finished () {
458458
run make judgehost
459459
assert_failure 2
460460
}
461+
462+
@test "`make distclean` cleans the state to state of `make dist`" {
463+
run make dist
464+
465+
# Cleanup of all configure created files
466+
files_before=$(find . -type f | sort)
467+
run run_configure
468+
files_configure=$(find . -type f | sort)
469+
refute_equal "$files_before" "$files_configure"
470+
run make distclean
471+
files_after=$(find . -type f | sort)
472+
assert_equal "$files_before" "$files_after"
473+
474+
# Cleanup of all configure + make targets files
475+
files_before=$(find . -type f | sort)
476+
run run_configure
477+
run make domserver judgehost docs
478+
files_make_targets=$(find . -type f | sort)
479+
refute_equal "$files_before" "$files_make_targets"
480+
run make distclean
481+
files_after=$(find . -type f | sort)
482+
assert_equal "$files_before" "$files_after"
483+
}

0 commit comments

Comments
 (0)