Skip to content

Commit

Permalink
add countnegative test case #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Haron-Benfaida committed Nov 9, 2024
1 parent 8b5f74c commit 015a63d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
23 changes: 23 additions & 0 deletions test/tacle_test/programs/countnegative/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
gametime-project:
file:
location: countnegative.c
analysis-function: main
additional-files: []
start-label: null
end-label: null


preprocess:
include: null
merge: null
inline: yes
unroll-loops: null

analysis:
maximum-error-scale-factor: 10
determinant-threshold: 0.001
max-infeasible-paths: 100
ilp-solver: glpk
gametime-path: ../../ # default path when tests locally
gametime-file-path: ../../../.. # default path when tests locally
File renamed without changes.
11 changes: 10 additions & 1 deletion test/tacle_test/wcet_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@ class TestBinarysearchX86(TestX86Backend):
config_path = "./programs/binarysearch/config.yaml"
class TestBinarysearchARM(TestARMBackend):
config_path = "./programs/binarysearch/config.yaml"


class TestCountNegativeFlexpret(TestFlexpretBackend):
config_path = "./programs/countnegative/config.yaml"
class TestCountNegativeX86(TestX86Backend):
config_path = "./programs/countnegative/config.yaml"
class TestCountNegativeARM(TestARMBackend):
config_path = "./programs/countnegative/config.yaml"



Expand All @@ -120,7 +128,8 @@ class TestBinarysearchARM(TestARMBackend):
# suite.addTests(loader.loadTestsFromTestCase(TestIfElifElseX86))
# suite.addTests(loader.loadTestsFromTestCase(TestBinarysearchARM))
# suite.addTests(loader.loadTestsFromTestCase(TestIfElifElseARM))
suite.addTests(loader.loadTestsFromTestCase(TestPrimeARM))
# suite.addTests(loader.loadTestsFromTestCase(TestPrimeARM))
suite.addTests(loader.loadTestsFromTestCase(TestCountNegativeARM))

runner = unittest.TextTestRunner()
runner.run(suite)

0 comments on commit 015a63d

Please sign in to comment.