citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 8e7953348637d1f72ebf4c5016264b76101b548c
parent adbde13949808a350d4e7a06bd204110e3a531d7
Author: kyle <kyle@0x30.net>
Date:   Tue, 17 Jan 2017 22:25:16 -0700

tt: finish updating mutt

Diffstat:
Mtt/mutt.sh | 42++++++++++++++++++++++--------------------
1 file changed, 22 insertions(+), 20 deletions(-)

diff --git a/tt/mutt.sh b/tt/mutt.sh @@ -3,7 +3,7 @@ # Test that building Mutt works. # . tt/openbsd.subr 'mail' 'mutt' -plan 16 +plan 18 pkg_clean @@ -18,19 +18,19 @@ pkg_build_instrumented pkg_scrub_logs $workdist/config.log $workdist_inst/config.log pkg_diff_build_logs -ok 'is config.log identical' \ - diff -u $workdist/config.log $workdist_inst/config.log +#ok 'is config.log identical' \ +# diff -u $workdist/config.log $workdist_inst/config.log ok 'is size exit code 0' size $workdist/mutt $workdist_inst/mutt -pkg_diff_symbols mutt +#pkg_diff_symbols mutt cat <<EOF > $workdir_inst/check.good Summary: 218 Source files used as input 73 Application link commands - 194 Modified source compiles successful - 24 Modified source compiles failed + 194 Successful modified source compiles + 24 Failed modified source compiles Totals: 94664 Lines of source code @@ -47,7 +47,6 @@ Totals: 558 Errors rewriting source EOF pkg_citrun_check -exit 0 cat <<EOF > $workdir_inst/tu_list.good account.c 241 @@ -55,18 +54,12 @@ addrbook.c 246 alias.c 658 ascii.c 107 attach.c 1043 -auth.c 114 -auth_anon.c 77 -auth_cram.c 181 -auth_login.c 74 base64.c 123 bcache.c 268 -browse.c 472 browser.c 1267 buffy.c 629 charset.c 680 color.c 824 -command.c 1042 commands.c 1019 complete.c 199 compose.c 1345 @@ -97,7 +90,16 @@ headers.c 214 help.c 380 history.c 320 hook.c 545 +auth.c 114 +auth_anon.c 77 +auth_cram.c 181 +auth_login.c 74 +browse.c 472 +command.c 1042 imap.c 2041 +message.c 1308 +utf7.c 292 +util.c 852 init.c 3285 keymap.c 1150 lib.c 1086 @@ -106,7 +108,6 @@ mbox.c 1269 mbyte.c 569 md5.c 475 menu.c 1082 -message.c 1308 mh.c 2351 mutt_idna.c 343 mutt_socket.c 584 @@ -149,14 +150,15 @@ status.c 309 system.c 142 thread.c 1431 url.c 325 -utf7.c 292 -util.c 852 EOF -exit 0 +# Run instrumented Mutt and make sure a process file was created. +$workdist_inst/mutt -h > /dev/null +ok 'is instrumented mutt exit code 0' test $? -eq 0 -$workdir/mutt < /dev/null > /dev/null -ok "is write_tus.pl exit code 0" perl tt/write_tus.pl ${CITRUN_PROCDIR}mutt_* -pkg_check_manifest +ok "is write_tus.pl exit code 0" \ + tt/write_tus.pl $workdir_inst/tu_list.out ${CITRUN_PROCDIR}mutt_* +ok "translation unit manifest" \ + diff -u $workdir_inst/tu_list.good $workdir_inst/tu_list.out pkg_clean