add name to tests

This commit is contained in:
Filip Gralinski 2015-09-28 18:10:59 +02:00
parent f6dce92d8d
commit 9a5104cbb4
2 changed files with 3 additions and 1 deletions

View File

@ -96,6 +96,7 @@ checkTestDir chan challengeId commit testDir = do
checksum <- liftIO $ gatherSHA1 testDir
testId <- runDB $ insert $ Test {
testChallenge=challengeId,
testName=T.pack testDir,
testChecksum=(SHA1 checksum),
testCommit=commit,
testActive=True }

View File

@ -27,8 +27,9 @@ Challenge
stamp UTCTime default=now()
Test
challenge ChallengeId
name Text
checksum SHA1
commit SHA1
active Bool default=True
UniqueChallengeChecksum challenge checksum
UniqueChallengeChecksum challenge name checksum
-- By default this file is used in Model.hs (which is imported by Foundation.hs)