;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; This file is part of "NOVA": NOVA = search + COCOMO tools ; Copyright, 2008, Tim Menzies tim@menzies.us ; ; NOVA is free software: you can redistribute it and/or modify ; it under the terms of the GNU General Public License as published by ; the Free Software Foundation, either version 3 of the License, or ; (at your option) any later version. ; ; NOVA is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; GNU General Public License for more details. ; You should have received a copy of the GNU General Public License ; a long with NOVA. If not, see . ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-package :xomo-test.model) ;;FIXME these should be dynamically bound in each test, but the current version of lift has a bug that prevents it (defvar *test-evaluation-method* (lookup-evaluation-method 'xomo.evaluation-methods:energy)) (defvar *test-constraints* (case-study-constraints (lookup-case-study 'nova.impl.case-studies:default))) (defvar *test-modifiable-attributes* (policy-modifiable-attributes (lookup-policy 'xomo.policies:all))) (defvar *test-find-best-state-method* (lookup-find-best-state-method 'min-score-state-of-path-by-ttest)) (deftestsuite search-engines-xomo-test-suite (fresh-default-xomo-db-test-suite-mixin xomo-tests) ()) (addtest demo-sa (ensure-no-warning (describe (nova.apps.learning:nova-learn *test-evaluation-method* (lookup-search-engine 'nova.impl.search-engines:sa) *test-find-best-state-method* :constraints *test-constraints* :modifiable-attributes *test-modifiable-attributes*)))) (addtest demo-seesaw-r (ensure-no-warning (describe (nova.apps.learning:nova-learn *test-evaluation-method* (lookup-search-engine 'nova.impl.search-engines:seesaw-r) *test-find-best-state-method* :constraints *test-constraints* :modifiable-attributes *test-modifiable-attributes*)))) (addtest demo-seesaw-d (ensure-no-warning (describe (nova.apps.learning:nova-learn *test-evaluation-method* (lookup-search-engine 'nova.impl.search-engines:seesaw-d) *test-find-best-state-method* :constraints *test-constraints* :modifiable-attributes *test-modifiable-attributes*)))) (addtest demo-keys (ensure-no-warning (describe (nova.apps.learning:nova-learn *test-evaluation-method* (lookup-search-engine 'nova.impl.search-engines:keys) *test-find-best-state-method* :constraints *test-constraints* :modifiable-attributes *test-modifiable-attributes*))))