diff --git a/conf.toml b/conf.toml index b640ffb..6ab0f82 100644 --- a/conf.toml +++ b/conf.toml @@ -4,7 +4,7 @@ name = "healthcheck" [stages.executor] name = "sandbox" [stages.executor.with.default] -args = ["./healthcheck", "-root=./examples/healthcheck/asciifile"] +args = ["bash", "./stdin.sh"] env = ["PATH=/usr/bin:/bin"] cpuLimit = 10_000_000_000 memoryLimit = 104_857_600 diff --git a/expected.json b/expected.json index b7607ab..f3dab89 100644 --- a/expected.json +++ b/expected.json @@ -1,9 +1,37 @@ [ - { - "name": "healthcheck", - "stdout": "Checking for non-ascii files: Failed", - "exit code": 1, - "stderr": "Non-ASCII characters found in the following files:\n\texamples/repohealth/asciifile/nonascii.txt", - "errorLog": null - } + { + "name of check": "RepoSize", + "stdout": "Checking repository size: OK", + "exit code": 0, + "stderr": "", + "errorLog": null + }, + { + "name of check": "forbiddenFile", + "stdout": "Checking forbidden files: OK", + "exit code": 0, + "stderr": "", + "errorLog": null + }, + { + "name of check": "metaFile", + "stdout": "Checking the existence of meta file: OK", + "exit code": 0, + "stderr": "", + "errorLog": null + }, + { + "name of check" : "NonAsciiFiles", + "stdout" : "Checking for non-ascii files: Failed", + "exit code" : 1, + "stderr" : "Non-ASCII characters found in the following files:\n\texamples/repohealth/asciifile/nonascii.txt", + "errorLog" : null + }, + { + "name of check": "NonAsciiMsg", + "stdout": "Checking for non-ASCII characters in commit message: OK", + "exit code": 0, + "stderr": "", + "errorLog": null + } ] \ No newline at end of file diff --git a/stdin.sh b/stdin.sh index 7c85eae..db2aa0f 100644 --- a/stdin.sh +++ b/stdin.sh @@ -1,5 +1,3 @@ #!bash -echo sss - ./build/healthcheck -root=./examples/healthcheck/asciifile -whitelist=".*\.md" -whitelist=".*\.json" -whitelist=".*\.sh" -whitelist=".git.*" -whitelist=".*\.txt"