source: doc/theses/mike_brooks_MMath/benchmarks/list/test-correctness.sh @ 90a3a89

ADTast-experimental
Last change on this file since 90a3a89 was 90a3a89, checked in by Mike Brooks <mlbrooks@…>, 15 months ago

LL perf: Add comments for rerunning tests

  • Property mode set to 100755
File size: 721 bytes
Line 
1echo Should you make clean?
2  # if so
3  # pushd ~/cfax
4  # . ~/setcfa build-med
5  # popd
6  # make perfprogs CFA=$cfa -j8 MODE=correctness
7
8
9# Accept by eyeball when all you see is
10#   - (irrelevant) performance numbers being reported and
11#   - any u++ "allocated but not freed" warnings that you can live with.
12# Reject when you see lines of trace messages, like what's in the "expect" files.
13
14function test1 {
15    echo + diff "<($1)" $2
16    diff <($1) $2
17}
18export -f test1
19
20make perfprogs -j 8 CFA=$cfa MODE=correctness
21
22for casegroup in stack-insfirst stack-inslast queue-insfirst queue-inslast
23do
24  export casegroup
25  ls perfexp--*$casegroup* | xargs -n 1 -I {} bash -c 'test1 "./$@" expect.$casegroup.txt' _ {}
26done
Note: See TracBrowser for help on using the repository browser.