Skip to content

Commit

Permalink
fix(checker): test- and run-ids need to be parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
symbiont-stevan-andjelkovic committed Jan 25, 2021
1 parent 90554d9 commit f36317c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/checker/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ in stdenv.mkDerivation rec {
-H:Name=${pname} \
${lib.optionalString stdenv.isDarwin ''-H:-CheckToolchain''} \
-H:+ReportExceptionStackTraces \
-H:EnableURLProtocols=http,https \ # TODO(stevan): shouldn't be needed?
--enable-all-security-services \ # TODO(stevan): shouldn't be needed?
-H:IncludeResources="db/.*|static/.*|templates/.*|.*.yml|.*.xml|.*/org/sqlite/.*|org/sqlite/.*" \
-H:JNIConfigurationFiles=${src}/native-image/jni-config.json \
-H:ReflectionConfigurationFiles=${src}/native-image/reflection-config.json \
Expand Down
9 changes: 4 additions & 5 deletions src/checker/src/checker/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@
[test-id run-id]
(let [dir (fs/temp-dir "detsys-elle")
history (db/get-history :list-append test-id run-id)]
(pprint "HISTORY")
(pprint history)
(-> (list-append/check
{:consistency-models [:strict-serializable]
:directory dir}
Expand Down Expand Up @@ -97,12 +95,13 @@
(System/exit 0)))
(db/setup-db (db/db))
(case arg0
"rw-register" (analyse test-id run-id checker-rw-register)
"list-append" (analyse test-id run-id checker-list-append)
"rw-register" (analyse (Integer/parseInt test-id) (Integer/parseInt run-id)
checker-rw-register)
"list-append" (analyse (Integer/parseInt test-id) (Integer/parseInt run-id)
checker-list-append)
(println
"First argument should be a model, i.e. either \"rw-register\" or \"list-append\""))))


(comment
(db/setup-db (db/db))
(checker-list-append 1 0)
Expand Down

0 comments on commit f36317c

Please sign in to comment.