Make blorg tests more verbose
By not combining all files into one md5sum.
This commit is contained in:
parent
2a85f587d3
commit
1122a3dfbc
2 changed files with 11 additions and 2 deletions
|
@ -23,7 +23,7 @@ func TestBlorg(t *testing.T) {
|
|||
t.Errorf("Could not render: %s", err)
|
||||
return
|
||||
}
|
||||
renderedHashBs, err := exec.Command("bash", "-c", fmt.Sprintf("find %s -type f | sort -u | xargs cat | md5sum", config.PublicDir)).Output()
|
||||
renderedHashBs, err := exec.Command("bash", "-c", fmt.Sprintf("find %s -type f | sort -u | xargs md5sum", config.PublicDir)).Output()
|
||||
if err != nil {
|
||||
t.Errorf("Could not hash PublicDir: %s", err)
|
||||
return
|
||||
|
|
11
blorg/testdata/public.md5
vendored
11
blorg/testdata/public.md5
vendored
|
@ -1 +1,10 @@
|
|||
ab73939658896f4b21a1486bd7862751 -
|
||||
a23f3b21b036af74ce0dc3b0f6a4d8d7 testdata/public/about.html
|
||||
b93d8331258932e6bb18d866329b5e4e testdata/public/another-post.html
|
||||
a4e5753838107f8cf44f8dfabc577c04 testdata/public/index.html
|
||||
6e770ea67bb154191530585cc60c8c2f testdata/public/some-post.html
|
||||
7a893b0b9b90974cd7d26cfcb0a22dd4 testdata/public/style.css
|
||||
3ac91ccf813551d639daed7fae8689ae testdata/public/tags/another/index.html
|
||||
f780413c40454793f50722300113f234 testdata/public/tags/some/index.html
|
||||
967686d0550349659b60012f2449ef92 testdata/public/tags/static/index.html
|
||||
2180a6f960a21f02c41028b2a2d418d6 testdata/public/tags/yet/index.html
|
||||
be670bbbac7aec31b8f1563d944ea1ab testdata/public/yet-another-post/index.html
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue