Skip to content

Commit

Permalink
Checkout output of tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
gartung committed Mar 23, 2023
1 parent d92bdbc commit e84a864
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PerfTools/JeProf/test/BuildFile.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<bin name="jeprof_warn_t" file="jeprof_t.cc">
<use name="jemalloc"/>
<use name="PerfTools/JeProf"/>
<flags TEST_RUNNER_CMD="jeprof_warn_t.sh"/>
</bin>
<bin name="jeprof_nowarn_t" file="jeprof_t.cc">
<use name="jemalloc-prof"/>
<use name="PerfTools/JeProf"/>
<flags TEST_RUNNER_CMD="MALLOC_CONF=prof_leak:true,lg_prof_sample:10,prof_final:true jeprof_nowarn_t"/>
<flags TEST_RUNNER_CMD="jeprof_nowarn_t.sh"/>
</bin>
8 changes: 8 additions & 0 deletions PerfTools/JeProf/test/jeprof_nowarn_t.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

# Pass in name and status
function die { echo $1: status $2 ; exit $2; }

if !(MALLOC_CONF=prof_leak:true,lg_prof_sample:10,prof_final:true jeprof_nowarn_t 2>&1 | tr '\n' ' ' | grep Leak) ; then
die "jeprof_nowarn_t | grep Leak" $?
fi
8 changes: 8 additions & 0 deletions PerfTools/JeProf/test/jeprof_warn_t.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

# Pass in name and status
function die { echo $1: status $2 ; exit $2; }

if !(jeprof_warn_t 2>&1 | tr '\n' ' ' | grep JeProfModule);then
die "jeprof_warn_t | grep MALLOC_CONF" $?
fi

0 comments on commit e84a864

Please sign in to comment.