X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flibpspp%2Fsparse-xarray-test.at;h=52990ba5a23b6ad737d312f938db5d8bfe1d01fa;hb=2569c1e25ddb52f847e688c6b15f1d6c3bb66f28;hp=a323e6b9615f712e251d35318e46ac5631dad957;hpb=691a034d7f2139076fa012739dffd40ef5db4a9b;p=pspp diff --git a/tests/libpspp/sparse-xarray-test.at b/tests/libpspp/sparse-xarray-test.at index a323e6b961..52990ba5a2 100644 --- a/tests/libpspp/sparse-xarray-test.at +++ b/tests/libpspp/sparse-xarray-test.at @@ -1,19 +1,20 @@ dnl PSPP - a program for statistical analysis. dnl Copyright (C) 2017 Free Software Foundation, Inc. -dnl +dnl dnl This program is free software: you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation, either version 3 of the License, or dnl (at your option) any later version. -dnl +dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. -dnl +dnl dnl You should have received a copy of the GNU General Public License dnl along with this program. If not, see . -dnl AT_BANNER([sparse external arrays]) +dnl +AT_BANNER([sparse external arrays]) m4_divert_push([PREPARE_TESTS]) [sparse_xarray_queue_limit () { @@ -25,11 +26,11 @@ m4_divert_push([PREPARE_TESTS]) case $OPEN_MAX in [0-9]*) # Divide by 2 because some fds are used by other code. - queue_limit=`expr $OPEN_MAX / 2` + queue_limit=`expr $OPEN_MAX / 2` ;; - undefined) + undefined) # Assume that any system with a dynamic fd limit has a large limit. - queue_limit=500 + queue_limit=500 ;; *) case `uname -m 2>/dev/null` in @@ -55,7 +56,9 @@ m4_divert_push([PREPARE_TESTS]) m4_divert_pop([PREPARE_TESTS]) AT_SETUP([in-memory sparse_xarray]) +AT_KEYWORDS([slow]) dnl --values=3 would be a slightly better test but takes much longer. +ASAN_OPTIONS=$ASAN_OPTIONS:detect_odr_violation=0; export ASAN_OPTIONS AT_CHECK([sparse-xarray-test \ --verbosity=0 --queue-limit=`sparse_xarray_queue_limit` \ --columns=3 --max-rows=3 --max-memory-rows=3 --values=2], @@ -64,6 +67,8 @@ AT_CLEANUP m4_define([SPARSE_XARRAY_ON_DISK], [AT_SETUP([on-disk sparse_xarray max-memory-rows=$1]) + AT_KEYWORDS([slow]) + ASAN_OPTIONS=$ASAN_OPTIONS:detect_odr_violation=0; export ASAN_OPTIONS AT_CHECK([sparse-xarray-test \ --verbosity=0 --queue-limit=`sparse_xarray_queue_limit` \ --columns=2 --max-rows=3 --max-memory-rows=$1 --values=2], @@ -74,7 +79,8 @@ SPARSE_XARRAY_ON_DISK([1]) SPARSE_XARRAY_ON_DISK([2]) AT_SETUP([copying between in-memory sparse_xarrays]) -AT_KEYWORDS([sparse_xarray]) +AT_KEYWORDS([sparse_xarray slow]) +ASAN_OPTIONS=$ASAN_OPTIONS:detect_odr_violation=0; export ASAN_OPTIONS AT_CHECK([sparse-xarray-test \ --verbosity=0 --queue-limit=`sparse_xarray_queue_limit` \ --columns=2 --max-rows=2 --max-memory-rows=2 --values=2 \ @@ -84,8 +90,9 @@ AT_CLEANUP m4_define([SPARSE_XARRAY_COPY_DISK], [AT_SETUP([copying between on-disk sparse_xarrays max-memory-rows=$1]) - AT_KEYWORDS([sparse_xarray]) + AT_KEYWORDS([sparse_xarray slow]) limit=`sparse_xarray_queue_limit` + ASAN_OPTIONS=$ASAN_OPTIONS:detect_odr_violation=0; export ASAN_OPTIONS AT_CHECK([sparse-xarray-test \ --verbosity=0 --queue-limit=`expr $limit / 2` \ --columns=1 --max-rows=2 --max-memory-rows=$max_memory_rows \