Skip to content
Draft
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
328992f
Start of Integration of futcheck into futhark
Black-Speedy Mar 23, 2026
9f2badd
Small update to try and fix printing issues with fancy terminal (not …
Black-Speedy Mar 23, 2026
1b80579
'Bettter' integration of futpbt also fixed submoudle being actual dir…
Black-Speedy Mar 24, 2026
4a85cc9
Merge branch 'master' into pbt
Black-Speedy Mar 24, 2026
793fa0f
Used Ormolu formatter to fit Style guide better
Black-Speedy Mar 24, 2026
412e6fa
Updated to no longer use PropOut we are now regular failures (& success)
Black-Speedy Mar 25, 2026
19464e6
Small fix up of printing
Black-Speedy Mar 26, 2026
c7521c6
Update to add a hybrid solution for prop tests
Black-Speedy Mar 27, 2026
4f9897b
Added Property comment and attribute matching check
Simoerk Apr 3, 2026
107ae73
Updated NumbersTests
Simoerk Apr 6, 2026
a09cda1
Fixed tests to follow new syntax and fixed parsing error unless both …
Black-Speedy Apr 6, 2026
95a9e76
Added output of failing properties to file
Black-Speedy Apr 6, 2026
b2fa619
Moved test files to a more convenient location
Black-Speedy Apr 6, 2026
ce959e2
Made seed random if no seed is provided in attribute
Black-Speedy Apr 7, 2026
6b13735
Merge branch 'master' into pbt
athas Apr 8, 2026
986eeb6
Minor style fixes.
athas Apr 8, 2026
39c0874
Renamed test directory and moved property function to seperate module
Black-Speedy Apr 9, 2026
8d21068
Some cleanup
Black-Speedy Apr 9, 2026
4dd500d
Changed parser to be cleaner and better and removed seed from attribu…
Black-Speedy Apr 9, 2026
3557d1b
Small generator and shrinker test (not done) also made error messages…
Black-Speedy Apr 9, 2026
252d650
Added current entrypoint for property tests if timeout is reached
Black-Speedy Apr 10, 2026
827aae0
Better message when timeout.
Black-Speedy Apr 10, 2026
9c7893a
Some design changes for error handling (still needs a look)
Black-Speedy Apr 13, 2026
75fd263
one and only one property attribute
Simoerk Apr 13, 2026
e560325
Small code cleanup, still needs more work
Black-Speedy Apr 13, 2026
d2816d4
Some code cleanup and small bugfixes
Black-Speedy Apr 16, 2026
da9e3be
Made some modifications to failures making a difference between our f…
Black-Speedy Apr 16, 2026
4d21d7f
Changed protocol for shrinker. Now is pseudorandom based on seed.
Black-Speedy Apr 16, 2026
d132520
Some changes to tests to fit new protocol for shrinker.
Black-Speedy Apr 16, 2026
d4084ba
Forgot to add changes to this test
Black-Speedy Apr 16, 2026
e81fa47
Initial changes to tests for new shrinker protocol along with testing…
Black-Speedy Apr 20, 2026
cc59cb2
Some refactoring to code base to make it easier to read also fewer in…
Black-Speedy Apr 21, 2026
57e9a9a
Validation tests.
Simoerk Apr 21, 2026
2f74b46
Small update to test file for pbt to fix print format
Black-Speedy Apr 22, 2026
d5a4c47
Merge branch 'master' into pbt
athas Apr 29, 2026
54acc75
Remove more unused stuff.
athas Apr 29, 2026
eb2f669
packType is actually just a copy function now.
athas Apr 29, 2026
6131299
Improve tests.
athas Apr 29, 2026
d2ae185
Further simplify code.
athas Apr 29, 2026
52659c3
Avoid String.
athas Apr 29, 2026
7eb09fb
Make runtime erros user erros. Some extra tests added.
Black-Speedy May 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,8 @@ test-structure:
test-literate:
cd tests_literate && sh test.sh

test-property:
cd tests_property && cabal run -v0 -- futhark pkg sync && sh test.sh

clean:
cabal clean
1 change: 1 addition & 0 deletions futhark.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ library
Futhark.Profile.SourceRange
Futhark.Script
Futhark.Test
Futhark.Test.Property
Futhark.Test.Spec
Futhark.Test.Values
Futhark.Tools
Expand Down
2 changes: 1 addition & 1 deletion src/Futhark/CLI/Autotune.hs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ prepare opts futhark prog = do

truns <-
case testAction spec of
RunCases ios _ _ | not $ null ios -> do
RunCases ios _ _ _ | not $ null ios -> do
when (optVerbose opts > 1) $
putStrLn $
unwords ("Entry points:" : map (T.unpack . iosEntryPoint) ios)
Expand Down
2 changes: 1 addition & 1 deletion src/Futhark/CLI/Bench.hs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ compileBenchmark ::
compileBenchmark opts (program, program_spec) = do
spec <- maybe (pure program_spec) testSpecFromFileOrDie $ optTestSpec opts
case testAction spec of
RunCases cases _ _
RunCases cases _ _ _
| null $
optExcludeCase opts
`intersect` (testTags spec <> testTags program_spec),
Expand Down
2 changes: 1 addition & 1 deletion src/Futhark/CLI/Misc.hs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ mainDataget = mainWithOptions () [] "program dataset" $ \args () ->

testSpecRuns = testActionRuns . testAction
testActionRuns CompileTimeFailure {} = []
testActionRuns (RunCases ios _ _) = concatMap iosTestRuns ios
testActionRuns (RunCases ios _ _ _) = concatMap iosTestRuns ios

-- | @futhark check-syntax@
mainCheckSyntax :: String -> [String] -> IO ()
Expand Down
Loading
Loading