blob: 6f87fcceb480b12887fe94529c6315224f5acf5b [file] [log] [blame]
Colin Cross265cbfc2016-08-19 16:19:10 -07001# Copyright (C) 2016 The Android Open Source Project
Colin Cross4c594612016-08-19 16:01:56 -07002# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions
6# are met:
7# * Redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer.
9# * Redistributions in binary form must reproduce the above copyright
10# notice, this list of conditions and the following disclaimer in
11# the documentation and/or other materials provided with the
12# distribution.
13#
14# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
16# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
17# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
18# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
19# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
20# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
21# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
22# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
24# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25# SUCH DAMAGE.
26#
27#
Colin Cross265cbfc2016-08-19 16:19:10 -070028# Copyright (c) 2016 VIXL authors
Colin Cross4c594612016-08-19 16:01:56 -070029# All rights reserved.
30#
31# Redistribution and use in source and binary forms, with or without
32# modification, are permitted provided that the following conditions
33# are met:
34# 1. Redistributions of source code must retain the above copyright
35# notice, this list of conditions and the following disclaimer.
36# 2. Redistributions in binary form must reproduce the above copyright
37# notice, this list of conditions and the following disclaimer in the
38# documentation and/or other materials provided with the distribution.
39# 3. The name of the company may not be used to endorse or promote
40# products derived from this software without specific prior written
41# permission.
42#
43# THIS SOFTWARE IS PROVIDED BY ARM LTD ``AS IS'' AND ANY EXPRESS OR IMPLIED
44# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
45# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
46# IN NO EVENT SHALL ARM LTD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
47# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
48# TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
49# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
50# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
51# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
52# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
53
54LOCAL_PATH:= $(call my-dir)
55
Dan Willemsen7168b852017-10-06 11:27:01 -070056vixl_timestamp := $(HOST_OUT_NATIVE_TESTS)/vixl-test-runner/test.timestamp
57$(vixl_timestamp): $(HOST_OUT_NATIVE_TESTS)/vixl-test-runner/vixl-test-runner
Colin Cross4c594612016-08-19 16:01:56 -070058 # TODO: Once available, use the appropriate option of vixl-test-runner
59 # to point to the trace files instead of running from the vixl root.
Dan Willemsen7168b852017-10-06 11:27:01 -070060 echo Running vixl tests
Dan Willemsen498ccef2017-10-24 18:12:15 -070061 cd $(dir $<) && ./$(notdir $<) --run_all
62 cd $(dir $<) && ./$(notdir $<) --run_all --debugger
Dan Willemsen7168b852017-10-06 11:27:01 -070063 echo vixl tests PASSED
64 touch $@
65
66.PHONY: run-vixl-tests
67run-vixl-tests: $(vixl_timestamp)
68
69vixl_timestamp :=